Re: How to get Spamassassin and Postfix to work with each other

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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."

Attachment: pgp8vTnzwNXCY.pgp
Description: PGP signature

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux