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

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?


Hi Eric,

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

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.

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

“.*@domain.com” and turn regex on