Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Integrated into Courier-MTA

If you use the Courier MTA, you probably also use maildrop. If so, you may follow these steps:

First, install SpamAssassin and Courier MTA according to their installation docs. Make sure they are functioning on their own. You may want to use spamc/spamd for better performance. What's left is the connection between Courier and SpamAssassin.

Wiki Markup
If you have virtual users (as opposed to plain \*nix users), it is vital that you make sure that courier-mta (as well as courier-imap and courier-pop) uses the authdaemon as authentication module. That means that in {{/etc/courier/esmtpd}}, {{imapd}} and {{pop3d}} the variable AUTHMODULES should be set to {{"authdaemon"}}. Keep in mind that your courier config files may be in another directory. The authdaemon has to be configured to use the right authentication modules (mysql, userdb, whatever). Then patch [SpamAssassin] according to \[http://da.andaka.org/Doku/courier-spamassassin.html\] so that [SpamAssassin] can ask authdaemon for the whereabouts of the maildirs of virtual users (and plain users too --- but if you only have plain users, you may skip this step).

To let Courier MTA use maildrop as default for delivery, edit /etc/courier/courierd and set DEFAULTDELIVERY to "| /usr/bin/maildrop" (or whereever your maildrop binary is). Then edit /etc/courier/maildroprc, the central maildrop script:

No Format

exception {
        xfilter "/usr/bin/spamc"
}
exception {
        include "$HOME/.mailfilter"
}

Via the xfilter line, maildrop pipes its contents through spamc; via the include line, the user's mailfilter script is called.

Wiki Markup
There is a rudimentary HOWTO at \[http://forums.gentoo.org/viewtopic.php?t=28392 the Gentoo forums\] for integrating [SpamAssassin] and f-prot with Courier-MTA.

Wiki Markup
There is a HOWTO at \[http://da.andaka.org/Doku/imapspamfilter.html\] to feed [SpamAssassin]'s bayes filter via Courier-IMAP.

Integrated into CommuniGate Pro

...