所以我的服务器已经停止发送电子邮件了。查看了一下,/var/mail/www-data
我得到了一些线索。诊断代码显示如下:
Diagnostic-Code: SMTP; 553 5.1.8 Sender address <[email protected]> domain does not exist
其余错误如下:
--s09He2kF031259.1389289202/ip-10-33-164-999.eu-east-1.compute.internal
Content-Type: message/delivery-status
Reporting-MTA: dns; ip-10-33-164-999.eu-east-1.compute.internal
Received-From-MTA: DNS; localhost
Arrival-Date: Thu, 9 Jan 2014 17:39:55 GMT
Final-Recipient: RFC822; [email protected]
Action: failed
Status: 5.1.8
Diagnostic-Code: SMTP; 553 5.1.8 Sender address <[email protected]> domain does not exist
Last-Attempt-Date: Thu, 9 Jan 2014 17:40:02 GMT
--s09He2kF031259.1389289202/ip-10-33-164-999.eu-east-1.compute.internal
Content-Type: text/rfc822-headers
Return-Path: <[email protected]>
Received: from ip-10-33-164-999.eu-east-1.compute.internal (localhost [127.0.0.1])
by ip-10-33-164-999.eu-east-1.compute.internal (8.14.4/8.14.4/Debian-2ubuntu2) with ESMTP id s09HdtkF031257
for <[email protected]>; Thu, 9 Jan 2014 17:39:55 GMT
Received: (from www-data@localhost)
by ip-10-33-164-999.eu-east-1.compute.internal (8.14.4/8.14.4/Submit) id s09Hdtnu031256;
Thu, 9 Jan 2014 17:39:55 GMT
Date: Thu, 9 Jan 2014 17:39:55 GMT
Message-Id: <201401099999.s09Hdtnu031256@ip-10-33-164-999.eu-east-1.compute.internal>
To: [email protected]
Subject: New newsletter
X-PHP-Originating-Script: 1000:TemplateController.php
From: [email protected]
我觉得奇怪的是,最近该服务器上没有任何变化。我唯一做的就是创建该服务器的精确副本,因此该服务器当前正在运行一个克隆,这意味着有另一台服务器具有相同的主机文件。这会导致问题吗?
我的主机文件当前如下所示:
127.0.0.1 localhost
54.444.222.44 test.answers.com answers
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
有人能帮忙吗?提前谢谢!
答案1
您的 sendmail 使用 ip-10-33-164-999.eu-east-1.compute.internal 作为其电子邮件名称。它将其用作本地用户的默认域,
远程主机拒绝接受发件人域缺少公共“MX”或“A”DNS 记录的消息,因为不可能发回(最终)退回消息。
您有静态公共 IP 地址吗?
是 => 将您的主机名设置为具有公共MX
或A
DNS 记录的名称
https://askubuntu.com/questions/9540/how-do-i-change-the-computer-name
否 => 您可以让 sendmail 伪装成另一台主机来发送电子邮件。