How to get Spamassassin and Postfix to work with each other
Todd Zullinger
tmz at pobox.com
Tue Apr 22 15:40:39 UTC 2008
Mike Burger wrote:
> Postfix, itself, does not interface with SpamAssassin, directly.
It sure can though. I have this setup on several systems. In
postfix's master.cf I modified the smtp service to set a
content_filter:
smtp inet n - n - - smtpd
-o content_filter=spamassassin
Later in master.cf (in the section titled "Interfaces to non-Postfix
software"), I add the spamassassin settings:
spamassassin unix - n n - - pipe user=nobody argv=/usr/bin/spamc
-U /var/run/spamassassin/spamd.sock -f -e /usr/sbin/sendmail -oi -f ${sender} ${recipient}
I changed the default spamd options to not create a user prefs file
and to use a unix socket instead of TCP for its connections. That's
done in /etc/sysconfig/spamassassin:
SPAMDOPTIONS="-d -m15 -H --socketpath=/var/run/spamassassin/spamd.sock"
If you wanted to have spamassassin do Bayesian filtering too, you
could create a user for this purpose and change the user=nobody line
above to that user. Then you could train spamassassin with ham and
spam.
--
Todd OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
We put the "k" in "kwality."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 542 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20080422/3bcfa301/attachment-0001.sig>
More information about the fedora-list
mailing list