首页 > 解决方案 > 多个 SPF 记录格式验证不起作用

问题描述

我正在尝试验证多个 SPF 记录,但它没有验证。

v=spf1 include:mailgun.org  +a +mx include:marketheroSPF.smtp.com ?all

我用 mxtoolbox 对其进行了测试,它给了我通过状态

v   version spf1        The SPF record version
+   include mailgun.org Pass    The specified domain is searched for an 'allow'.
+   a       Pass    Match if IP has a DNS 'A' record in given domain
+   mx      Pass    Match if IP is one of the MX hosts for given domain name
+   include marketheroSPF.smtp.com  Pass    The specified domain is searched for an 'allow'.
?   all     Neutral Always matches. It goes at the end of your record.

但是平台告诉我我的 SPF 记录无效,所以我想知道我的TXT记录是否格式错误,或者他们的平台不知道如何读取多种 SPF 格式。

标签: dns

解决方案


按照官方语法指南,试试这个。

v=spf1 a mx include:mailgun.org include:marketheroSPF.smtp.com ?all

订单很重要,可能包含的记录格式不正确(尤其是第二个)。如果这个链接的记录有一个前导0,这可能是问题之一。取决于+前面的解析器,a并且mx可能会导致错误,因为默认限定符已经是“+”,即“通过”。

否则,请提供更多详细信息。希望有帮助:)


推荐阅读