postgrey - how can I see if it works?

Discussion in 'Server Operation' started by flameproof, Sep 5, 2014.

  1. flameproof

    flameproof Member

    I have a little SPAM problem on one mailbox and I wonder if Postgrey really works. My setup is:

    VPS (286Mb) + Webmin
    CentOS
    Postfix
    Spamassassin

    Postfix is installed (there is an automatic option in Webmin). I still get lots of SPAM and I don't see anything in the headers about Postgrey.

    I wonder if it's working at all.

    Code:
    # /postfix/main.cf
    smtpd_recipient_restrictions = 
    permit_mynetworks, 
    permit_sasl_authenticated, 
    reject_unauth_destination, 
    permit_mx_backup, 
    permit_inet_interfaces,
    check_policy_service unix:postgrey/socket, 
    permit
    message_size_limit = 20480000
    
    
    # /etc/sysconfig  (fiile: postgrey 644)
    
    OPTIONS="--unix=/var/spool/postfix/postgrey/socket --delay=600"
    
    Code:
    # ps aux|grep postgrey
    postgrey  5858  0.0  2.6  11064  7892 ?        Ss   Sep02   0:00 /usr/sbin/postgrey -d --unix=/var/spool/postfix/postgrey/socket
    root     31991  0.0  0.1   1836   540 pts/0    S+   22:09   0:00 grep postgrey
    
    Code:
    # /var/log/maillog  > search 'grey' > found only... (today is 5th)
    Sep  2 23:47:06 vps-100 postgrey[5858]: Process Backgrounded 
    Sep  2 23:47:06 vps-100 postgrey[5858]: 2014/09/02-23:47:06 postgrey (type Net::Server::Multiplex) starting! pid(5858) 
    Sep  2 23:47:06 vps-100 postgrey[5858]: Binding to UNIX socket file /var/spool/postfix/postgrey/socket using SOCK_STREAM  
    Sep  2 23:47:06 vps-100 postgrey[5858]: Setting gid to "105 105" 
    Sep  2 23:47:06 vps-100 postgrey[5858]: Setting uid to "104" 
    
    

    However, when I do a mail servertest with test@allaboutspam.com I can see in the log for that mail - and ONLY for that mail:

    Code:
    Sep  4 22:27:00 vps-100 postfix/smtp[22297]: E9FBE505005C: to=<test@allaboutspam.com>, relay=mx.allaboutspam.com[96.126.107.60]:25, delay=9.5, delays=1.2/0.01/0.63/7.7, dsn=4.0.0, status=deferred (host mx.allaboutspam.com[96.126.107.60] said: 452 Greylisted. Please try again after some time. (in reply to end of DATA command))
    I am puzzled....
     

Share This Page