On Wed, 23 Oct 2002, Brian York wrote: > Who has experience with spam assassin? > > Can it be setup as a passthough server or does it have to be used on the > actual mail server. > It can be used both ways. It's quite flexible and you can set it up either as a local procmail filter or called through sendmail/postfix directly.
Here's an example of a local mailbox filter through procmail: PATH= /usr/local/bin:/bin:/usr/bin MAILDIR=$HOME/mail LOGFILE=$HOME/tmp/procmail.log VERBOSE=no COMSAT=no SENDMAIL=/usr/bin/faces.sendmail :0fw | spamassassin -P :0: * ^X-Spam-Status: Yes caughtspam :0: * ^Reply-To.*[EMAIL PROTECTED] IN.mandrake :0: * ^To.*[EMAIL PROTECTED] IN.mandrake :0: * ^Reply-To.*[EMAIL PROTECTED]* IN.mandrake ---End Here's an example of using spam assasin on an archiving filter (this can be changed minimally to work with public lists): In your aliases file: archive: "|/usr/bin/procmail -m /etc/procmail/filter.rc" In the /etc/procmail/filter.rc file: :0fw | /usr/bin/spamassassin -P :0 * ^X-Spam-Status: Yes /tmp/caughtspam :0 * ^X-Spam-Status: No | /usr/local/bin/archive_mail --End If you're running a really high load server you can replace spamassassin with spamd. You can also call it directly from within sendmail or postfix. I don't have a ready configuration but it is not difficult at all to configure.
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com