我是一个noob系统pipe理员,这里是我的情况:
我认为这可能是因为应用程序服务器具有在“hosts”文件中定义的“example.com”域。 所以可能它会把邮件指向自己。
如果可能,我该如何解决这个问题。
更新:输出使用telnet发送电子邮件( http://thedaneshproject.com/posts/send-mail-through-smtp-using-telnet/ )
RCPT TO: [email protected] 250 Accepted DATA 354 Enter message, ending with "." on a line by itself Test info . 250 OK id=1RAPpZ-0005Kr-PO
谢谢,
您的服务器名称不应该是example.com。 它应该有一个主机名。 例如coolhost.example.com,mail.example.com,wael34218.example.com,milkyway.example.com,chubby.example.com或任何你喜欢的东西。 但从来没有域名本身。
因此,将其更改为/ etc / hostname,/ etc / mailname和/ etc / hosts中的有效内容。 重新启动你的盒子,然后我们会看到。
检查应用程序正在使用的任何SMTP引擎的configuration。 当你将“example.com”邮件改为Google时,你可能没有将必要的更改级联到SMTP引擎中。
很大程度上取决于SMTP引擎,但我可以考虑一些可能的调整…可能还有更多的可以尝试。
1 /将其更改为主服务器的子域(webapp.example.com),并确保它的DNS可以findexample.com。
2 /可能需要将其configuration为向Google进行身份validation。
此外,从应用程序传递的参数可能需要调整。 如果它与主应用程序分开,简单地重新configurationSMTP引擎也可能是值得的。