Whitelist recipients domain in greylisting

5 posts / 0 new
Last post
#1 Thu, 12/08/2011 - 03:03
Dim Git

Whitelist recipients domain in greylisting

Hi People, seasonal greetings to you all.

I want to prevent greylisting on certain domains on my server and figure that the place to do that is to use "whitelisted Recipients" in the Greylisting module.

Having done some Googling I find that the domain only needs to be added. ie. "domain.com" not "@domain.com".

I have tried that and mail is still greylisted.

Am I missing something?

Many thanks for reading.

CentOS Linux 5.7
Webmin version 1.570
Virtualmin version 3.88 Pro
Theme version 8.1

Thu, 12/08/2011 - 09:03

Yeah, you would just need to enter the domain as you did.

It's possible that, after adding that, that Postgrey isn't being restarted. You may want to try restarting it by running this command as root:

/etc/init.d/postgrey restart

After doing that, are emails to that domain no longer greylisted?


Fri, 12/09/2011 - 07:28
Dim Git

Hi Eric,

Sorry to say that restarting Postgrey made no difference and email is still greyisted.

Thu, 12/15/2011 - 05:58
Dim Git

Continuing to dig around trying to solve this.

/etc/postfix/postgrey_whitelist_recipients does appear to be updated correctly and Postgrey is restarted but simply adding "domain.com" does not work with incoming email still being greylisted.

I have discovered that if I use ".*@domain.com" and turn regex on, it works well !

I did find a post on the web from someone with a similar problem but that was dates several years ago and it was reported as a bug.

Anyway, the problem is resolved for me but if you can improve on the regex I have used, please do.

Edited to add :-
Just noticed that the single backstroke character before the ".com" does not show in this forum.

Fri, 08/30/2013 - 10:29 (Reply to #4)

Old post but did the trick. Don't forget that first dot (.), otherwise greylisting will refuse to restart.

".*@domain.com" and turn regex on

Topic locked