Postgrey on Ubuntu + ISPConfig

Discussion in 'Installation/Configuration' started by oxygen, Mar 9, 2016.

  1. oxygen

    oxygen Member

  2. Jesse Norell

    Jesse Norell Active Member

    Yep, the tutorial title even mentions "on Debian and Ubuntu". Ubuntu has a postgrey package, you should be able to follow that tutorial with little to no changes needed.
     
    oxygen likes this.
  3. oxygen

    oxygen Member

    Interesting, after this installation Postgrey will start automatically afrer server reboot?
     
  4. Jesse Norell

    Jesse Norell Active Member

    It should; if it doesn't, I'd check for a setting in /etc/default/postgrey and/or check the logs for errors.
     
    oxygen likes this.
  5. oxygen

    oxygen Member

    seems ok, but port was 10023. Now testing how postgrey works.
     
  6. Jesse Norell

    Jesse Norell Active Member

    Yeah, you can change to port 6000 by editing /etc/default/postgrey as per the readme .. or just change your postfix config to utilize 10023 if you prefer, it really doesn't matter as long as you set things up consistently.
     
  7. oxygen

    oxygen Member

    Seems that some messages are greylisted for 5min despite the fact that
    Code:
    POSTGREY_OPTS="--inet=127.0.0.1:10023 --delay=60"
     
  8. Jesse Norell

    Jesse Norell Active Member

  9. oxygen

    oxygen Member

    yes, stop, then start.
    Now will look at mail.log again.

    Found very long delay:
    Mar 10 15:46:48 server postgrey[1190]: action=greylist, reason=new, client_name=cpanel26.proisp.no, client_address=5.9.14.109, [email protected], [email protected]
    Mar 10 15:46:48 server postfix/smtpd[27274]: NOQUEUE: reject: RCPT from cpanel26.proisp.no[5.9.14.109]: 450 4.2.0 <[email protected]>: Recipient address rejected: Greylisted, see http://postgrey.schweikert.ch/help/modilinos.com.html; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<cpanel26.proisp.no>
    Mar 10 15:46:48 server postfix/smtpd[27274]: disconnect from cpanel26.proisp.no[5.9.14.109]



    Mar 10 16:05:29 server postgrey[1190]: action=pass, reason=triplet found, delay=1121, client_name=cpanel26.proisp.no, client_address=5.9.14.109, [email protected], [email protected]

    .. but probably i should learn more how greylisting working ..
     
    Last edited: Mar 10, 2016
  10. Jesse Norell

    Jesse Norell Active Member

    The ~19 minute delay you see in the log entries there between 450 temporary reject and the delivery is determined by the sending side, not postgrey - ie. if they would have attempted delivery again sooner, it would have worked. Try testing by sending an email from somewhere (another domain/server or webmail service maybe), after postgrey temp rejects it, immediately send another one; if your second one is under 60 seconds it should also be temp rejected; send another one after 60 seconds (but under 5 minutes) and it should be accepted.
     
    oxygen likes this.
  11. oxygen

    oxygen Member

    Yes, now i'm understand. Thank You very much.
     

Share This Page