Ubuntu上的sendmail工作不正常

我正在build立一个在LAMP堆栈上运行Ubuntu的新服务器。

我已经安装了sendmail,但似乎没有工作。

这是我在错误日志中的输出:

Apr 16 13:46:51 ip-10-33-164-173 sm-mta[12939]: STARTTLS=client, relay=mail.imagine-publishing.co.uk., version=TLSv1/SSLv3, verify=FAIL, cipher=AES256-SHA, bits=256/256 Apr 16 13:46:51 ip-10-33-164-173 sm-mta[12939]: r3GDkeJG012937: to=<[email protected]>, ctladdr=<[email protected]> (33/33), delay=00:00:11, xdelay=00:00:11, mailer=esmtp, pri=120967, relay=mail.imagine-publishing.co.uk. [86.28.80.249], dsn=5.6.0, stat=Data format error Apr 16 13:46:51 ip-10-33-164-173 sm-mta[12939]: r3GDkeJG012937: r3GDkpJG012939: DSN: Data format error Apr 16 13:46:51 ip-10-33-164-173 sm-mta[12939]: r3GDkpJG012939: to=<[email protected]>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30000, dsn=2.0.0, stat=Sent 

该错误来自/ var / mail / www-data
(reason: 553 5.1.8 Sender address <[email protected]> domain does not exist)

林有点新手,当涉及到服务器pipe理员的东西,所以任何帮助将appriciated!

您的sendmail使用无效的“此主机电子邮件名称”。 它在默认情况下被用作发件人地址中的域。 其他邮件服务器拒绝这样的发件人地址(域没有DNSlogging)。

在你的phpconfiguration/脚本中设置信封发件人标题发件人地址。 将它们设置为[email protected]
http://php.net/manual/en/mail.configuration.php
http://php.net/manual/en/function.mail.php

您的sendmail也应该被修复。
将“此主机电子邮件名称”更改为AMX DNSlogging的名称:
*更改hostname --fqdn报告的hostname --fqdn
要么
*只能将其更改为sendmail https://www.sendmail.com/sm/open_source/docs/m4/whoami.html