由于 PTR 记录,无法发送邮件

由于 PTR 记录,无法发送邮件

我刚刚在 ubuntu 14.04 lts 上安装了 sendmail 并配置了一个新域。不知何故,我一定忽略了一个配置问题,因为 google mail 拒绝了该邮件。查看返回消息时,它告诉我以下内容:

The original message was received at Tue, 27 Oct 2015 11:59:18 +0100
from staging.www.de.mydomain.com [127.0.0.1]

   ----- The following addresses had permanent fatal errors -----
<[email protected]>
    (reason: 550-5.7.1 [2a01:4f8:212:27c8::2] Our system has detected that this message does)

   ----- Transcript of session follows -----
... while talking to aspmx.l.google.com.:



>>> DATA
<<< 550-5.7.1 [2a01:4f8:212:27c8::2] Our system has detected that this message does
<<< 550-5.7.1 not meet IPv6 sending guidelines regarding PTR records and
<<< 550-5.7.1 authentication. Please review
<<< 550-5.7.1  https://support.google.com/mail/?p=ipv6_authentication_error for more
<<< 550 5.7.1 information. y6si29358320wiv.50 - gsmtp
554 5.0.0 Service unavailable

我配置了 mx 记录,但是为什么消息显示它是从 127.0.0.1 接收的?

mail.log 有以下条目:

 Oct 27 12:49:27 staging sendmail[24866]: t9RBnRJo024866: from=andy, size=72, class=0, nrcpts=1, msgid=<[email protected]>, relay=andy@localhost
 Oct 27 12:49:27 staging sendmail[24866]: t9RBnRJo024866: [email protected], ctladdr=andy (1000/100), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30072, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]

任何帮助是极大的赞赏。

答案1

看起来您没有适合您的 IPv6 地址的指针记录。

控制该 IP 的服务提供商必须将此内容添加到他们的 DNS 记录中。

该记录需要与您的邮件服务器的名称相匹配。

您看到 127.0.0.1 地址是因为该邮件是在您的邮件服务器上生成的 - 所以它确实来自本地主机。这部分完全正常。

相关内容