* joh...@fastmail.com <joh...@fastmail.com> [2015-09-09 03:03]: > Ken > > On Tue, Sep 8, 2015, at 05:49 PM, Ken Peng wrote: > > How about Spamassassin? we have been using it for a long time. > > And how are you integrating it into Postfix. That was my question > not whether to use Spamassassin. I kindof decided on that already > in the original post.
I do it like this (albeit with Dovecot als MDA): master.cf: dovecot-sa unix - n n - - pipe flags=ODRhu user=vmail:mail argv=/usr/bin/spamc -u ${user}@${nexthop} -e /usr/lib/dovecot/deliver -f ${sender} -a ${recipient} -d ${user}@${nexthop} main.cf: virtual_transport = dovecot-sa dovecot-sa_destination_recipient_limit = 1 Spamassassin is getting the user config from MySQL and users can change settings with Roundcube. Works very reliably for some years now. Regards Sebastian -- GPG Key: 0x93A0B9CE (F4F6 B1A3 866B 26E9 450A 9D82 58A2 D94A 93A0 B9CE) 'Are you Death?' ... IT'S THE SCYTHE, ISN'T IT? PEOPLE ALWAYS NOTICE THE SCYTHE. -- Terry Pratchett, The Fifth Elephant