Postgrey and IPV6

Great product btw.

I had an issue earlier installing on a fresh ubuntu server that had IPV6 disabled. Mail.log was full of port 10023 connection refused entries. Apparently, the way it’s configured it’s trying to bind to ipv6 and when it’s not there postgrey isn’t starting.

To fix the problem I edited /etc/default/postgrey and changed:

POSTGREY_OPTS="--inet=10023"

to

POSTGREY_OPTS="--inet=127.0.0.1:10023"

Everything is fine now. My question is will this change be persistent or is mailinabox going to overwrite my change at some point in time?

That actually sounds like postgrey is possibly successfully binding to the IPv6 loopback address and not IPv4 but postfix is trying to connect on IPv4 only.

The change won’t be overridden. And I’ll add that change to Mail-in-a-Box going forward. Thanks for posting.