February 05, 2005
Controlling spam with postfix

Steve has a pretty good tip on rejecting spammers with Postfix HELO controls.

In addition to that, I also use a combination of spamassassin and header checks to drop spam at the door:

In main.cf:

header_checks = regexp:/etc/postfix/header_checks

In /etc/postfix/header_checks:

/^X-Spam-Flag:.YES/ REJECT spam


What happens here? Spamassassin adds the X-SPAM-FLAG header and postfix rejects the message based on that.. This of course is only recommended if you're certain your spam rules are not providing false positives.

Posted February 05, 2005 12:02 PM in Spam sucks
TrackBack URL for this entry: http://www.unix-girl.com/mt/mt-tb.cgi/1452
Comments
Trackbacks
Bagel Belly Blog:Postfix spam fix
Another weapon in the fight against mail spam, blocking incorrect HELO usage. Via kasia....
(read more)
February 6, 2005 03:46 PM
UFies.org:Spam Blocking with Postfix
Kasia points to how to block spammers with Postfix HELO controls. Going to see if this'll work on UFies........
(read more)
February 8, 2005 12:26 PM