How to Setup Grey Listing with Postgrey

Install the Postgrey package:

aptitude install postgrey

Configure the delay and message settings in /etc/default/postgrey:

POSTGREY_OPTS="--inet=127.0.0.1:60000 --delay=180"
POSTGREY_TEXT="Temporarily deferred due to greylisting. Please try again later."

Restart postgrey:

/etc/init.d/postgrey restart

Enable grey-listing policy service in /etc/postfix/main.cf:

smtpd_recipient_restrictions =
  permit_mynetworks,
  permit_sasl_authenticated,
  [...etc]
  reject_unauth_destination,
  check_policy_service inet:127.0.0.1:60000,

Restart Postfix:

/etc/init.d/postfix restart

Discussion

Enter your comment (wiki syntax is allowed):

Subscribe to the RSS feed for Andy's Debian HOWTOs

Article from Andy's Debian HOWTOs (http://www.besy.co.uk/debian/debian)

 
debian/how_to_setup_gray-listing_with_postgray.txt · Last modified: 2008/08/01 23:56 (external edit) · [Old revisions]
Recent changes RSS feed Powered by Debian Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki