Postgrey on Ubuntu 12.04 is a bit…buggy to get started.
First off, the service does not shutdown, meaning "service postgrey stop"does not actually kill the pid.
Thus, any modifications I made, including the whitelist were not active because postgrey was not reloading the configuration.
For others that might have this problem.
After you install Postgrey and you are able to start it, do a:
service postgrey stop.
ps -ef|grep postgrey
Most likely, you will see the PID is still active.
Edit /etc/init.d/postgrey
At the top of file, after DAEMON=/usr/sbin/postgrey add a new line:
PROCNAME=/usr/sbin/postg
For Start, Stop, Reload, Status, modify:
Instead of --name $NAME make it --name $PROCNAME
Pay attention to “”
4. Kill the Postgrey pid and do: service postgrey start
Check the process is running: ps -ef|grep postgrey
Stop the service: service postgrey stop
Check again to make sure the pid is not running: ps -ef|grep postgrey
It should not run now.
Given that this bug has been reported for some time now, it is amazing it has not been fixed.