James

Fight Spam

Since changing over my home server last night, I’ve had to re-configure spam filtering.

A quick run down:

sendmail, procmail, spamassassin.

added this to /etc/mail/sendmail.mc
FEATURE(`dnsbl', `list.dsbl.org')dnl
FEATURE(`dnsbl', `bl.spamcop.net')dnl
FEATURE(`dnsbl', `sbl.spamhaus.org')dnl
FEATURE(`dnsbl', `blackholes.mail-abuse.org')dnl
FEATURE(`dnsbl', `relays.mail-abuse.org')dnl

my /etc/procmailrc:
DROPPRIVS=yes
:0 fw
* < 256000
| /usr/bin/spamc -f

my per user /home/user/.procmailrc files:
MAILDIR=$HOME/mail

:0 H
* ^X-Spam-Status:.*Yes
{
EXITCODE=67
:0:
spam
}

Explanation. I’ll keep it short. we’re blacklisting regular spamers using a few servers listed in sendmail.mc so we wont even process emails that come and are in those DB’s. Then we are sending all other emails that are under 256K through spamassassin. If there is spam found, we’re throwing it back at the spammer. Spam is dropped and wont reach the user mailbox.

See how things go. May need to make changes, but so far so good!

Trackback URI | Comments RSS

Leave a Reply