该应用程序在 Docker 容器中运行。在干净的 VM 中运行时,我没有这个问题。
2016-10-18 21:26:14,495[nio-8080-exec-4] [INFO ] [com.xxx.mail.MailSender 102] - Sending from noreply@172.17.0.1 to xxx@gmail.com with subject Hello World
2016-10-18 21:26:14,517[nio-8080-exec-4] [ERROR] [com.xxx.mail.MailSender 107] - 501 5.1.7 Bad sender address syntax
我尝试配置 /etc/postfix/main.cf 以允许我添加此 IP 的 mynetworks。不工作。
我在 Alpine docker 容器中运行该应用程序