我正在尝试配置我的服务器以获取参考此链接的电子邮件:SMTP Relaying Outgoing Mail in Postfix - using Webmin。在我的案例中,我使用了Mandrill smtp 服务器。在配置主服务器之前,我还配置了一个 vagrent 实例。但是当我尝试使用以下方法从服务器(包括 vagrant 和 main)发送电子邮件时:
sendemail -f registration@example.com -t <myemail>@gmail.com -m "Message Body" -u "Message Subject"
Run Code Online (Sandbox Code Playgroud)
消息在后缀中排队,永远不会到达目的地。
/var/log/mail.log 文件显示:
precise64 postfix/smtpd[16542]: connect from localhost[127.0.0.1]
precise64 postfix/smtpd[16542]: 116033A4253: client=localhost[127.0.0.1]
precise64 postfix/cleanup[16545]: 116033A4253: message-id=<621108.689435886-sendEmail@precise64>
precise64 postfix/qmgr[12672]: 116033A4253: from=<registration@example.com>, size=916, nrcpt=1 (queue active)
precise64 postfix/smtpd[16542]: disconnect from localhost[127.0.0.1]
precise64 postfix/smtp[16546]: Untrusted TLS connection established to smtp.mandrillapp.com[54.195.231.78]:587: TLSv1.1 with cipher AECDH-AES256-SHA (256/256 bits)
precise64 postfix/smtp[16546]: 116033A4253: host smtp.mandrillapp.com[54.195.231.78] said: 454 …Run Code Online (Sandbox Code Playgroud)