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 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]
Ned Slider wrote:> Hi Guys, > > Are you interested in a brief guide on how to set up postgrey (anti-spam > greylisting) with postfix?Yes, please.> The darn config file lives in /etc/sysconfig on RH/CentOS rather than > /etc/default as mentioned in all the guides I found!And all the Debian people I know swear that nothing puts files into that directory :)> Anyway, happy to write something if you feel it would be useful (below > is a summary of my notes to give you an idea)Looks good ... I'll be back to you in a short while. Cheers, Ralph -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: <lists.centos.org/pipermail/centos-docs/attachments/20071218/4145d857/attachment-0004.sig>
Thanks. No rush Ralph, I'm busy as heck atm but hopefully I'll find time over xmas to get it done. I guess you'll set me up a page and send me the link. Ralph Angenendt wrote:> Ned Slider wrote: >> Hi Guys, >> >> Are you interested in a brief guide on how to set up postgrey (anti-spam >> greylisting) with postfix? > > Yes, please. > >> The darn config file lives in /etc/sysconfig on RH/CentOS rather than >> /etc/default as mentioned in all the guides I found! > > And all the Debian people I know swear that nothing puts files into that > directory :) > >> Anyway, happy to write something if you feel it would be useful (below >> is a summary of my notes to give you an idea) > > Looks good ... > > I'll be back to you in a short while. > > Cheers, > > Ralph > > > ------------------------------------------------------------------------ > > _______________________________________________ > CentOS-docs mailing list > CentOS-docs at centos.org > lists.centos.org/mailman/listinfo/centos-docs
Hi list, Draft is up at: wiki.centos.org/HowTos/postgrey Please feel free to comment or correct any mistakes/typos. Maybe I'll tackle spamassassin over the holidays on my server and see if it's worth writing a guide for that :) Regards, Ned Ralph Angenendt wrote:> Ned Slider wrote: >> Hi Guys, >> >> Are you interested in a brief guide on how to set up postgrey (anti-spam >> greylisting) with postfix? > > Yes, please. > >> The darn config file lives in /etc/sysconfig on RH/CentOS rather than >> /etc/default as mentioned in all the guides I found! > > And all the Debian people I know swear that nothing puts files into that > directory :) > >> Anyway, happy to write something if you feel it would be useful (below >> is a summary of my notes to give you an idea) > > Looks good ... > > I'll be back to you in a short while. > > Cheers, > > Ralph > > > ------------------------------------------------------------------------ > > _______________________________________________ > CentOS-docs mailing list > CentOS-docs at centos.org > lists.centos.org/mailman/listinfo/centos-docs
Ned Slider wrote:> 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!quick question here - isnt it actually better to just use postgrey over a named socket rather than over a network socket ? -- Karanbir Singh : karan.org : 2522219 at icq
On 12/17/07, Ned Slider <nedslider at f2s.com> wrote:> Hi Guys,... Could we add the following image: wiki.centos.org/HowTos/postgrey?action=AttachFile&do=get&target=postgrey-en.png I found the article very clear and easy to read. I would like to thank you with this image, if it helps of course. If some modification is needed, tell me please, I will be glad to fix it. Cheers, al.