My mail server ran very well. But after my setting an OpenConnect VPN on the mail server, I found the server could not receive mails from outside.
For example, my host IP is 1.2.3.4
I did tail -f /var/log/mail.log
and found
amavis[15499]: () (!)DENIED ACCESS from IP 1.2.3.4, policy bank
Usually Postfix (2.11) talks to amavis (the virus scanning software) using local IP 127.0.0.1 but this time it uses 1.2.3.4. Amavis denied its access.
So how to get rid of this error and I still want to use OpenConnect VPN on the same server.
I found another similar question Ubuntu server not using localhost IP for internal communication but he didn't get a correct answer.
Can you help me?
Many thanks!