我在这里被人们送到了这里
好,所以我知道我使用正确的代码,因为我有它在另一台服务器上工作,但是当我尝试从这个特定的服务器上使用PHP的网页发送电子邮件我得到一个成功的消息,但电子邮件永远不会通过。
在/ var / log / maillog中我看到了
Sep 11 14:20:28 ela1 postfix / smtp [11496]:CEE83E151FD:to = [我的邮箱地址],relay = none,delay = 40,delay = 0.08 / 0.01 / 40/0,dsn = 4.4.3, status = deferred(未find主机或域名。name = btopenworld.co.uk的名称服务错误type = MX:Host not found,try again)
谁能帮忙?
日志说, btopenworld.co.uk没有MXlogging 。 联系收件人并要求他们input正确的电子邮件地址或修复其域名的DNSlogging。
从我看到使用nslookup:
> btopenworld.co.uk Server: 87.248.160.5 Address: 87.248.160.5#53 Non-authoritative answer: Name: btopenworld.co.uk Address: 213.121.143.193 > set type=MX > btopenworld.co.uk Server: 87.248.160.5 Address: 87.248.160.5#53 Non-authoritative answer: *** Can't find btopenworld.co.uk: No answer Authoritative answers can be found from: btopenworld.co.uk origin = ns0.bt.net mail addr = hostmaster.bt.net serial = 2002020923 refresh = 28800 retry = 7200 expire = 604800 minimum = 86400 >
此网域没有任何MXlogging,因此您的MTA不知道将电子邮件发送到哪里。 因此,问题是从btopenworld.co.uk域部分,为了解决这个问题,btopenworld.co.uk的所有者需要联系,所以他添加了btopenworld.co.uk区域的MXlogging。
我不相信btopenworld。 co.uk曾经是一个有效的电子邮件目的地,只有btopenworld。 com和btinternet.com
您可以尝试重新发送您的电子邮件到[email protected]作为testing,看看是否通过,虽然根据您的例子,您使用自己的电子邮件地址进行testing,所以我本来以为你会注意到这一点问题很久以前: – /
显示/etc/resolv.conf的输出。这个文件显示其中的DNS服务器。如果没有其中的DNS服务器,那么你必须添加一个。另外的问题可以通过DNS中的MX ecords来实现.MX告诉MDA(邮件交付代理)在哪里路由电子邮件。所以你也必须检查你的DNSconfiguration。