为什么这个spf包含引用失败?

我们正在设置GoDaddy的托pipeWordPress产品网站。 邮件通过联系表格,我们必须使用中继服务器relay-hosting.secureserver.net 。 通过联系表格发送的邮件只能在内部直接发送到我们自己的Office365托pipe邮箱。

为了防止Office365将邮件标记为垃圾邮件,我们必须正确更新我们的spflogging。 邮件发送到垃圾邮件的详细信息表明IP地址198.71.225.38需要包括在我们的198.71.225.38 。 当我们将其添加到我们的logging,它正确地允许spf传递和邮件stream到我们的收件箱。 但是,邮件可能来自GoDaddy使用的各种IP地址。

GoDaddy提供了这个有用的页面来描述spf的变化。 https://www.godaddy.com/help/do-i-need-spf-or-dkim-validation-to-send-campaigns-15863

当我做这个更改时,在我们的logging中添加了include:spf.gem.godaddy.com ,邮件被Office365放入垃圾箱。 信息再次显示198.71.225.38失败。

 Received-SPF: Fail (protection.outlook.com: domain of ourdomain.com does not designate 198.71.225.38 as permitted sender) 

如果我通过dns追踪logging,我会得到以下结果

 ourdomain.com "v=spf1 ip4:xx.xxx.xxx.xxx/27 include:spf.gem.godaddy.com include:spf.protection.outlook.com -all" spf.gem.godaddy.com "v=spf1 include:spf.em.secureserver.net ~all" spf.em.secureserver.net "v=spf1 ip4:198.71.244.0/25 ip4:198.71.245.0/25 ip4:198.71.246.0/25 ip4:198.71.247.0/25 ip4:198.71.253.0/24 ip4:198.71.254.0/24 ip4:198.71.255.0/24 ~all" 

最终logging中的IP块将包含198.71.225.38,所以我不理解在这个链中SPF会失败的位置。

简单地说: 198.71.225.38不属于include:spf.em.secureserver.net列出的任何IP块:

  • ip4:198.71.244.0/25
  • ip4:198.71.245.0/25
  • ip4:198.71.246.0/25
  • ip4:198.71.247.0/25
  • ip4:198.71.253.0/24
  • ip4:198.71.254.0/24
  • ip4:198.71.255.0/24 – 看起来最接近 ,所以可能你不会注意到255 != 225

您可以使用include:secureserver.net因为它具有匹配的+ip4:198.71.225.0/24通过include:spf-ss1.domaincontrol.cominclude:spf-ss2.domaincontrol.com ,其中include:spf-ss3.domaincontrol.com ,给:

 Received-SPF: pass (secureserver.net: Sender is authorized to use '[email protected]' in 'mfrom' identity (mechanism 'include:spf-ss1.domaincontrol.com' matched)) receiver=web1.bacb.com.au; identity=mailfrom; envelope-from="[email protected]"; helo=a2nlsmtp01-04.prod.iad2.secureserver.net; client-ip=198.71.225.38 

也正如“编辑GoDaddy SPFlogging文档指南”中所述。