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”