因此,我的 Postfix 电子邮件服务器只能向我的个人电子邮件发送电子邮件。我们称之为[电子邮件保护]。当我尝试发送电子邮件至[电子邮件保护],被拒绝:
<***@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。它抱怨我的 PTR 记录,但我相信这些设置是正确的。
输出:dig -x <My IP> +short
<My IP>.example.com.
其中包含我的主机名example.com
。当我查找我的主机名时,我得到:
dig example.com +short
<My IP>
返回的 IP 与我最初查找的 IP 相匹配。
以下是我的 DNS 记录example.com
:
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
什么都没显示出来。可能是什么问题?
答案1
也许这是一个非常明显的问题,但是您是否为服务器发送的 IPv6 地址设置了 PTR 记录?
您发布的记录不包含有关 AAAA 的任何信息 - 因此我无法判断。
您可以尝试限制 postfix 仅从旧版 IPv4 发送邮件。如果您的邮件发送成功,则表明问题出在 IPv6 传输上。如果错误仍然存在,您可以深入挖掘。