[geek] greylisting with postfix on debian stable

[geek] greylisting with postfix on debian stable

Previous Entry Add to Memories Share this! Next Entry
Very effective way to block spam which I hadn't gotten around to setting up until now. Very easy to set up.

Add to your /etc/apt/sources.list:
deb http://www.backports.org/debian/ woody postfix
deb http://www.backports.org/debian/ woody postgrey

apt-get update
apt-get -u dist-upgrade # will upgrade postfix
apt-get install postgrey

Modify /etc/postfix/main.cf

smtpd_recipient_restrictions =
       check_policy_service inet:

That section and the last two lines in it are required. You're likely to also want permit_mynetworks so localhost can always send outgoing mail (I needed it for mailman to be able to send).

Check back later for statistics.

Update: I've gotten no spam in the 3 hours since I set this up. That's impressive.
Powered by LiveJournal.com