postgrey - postfix greylisting

Discussion in 'Server Operation' started by blinky, Sep 21, 2012.

  1. blinky

    blinky Member

    Hi everyone,

    I'm trying to figure out why postgrey is rejecting incoming mail...

    From the syslog:

    Sep 21 16:12:24 mail postfix/smtpd[31224]: connect from mail.ncf.ca[134.117.136.45]
    Sep 21 16:12:24 mail dovecot: auth: Debug: Loading modules from directory: /usr/lib/dovecot/modules/auth
    Sep 21 16:12:24 mail dovecot: auth: Debug: Module loaded: /usr/lib/dovecot/modules/auth/libdriver_mysql.so
    Sep 21 16:12:24 mail dovecot: auth: Debug: auth client connected (pid=31224)
    Sep 21 16:12:24 mail postfix/smtpd[31224]: Anonymous TLS connection established from mail.ncf.ca[134.117.136.45]: TLSv1 with cipher ADH-AES256-SHA (256/256 bits)
    Sep 21 16:12:25 mail postgrey[1519]: action=greylist, reason=new, client_name=mail.ncf.ca, client_address=134.117.136.45, sender=nospam@ncf.ca, recipient=test@comingtoatheatrenearyou.com
    Sep 21 16:12:25 mail postfix/smtpd[31224]: NOQUEUE: reject: RCPT from mail.ncf.ca[134.117.136.45]: 450 4.2.0 <test@comingtoatheatrenearyou.com>: Recipient address rejected: Greylisted, see http://postgrey.schweikert.ch/help/comingtoatheatrenearyou.com.html; from=<nospam@ncf.ca> to=<test@comingtoatheatrenearyou.com> proto=ESMTP helo=<mail.ncf.ca>
    Sep 21 16:12:25 mail postfix/smtpd[31224]: disconnect from mail.ncf.ca[134.117.136.45]

    Any help greatly appreciated.
     
  2. pititis

    pititis Member

    Your log is ok
     
  3. blinky

    blinky Member

    How interesting... so it's a temporary delay presumably because most spammers won't try several times. I wonder how long the delay is?
     
  4. pititis

    pititis Member

    Default delay is 5 minutes. You can change it in /etc/default/postgrey

    Cheers
     
  5. blinky

    blinky Member

    I lowered the default to 60 by adjusting hte POSTGREY_OPTS for debugging purposes.

    Oh and the missing /etc/var/mail.log was an error on my part. I recreated it with the appropriate chmod switch and postfix is now writing to the mail.log as it should.

    I am actually able to send mail out now from the domain to other addresses, and I know mail is arriving as it's shown in the log but, of course, I'm just not quite sure where to look for it... presumably somewhere via mysql.

    I thought the "mail" command would show it to me but no such luck.

    There is some more progress on the project and I thank you again for your input.
     

Share This Page