当port25.com
我使用 的漂亮小工具通过发送电子邮件到
[电子邮件保护]我得到以下失败结果:
==========================================================
Details:
==========================================================
HELO hostname: avantgardeweb.co.uk
Source IP: 2002:2e20:e862::2e20:e862
mail-from: [email protected]
----------------------------------------------------------
SPF check details:
----------------------------------------------------------
Result: fail (not permitted)
ID(s) verified: [email protected]
DNS record(s):
greenshieldsarchitecture.co.uk. SPF (no records)
greenshieldsarchitecture.co.uk. 14400 IN TXT "v=spf1 mx a -all"
greenshieldsarchitecture.co.uk. 14400 IN MX 10 mail.greenshieldsarchitecture.co.uk.
mail.greenshieldsarchitecture.co.uk. AAAA (no records)
greenshieldsarchitecture.co.uk. AAAA (no records)
但是,当我实际向 Gmail 帐户发送电子邮件时,它会传递:
Received-SPF: pass (google.com: domain of [email protected] designates 46.32.232.98 as permitted sender) client-ip=46.32.232.98;
Authentication-Results: mx.google.com;
spf=pass (google.com: domain of [email protected] designates 46.32.232.98 as permitted sender)
有人可以解释一下吗?
答案1
看来您发送至 port25.com 的测试电子邮件是通过 IPv6 连接(或 IPv6 源)到达的,因此 SPF 客户端查找 DNS AAAA RR,而不是通常用于 IPv4 源的 A RR。SPF 的工作方式应该是这样的([参见 RFC7208 第 5.5 节][1]),但由于您的域缺少 AAAA 记录,“mx”和“a”机制均不匹配,SPF 评估以“-all”结束。在 gmail 的情况下,连接是从 IPv4 地址建立的,因此“mx”或“a”匹配。
如果您使用的是 IPv6,只需为 mail.greenshieldsarchitecture.co.uk 设置 AAAA 记录,就可以解决问题。
[1]:https://www.rfc-editor.org/rfc/rfc7208#section-5%20%22RFC7208%20Section%205.5)