View Single Post
  #3 (permalink)  
Old 11-05-2009, 12:57 AM
todd_dsm todd_dsm is offline
Loyal Member
 
Posts: 83
Default Speaking only for RHEL5

Well, I'm probably the only one that didn't know this but for posterities sake:

menno.pieters had it tagged right; if you follow the directions from the walk-through it will get you 99% of the way home. The the necessary RHEL5-specific change occurs in the init script for postgrey:

Code:
# cat /etc/init.d/postgrey
#!/bin/sh
...
prog=postgrey
postgrey=/usr/sbin/$prog
DBPATH=/var/spool/postfix/postgrey
SOCKET=$DBPATH/socket          # Remove this line
OPTIONS="--unix=$SOCKET"       # Change this line to        OPTIONS="--inet=127.0.0.1:60000 -d"
...
By default, the postgrey rpm that you get at DAG's repo is configured by default to listen on a unix socket. The version I pulled down with yum was postgrey-1.32-1.el5.rf.

After restarting postgrey and running netstat I found this:
Code:
# netstat -nlpa | grep post
tcp     0     0     127.0.0.1:60000     0.0.0.0:*     LISTEN     21891/postgrey -d -
unix    2    [ ]	                    DGRAM    7010876     21891/postgrey -d -
The second line makes it appear as if there is still a unix socket being created but there is no LISTEN on that line so it seems to go ignored. I haven't dug through the postgrey perl script yet because I am successfully greylisting!

Thanks menno.pieters!
todd_dsm

Don't forget to Vote for this RFE:
RFE: A place To Display the contents of 'My Documents'
Reasoning: It's new, bold, and cool.

Last edited by todd_dsm; 10-08-2010 at 10:41 AM..
Reply With Quote