Ebbe Hjorth

FreeBSD: Postfix with Postgrey

by Ebbe Hjorth on nov.02, 2009, under FreeBSD

Postgrey creates a default 5 minutes delay, that will prevent a lot of spam server getting through to your spam filter.

This requires that you have a running and working Postfix installation.

Install the postgrey
cd /usr/ports/mail/postgrey
make install clean

/usr/local/etc/rc.d/postgrey start

After the installation edit the /usr/local/etc/postfix/main.cf and add check_policy_service inet:127.0.0.1:10023 to the smtpd_recipient_restrictions section.

smtpd_recipient_restrictions = permit_sasl_authenticated,
permit_mynetworks,
reject_unauth_destination,
check_policy_service inet:127.0.0.1:10023

Remember to enable postgrey in /etc/rc.conf
postgrey_enable=”YES”

:, ,

Leave a Reply

You must be logged in to post a comment.

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...