-1

该应用程序在 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 容器中运行该应用程序

4

1 回答 1

0

noreply@172.17.0.1确实是不好的语法。地址文字(“172.17.0.1”)需要用方括号括起来:

   noreply@[172.17.0.1]
于 2016-12-29T14:42:48.037 回答