Re: [Hampshire] Linux SPAM filtering

Top Page

Reply to this message
Author: Vic
Date:  
To: hampshire
Subject: Re: [Hampshire] Linux SPAM filtering
>> Far better IMO to reject during the SMTP conversation.
>
> Any chance on elaborating on how this is done. A list similar to the
> one Adam did would be really helpful.


Well, I do it with sendmail. I like sendmail.

sendmail has a system called "milters", which allow the mail to be piped
through some external daemon during the SMTP phase; these milters can then
tell sendmail to reject the mail if it's too spammy.

So my sendmail.mc file has the following lines :-

INPUT_MAIL_FILTER(`spamassassin',
`S=local:/var/run/spamassassin/spamass.sock, F=,T=C:15m;S:4m;R:4m;E:10m')
INPUT_MAIL_FILTER(`clamav', `S=local:/var/run/clamav/clamav-milter.sock,
F=T, T=S:4m;R:4m')

I then run the spamd and clamd daemons to provide spam & virus detection
services respectively, run the spamass-milter and clamav-milter services,
then fire up sendmail. Job done...

Vic.