[CentOS-docs] Short postgrey guide?
Ned Slider
nedslider at f2s.com
Tue Dec 18 00:49:34 UTC 2007
Hi Guys,
Are you interested in a brief guide on how to set up postgrey (anti-spam
greylisting) with postfix? I set it up today and it took me a while to
get it working as the config is slightly different from that on many of
the googled guides (many are debian/ubuntu based). The darn config file
lives in /etc/sysconfig on RH/CentOS rather than /etc/default as
mentioned in all the guides I found!
Anyway, happy to write something if you feel it would be useful (below
is a summary of my notes to give you an idea)
Regards,
Ned
-----------------------
Notes:
# Install postgrey from RPMForge:
yum install postgrey
# Configure postgrey:
Create /etc/sysconfig/postgrey with:
OPTIONS="--inet=127.0.0.1:60000 --delay=60"
# Configure postfix to use postgrey in main.cf:
smtpd_recipient_restrictions =
reject_unknown_recipient_domain,
permit_mynetworks,
check_policy_service inet:127.0.0.1:60000
permit
# Start the postgrey service:
/etc/init.d/postgrey restart
(check service to automatically start in runlevels 3,4,5)
# reload postfix configs
postfix reload
# Check maillog for signs of postgrey working:
# postgrey loads:
Dec 17 21:44:58 jessie postgrey[6844]: Process Backgrounded
Dec 17 21:44:58 jessie postgrey[6844]: 2007/12/17-21:44:58 postgrey
(type Net::Server::Multiplex) starting! pid(6844)
Dec 17 21:44:58 jessie postgrey[6844]: Binding to TCP port 60000 on host
127.0.0.1
Dec 17 21:44:58 jessie postgrey[6844]: Setting gid to "101 101"
Dec 17 21:44:58 jessie postgrey[6844]: Setting uid to "100"
#postgrey working:
Dec 17 21:23:49 jessie postfix/smtpd[6714]: connect from
mk-outboundfilter-4-a-1.mail.uk.tiscali.com[212.74.114.8]
Dec 17 21:23:49 jessie postfix/smtpd[6714]: NOQUEUE: reject: RCPT from
mk-outboundfilter-4-a-1.mail.uk.tiscali.com[212.74.114.8]: 450 4.2.0
<ned at example.com>: Recipient address rejected: Greylisted, see
http://postgrey.schweikert.ch/help/example.com.html;
from=<bob at example.com> to=<ned at example.com> proto=ESMTP
helo=<mk-outboundfilter-4-a-1.mail.uk.tiscali.com>
Dec 17 21:23:54 jessie postfix/smtpd[6714]: disconnect from
mk-outboundfilter-4-a-1.mail.uk.tiscali.com[212.74.114.8]
More information about the CentOS-docs
mailing list