I noticed that my mail server has been bouncing incoming mails with "451 4.3.5 Server configuration problem" on a freshly rebuilt image from master since a few days. Postgrey has worked before.
./setup.sh debug show-mail-logs revealed the following:
Apr 12 12:27:55 mail postfix/smtpd[1424]: warning: connect to 127.0.0.1:10023: Connection refused
Apr 12 12:27:55 mail postfix/smtpd[1424]: warning: problem talking to server 127.0.0.1:10023: Connection refused
Apr 12 12:27:56 mail postfix/smtpd[1424]: warning: connect to 127.0.0.1:10023: Connection refused
Apr 12 12:27:56 mail postfix/smtpd[1424]: warning: problem talking to server 127.0.0.1:10023: Connection refused
although postgrey should have started according to the startup logs:
Apr 12 12:27:03 mail postgrey[198]: Resolved [localhost]:10023 to [127.0.0.1]:10023, IPv4
Apr 12 12:27:03 mail postgrey[198]: Resolved [localhost]:10023 to [::1]:10023, IPv6
Apr 12 12:27:03 mail postgrey[198]: Binding to TCP port 10023 on host 127.0.0.1 with IPv4
Apr 12 12:27:03 mail postgrey[198]: Binding to TCP port 10023 on host ::1 with IPv6
Turns out, that postgrey somehow cannot bind to the port anymore. Replacing --inet=10023 with --inet=127.0.0.1:10023 in the postgrey config fixes the issue for me.
I will test this fix again locally and submit a pull request.
I noticed that my mail server has been bouncing incoming mails with "451 4.3.5 Server configuration problem" on a freshly rebuilt image from master since a few days. Postgrey has worked before.
./setup.sh debug show-mail-logs revealed the following:
although postgrey should have started according to the startup logs:
Turns out, that postgrey somehow cannot bind to the port anymore. Replacing --inet=10023 with --inet=127.0.0.1:10023 in the postgrey config fixes the issue for me.
I will test this fix again locally and submit a pull request.