所以,我的Postfix电子邮件服务器只能发送电子邮件到我的个人电子邮件。 我们称之为[email protected]。 当我尝试发送电子邮件给[email protected]时,会被拒绝:
<***@gmail.com>: host gmail-smtp-in.l.google.com[2a00:1450:400c:c0a::1b] said: 550-5.7.1 [2001:19f0:6c01:295:5400:ff:fe50:e9e1] Our system has detected that 550-5.7.1 this message does not meet IPv6 sending guidelines regarding PTR 550-5.7.1 records and authentication. Please review 550-5.7.1 https://support.google.com/mail/?p=IPv6AuthError for more information 550 5.7.1 . v2si15963925wrd.12 - gsmtp (in reply to end of DATA command) Final-Recipient: rfc822; ***@gmail.com Original-Recipient: rfc822;***@gmail.com Action: failed Status: 5.7.1 Remote-MTA: dns; gmail-smtp-in.l.google.com Diagnostic-Code: smtp; 550-5.7.1 [2001:19f0:6c01:295:5400:ff:fe50:e9e1] Our system has detected that 550-5.7.1 this message does not meet IPv6 sending guidelines regarding PTR 550-5.7.1 records and authentication. Please review 550-5.7.1 https://support.google.com/mail/?p=IPv6AuthError for more information 550 5.7.1 . v2si15963925wrd.12 - gsmtp
这很奇怪,因为这两个电子邮件地址都来自Gmail。 这是抱怨我的PTRlogging,但我相信这些设置是正确的。
输出: dig -x <My IP> +short
<My IP>.example.com.
其中包含我的主机名example.com 。 当我查看我的主机名时,我得到:
dig example.com +short <My IP>
IP返回匹配IP,我做了原始查询。
这里是我的example.com DNSlogging:
Name = ""; Type = A; TTL = 14440; Target = <My IP> Name = "WWW"; Type = A; TTL = 14440; Target = <My IP> Name = "<My IP>"; Type = A; TTL = 14440; Target = <My IP> Name = ""; Type = MX; TTL = 14440; Target = "example.com"; Priority = 10 Name = ""; Type = TXT;TTL = 14440; Target = "v=spf1 mx a ~all"
发送邮件时从telnet输出:
Trying ::1... Connected to localhost. Escape character is '^]'. 220 example.com ESMTP Postfix (Ubuntu) EHLO example.com 250-example.com 250-PIPELINING 250-SIZE 10240000 250-VRFY 250-ETRN 250-STARTTLS 250-ENHANCEDSTATUSCODES 250-8BITMIME 250-DSN 250 SMTPUTF8 MAIL FROM: [email protected] 250 2.1.0 Ok RCPT TO: [email protected] 250 2.1.5 Ok DATA 354 End data with <CR><LF>.<CR><LF> Test . 250 2.0.0 Ok: queued as A722E40348
电子邮件完全显示在我的收件箱中(不在垃圾邮件文件夹中)。 将邮件发送到我的其他Gmail地址
MAIL FROM: [email protected] 250 2.1.0 Ok RCPT TO: [email protected] 250 2.1.5 Ok DATA 354 End data with <CR><LF>.<CR><LF> Test . 250 2.0.0 Ok: queued as 23E8D40348
没有出现。 可能是什么问题呢?
也许是一个非常明显的问题,但是你的服务器发送的IPv6地址是否有PTRlogging?
您发布的logging不包含有关AAAA的任何信息 – 所以我不能说。
您可以尝试限制postfix只发送从传统的IPv4。 如果你的邮件通过,你已经把这个问题分发给IPv6运输是罪魁祸首。 如果错误持续存在,您可以深入挖掘。