Q: Whitelisting not working
I have tried to find an answer but my search did not find it so I post it.
I have OSX 10.11.5 with OSX Server 5.1 and have graylisting on to reduce spam.
The graylisting works fine but some domains like googl.com and outlook.com uses many different mailserver hostnames and IP adresses.
So the easy way would be to add those domains to the whitelist.
Issuing these command do that.
sudo serveradmin settings mail:postfix:add_whitelist_domain = *.outbound.protection.outlook.com
They are in the whitelist but still they are blocked due of graylisting.
I have already changed the path in graylist.pl
#$database_name="/var/mta/greylist.db";
#$greylist_delay=60;
$database_name="/Library/Server/Mail/Data/gldb/greylist.db";
$whitelist_host_file="/Library/Server/Mail/Data/gldb/whitelist_host";
$whitelist_domain_file="/Library/Server/Mail/Data/gldb/whitelist_domain";
$whitelist_db_name="/Library/Server/Mail/Data/gldb/whitelist.db";
$greylist_delay=60;
#
# Auto-whitelist threshold. Specify 0 to disable, or the number of
# successful "come backs" after which a client is no longer subject
# to greylisting.
#
$auto_whitelist_threshold = 10;
Still no go?
So if anyone can point me what or where to look to solve this I would be glad to here.
Thanks!
Hmm I have found the answer:
I was getting these warnings:
/Applications/Server.app/Contents/ServerRoot/usr/libexec/postfix/greylist.pl[121 87]: Warning: missing whitelist domain name attribute
So it must be typo or so.
Then I added it like this:
sudo serveradmin settings mail:postfix:add_whitelist_domain = .*xs4all.nl
And it all started working!
Problem solved!
MacBook Pro (13-inch Mid 2012), OS X Yosemite (10.10.5), null
Posted on Jun 30, 2016 11:00 PM