dns - 多个 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 格式。
解决方案
按照官方语法指南,试试这个。
v=spf1 a mx include:mailgun.org include:marketheroSPF.smtp.com ?all
订单很重要,可能包含的记录格式不正确(尤其是第二个)。如果这个链接的记录有一个前导0
,这可能是问题之一。取决于+
前面的解析器,a
并且mx
可能会导致错误,因为默认限定符已经是“+”,即“通过”。
否则,请提供更多详细信息。希望有帮助:)
推荐阅读
- forms - Angular 5:如何迭代表单组件并设置值
- prolog - permutation/2 不返回任何排列
- javascript - Sinon 如何对非导出的私有功能进行单元测试?
- asp.net - 在网格视图中选中复选框时如何添加金额
- python - Pygame不会改变字体
- javascript - Java脚本在删除小数时替换为空
- javascript - cookie http header 只包含一个cookie
- c# - 如何在 C# 中根据特定时区 (DD-MM-YY) / (MM-DD-YY) 显示日期时间格式
- c++ - C++ 打印二叉树中的所有值
- amazon-dynamodb - 如何停止 DynamoDB 中当前的索引创建操作?