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: pgpGjkt0dHKdP.pgp
Description: PGP signature

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux