I notice that the greylist service has this as command line (service greylist status):
/var/run/postgrey/postgrey.pid --daemonize --inet=127.0.0.1:10023 --delay=180 --whitelist-recipients=/etc/postgrey/whitelist_clients
because /etc/default/postgrey has in it:
POSTGREY_OPTS="–inet=127.0.0.1:10023 --delay=180 --whitelist-recipients=/etc/postgrey/whitelist_clients"
There are 2 whitelist files in /etc/postgrey:
Each says at the top, respectively:
So why is the command line using the clients list for the recipients and ignoring the recipients list?
I changed the line in /etc/default/postgrey to:
POSTGREY_OPTS="–inet=127.0.0.1:10023 --delay=180 --whitelist-recipients=/etc/postgrey/whitelist_recipients --whitelist-clients=/etc/postgrey/whitelist_clients"
and restarted greylist with service greylist restart and greylisting, and particularly recipient white listing, appears to now work.
Is this a bug in the distribution? As the entries in whitelist_clients is being used for recipients seems it would never work. I am using the latest, installed yesterday.