Community Forum

toastyduck
toastyduck
Offline
Resolved
0 votes
Hey everyone, while I love using the greylisting feature due to the INSANE amount of spam that I receive. I find that legit emails sometimes get blocked as well. What can I do to white list specific email addresses so that they are never greylisted? I've been using just the default settings of:

Delay: 5 mins
Retention Time: 35 days

Any help on this one would be fantastic, because there's nothing like the in laws saying "Hey you didn't reply to my email, why not"...

Thank you
Friday, July 14 2017, 03:19 PM
Share this post:
Responses (3)
  • Accepted Answer

    Friday, July 14 2017, 08:24 PM - #Permalink
    Resolved
    0 votes
    I put mine in /etc/cron.monthly and you can call it what you want It can also go in cron.daily and cron.weekly but not /etc/cron. It has not changed since mid-May so monthly is probably fine. You need to make it executable and that is it.
    The reply is currently minimized Show
  • Accepted Answer

    toastyduck
    toastyduck
    Offline
    Friday, July 14 2017, 05:20 PM - #Permalink
    Resolved
    0 votes
    Thank you very much for the help Nick, you're the best. I'm guessing that I need to create a script that sits in the cron folder, is that correct? or is just a simple file like "greylistupdate" okay? I also didn't know about creating my own .local file, so I've done that and I will test it out.

    Thank you
    The reply is currently minimized Show
  • Accepted Answer

    Friday, July 14 2017, 04:18 PM - #Permalink
    Resolved
    0 votes
    Have a look at /etc/postfix/postgrey_whitelist_clients. If you can, update this regularly from http://postgrey.schweikert.ch/pub/postgrey_whitelist_clients - I've a small file in /etc/cron.monthly containing the lines:
    wget -q -N http://postgrey.schweikert.ch/pub/postgrey_whitelist_clients -O /etc/postfix/postgrey_whitelist_clients
    /bin/systemctl restart postfix.service
    You can then build your own whitelist in /etc/postfix/postgrey_whitelist_clients.local where I, for example, have added 212.54.57.96/30 for Ebay's servers and /^euk\d+\.eukhosting\.net/ as eukhosting.net don't seem to retry and a few others.

    Legit e-mails get blocked if they retry too quickly then stop, or, in some cases, don't retry.

    If you search the internet, you'll also find ways of automatically creating a whitelist of people you've sent to.
    The reply is currently minimized Show
Your Reply