









|
[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
[NMLUG] postfix+spamassassin
I think I have spamassassin running with postfix.
It seemed to correctly tag the sample mails... but missed some
real spam. I need to work on training and/or CPAN use.
To summarize for archives:
1) Make a user named mailfilter
2) crate : -rwxr-xr-x 1 mailfilt staff 64 Oct 25 13:19
/usr/local/bin/postfixfilter
containing:
#!/bin/bash
/usr/bin/spamc | /usr/sbin/sendmail -i "$@"
exit $?
3) make sure that spamd is running.
(it is started from the spamassassin script with debian)
4) change the smtp inet line in /etc/postfix/master.cf to:
smtp inet n - n - - smtpd -o content_filter=spamassassin:
5) add this line to the end of master.cf
spamassassin unix - n n - - pipe flags=Rq user=mailfilter
argv=/usr/local/bin/postfixfilter -f ${sender} ${recipient}
I dunno if this is maximally secure. It follows the post from
some yahoo on the internet. (unreliable source)
I tried several other methods (some which do not use spamd)
but failed. This might be working, so I'll stick with it.
I guess I will try to get SpamAssassin trained/configured... and
when it seems to me working, I'll play with procmail.
I prefer to move one step at a time, with ample testing...
aaron
|
|