Janelle Monáe

Tags: , , ,

postfix and spamassassin

So I had been running spamassassin from postfix like this:

mailbox_command = /usr/bin/spamc
                 --no-safe-fallback
                 --max-size 100000000
                 --connect-retries 5
                 --retry-sleep 5
                 --pipe-to /usr/libexec/dovecot/deliver
                 || exit 75

but it seems like maybe the proper way is:

mailbox_command = /usr/libexec/dovecot/deliver
smtpd_milters = unix:/var/run/spamass-milter/postfix/sock
non_smtpd_milters = $smtpd_milters
milter_default_action = accept

however, the former runs the final recipient's $HOME/.spamassassin/user_prefs and the latter does not. Is there some way to make the latter do what the former does? Or is the former actually the right way to do it?

Previously.

Tags: , , , ,