Recipient address rejected: Greylisted

  • I have setup a catch all for one of my domains, and tested it with an email sent from a hotmail.com id. It seemed delayed for around 5-10 minutes, so I checked the mail logs and found this:


    Code
    1. Mar 4 19:33:08 myhost postfix/smtpd[23828]: connect from blu0-omc1-s9.blu0.hotmail.com[65.55.116.20]Mar 4 19:33:10 myhost postfix/policyd-weight[20302]: weighted check: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .outlook. - helo: .blu0-omc1-s9.blu0.hotmail. - helo-domain: .hotmail.) FROM/MX_MATCHES_HELO(DOMAIN)=-2; <client=65.55.116.20> <helo=blu0-omc1-s9.blu0.hotmail.com> <[email protected]> <[email protected]>; rate: -8.5Mar 4 19:33:10 myhost postfix/policyd-weight[20302]: decided action=PREPEND X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .outlook. - helo: .blu0-omc1-s9.blu0.hotmail. - helo-domain: .hotmail.) FROM/MX_MATCHES_HELO(DOMAIN)=-2; rate: -8.5; <client=65.55.116.20> <helo=blu0-omc1-s9.blu0.hotmail.com> <[email protected]> <[email protected]>; delay: 1sMar 4 19:33:10 myhost postgrey[20094]: action=greylist, reason=new, client_name=blu0-omc1-s9.blu0.hotmail.com, client_address=65.55.116.20, [email protected], [email protected] 4 19:33:10 myhost postfix/smtpd[23828]: NOQUEUE: reject: RCPT from blu0-omc1-s9.blu0.hotmail.com[65.55.116.20]: 450 4.2.0 <[email protected]>: Recipient address rejected: Greylisted, see http://postgrey.schweikert.ch/help/mydomain.com.html; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<blu0-omc1-s9.blu0.hotmail.com>Mar 4 19:33:10 myhost postfix/smtpd[23828]: disconnect from blu0-omc1-s9.blu0.hotmail.com[65.55.116.20]Mar 4 19:34:08 myhost imapd: LOGIN, [email protected], ip=[::ffff:192.157.59.133], port=[49449], protocol=IMAPMar 4 19:34:08 myhost imapd: LOGOUT, [email protected], ip=[::ffff:192.157.59.133], headers=0, body=0, rcvd=92, sent=444, time=0Mar 4 19:34:10 myhost postfix/smtpd[23828]: connect from blu0-omc1-s9.blu0.hotmail.com[65.55.116.20]Mar 4 19:34:11 myhost postfix/policyd-weight[20302]: decided action=PREPEND X-policyd-weight: using cached result; rate: -8.5; <client=65.55.116.20> <helo=blu0-omc1-s9.blu0.hotmail.com> <[email protected]> <[email protected]>; delay: 1sMar 4 19:34:11 myhost postgrey[20094]: action=greylist, reason=early-retry (239s missing), client_name=blu0-omc1-s9.blu0.hotmail.com, client_address=65.55.116.20, [email protected], [email protected] 4 19:34:11 myhost postfix/smtpd[23828]: NOQUEUE: reject: RCPT from blu0-omc1-s9.blu0.hotmail.com[65.55.116.20]: 450 4.2.0 <[email protected]>: Recipient address rejected: Greylisted, see http://postgrey.schweikert.ch/help/mydomain.com.html; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<blu0-omc1-s9.blu0.hotmail.com>Mar 4 19:34:11 myhost postfix/smtpd[23828]: disconnect from blu0-omc1-s9.blu0.hotmail.com[65.55.116.20]


    How is this greylisting controlled/configured, and how is possible to relax the rules to get email properly?


    Edit:
    Ok, I figured it out myself.


    Apparently the greylisting is controlled by a service called postgrey. It is started by postfix.


    To disable postgrey, comment out the consecutive lines from /etc/postfix/main.cf:


    Code
    1. check_policy_service inet:127.0.0.1:12525,
    2. check_policy_service inet:127.0.0.1:10023,


    Restart postfix:
    /etc/init.d/postfix restart


    And mail starts arriving fast now.
    I know postgrey is a spam protection feature. However I dont need it. :)

    Edited once, last by dzchimp ().