Skip to content

Instantly share code, notes, and snippets.

@j0inty
Created October 8, 2016 15:36
Show Gist options
  • Save j0inty/d3da65b01e42de9543d4af17bd7c3624 to your computer and use it in GitHub Desktop.
Save j0inty/d3da65b01e42de9543d4af17bd7c3624 to your computer and use it in GitHub Desktop.
/etc/conf.d/amavisd-milter
# /etc/conf.d/amavisd-milter
# Check amavisd-milter man page for more options.
# Must be the same as you setup in amavisd.conf
RUNAS_USER="amavis"
RUNAS_GROUP="amavis"
# Unix domain socket locations
SOCKET="local:/var/spool/postfix/amavis/amavisd-milter.sock"
AM_SOCKET="/var/spool/postfix/amavis/amavisd.sock"
# Amavis max daemon config value default: 5
#AM_MAX_DAEMON=5
# Working directory
AM_TMP="/var/amavis/tmp"
# Pid file location
PIDFILE="/run/amavis/amavisd-milter.pid"
# -d 0-9 -- debug level
DEBUG_LEVEL=5
# -D server -- the Amavisd do the forward_method to the postfix again
# -D client -- The Amavisd-Milter forward the mail to postfix
DOPTIONS="-D server -s $SOCKET -p $PIDFILE -S $AM_SOCKET -w $AM_TMP -m ${AM_MAX_DAEMON:-5}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment