多个SPF记录格式验证不起作用

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了多个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格式。

答案

official syntax guideline之后,尝试一下。

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

订单很重要,也许包含的记录格式不正确(特别是第二个)。如果这个链接记录有一个领先的0,这可能是问题之一。根据解析器,+a前面的mx可能会导致错误,因为默认限定符已经是“+”,即“Pass”。

否则请提供更多详情。希望有帮助:)

以上是关于多个SPF记录格式验证不起作用的主要内容,如果未能解决你的问题,请参考以下文章

使用Retrofit2解析XML。多个结果列表不起作用

Google Apps/G Suite/Google Workspace for MailChimp 上的多个 DKIM 和 SPF 记录

组合多个谓词不起作用

片段 addToBackStack() 和 popBackStackImmediate() 不起作用

表单验证在使用 ajax 方法提交之前不起作用

使用谷歌应用程序更正 SPF 记录