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 220.127.116.11
tail -f /var/log/mail.log and found
amavis: () (!)DENIED ACCESS from IP 18.104.22.168, 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 22.214.171.124. 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?