On 07.11.19 15:25, Linkcheck wrote:
I have run spamassassin as a postfix content filter (master.cf) for
several years on Linux Mint (Ubuntu 16.04) but I now need to run
spamass-milter instead. I have spent several hours trying to find the
correct setup but those I've found are somewhat conflicting and I
cannot determine which files I should modify and how. I would
appreciate some help in setting up the milter.
Spamassassin version: 3.4.2
Postfix version: 3.1.0
I have the following spamassassin folders/files files with the
contents shown:
/etc/spampd.conf
/etc/default/spampd
(all is commented out)
spampd has nothing to do with spamass-milter.
you must enable spamd (spamassassin) when using spamass-milter.
/etc/default/spamassassin
ENABLED=0
enable here^
OPTIONS="--create-prefs --maxchildren 5 -- helper-home-dir"
/etc/default/spamass-milter
OPTIONS="-u spamass-milter -i 127.0.0.1"
/etc/init.d/spamassassin
PATH=/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/sbin/spamd
NAME=spamd
SNAME=spamassassin
DESC="SpamAssassin Mail Filter Daemon"
PIDFILE="/var/run/$NAME.pid"
export TMPDIR=/tmp
ENABLED=0
OPTIONS=""
NICE=
. /lib/lsb/init-functions
test -f /etc/default/spamassassin && . /etc/default/spamassassin
DOPTIONS="-d --pidfile=$PIDFILE"
(I'm confused by the line: . /lib etc - is this valid? and see below also)
/etc/init.d/spamass-milter
PATH=/sbin:/bin:/usr/sbin:/usr/bin
NAME=spamass-milter
DAEMON=/usr/sbin/spamass-milter
SOCKET=/var/run/spamass/spamass.sock
PIDFILE=/var/run/spamass/spamass.pid
DESC="Sendmail milter plugin for SpamAssassin"
DEFAULT=/etc/default/spamass-milter
OPTIONS=""
RUNAS="spamass-milter"
CHUID=""
SOCKETMODE="0600"
SOCKETOWNER="postfix:postfix"
The only file that has a SOCK defined is /etc/init.d/spamass-milter.
Should spamd also have a socket? Various online postings give
conflicting advice.
spamd listens on localhost:783 by default and spamc (called by
spamass-milte) connects there. You can define unix domain socket by options
to either, but it's not neede.
My postfix master.cf has no enabled spamassassin content.
not needed, spamass-milter uses it.
Postfix main.cf has:
policy-spf_time_limit = 3600s
milter_default_action = accept
milter_protocol = 6
smtpd_milters = unix:/var/run/opendkim/opendkim.sock,
unix:/var/run/opendmarc/opendmarc.sock,
unix:/var/run/spamass/spamass.sock,
this is afaik the default spamass-milter socket on debian/ubuntu.
unix:/var/run/clamav/clamav-milter.ctl
non_smtpd_milters = unix:/var/run/opendkim/opendkim.sock
--
Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Eagles may soar, but weasels don't get sucked into jet engines.