如何设置正确的SPFlogging

我正在设置一个非常基本的SPFlogging。 我在Godaddy上托pipe我的网站,并使用Godaddy的电子邮件服务器。 我正在使用PHP的邮件()调用(我知道,我已经读了很多地方使用PHP梅勒或其他人,但我select默认的邮件()函数,这不是真的我的问题)。 现在,电子邮件中的spflogging回到了neutral具有以下几行:

 Delivered-To: [email protected] Received: by 10.52.171.166 with SMTP id av6csp133324vdc; Tue, 16 Jul 2013 07:43:23 -0700 (PDT) X-Received: by 10.49.104.180 with SMTP id gf20mr2338989qeb.59.1373985802775; Tue, 16 Jul 2013 07:43:22 -0700 (PDT) Return-Path: <[email protected]> Received: from p3nlsmtp14.shr.prod.phx3.secureserver.net (p3nlsmtp14.shr.prod.phx3.secureserver.net. [72.167.234.239]) by mx.google.com with ESMTP id d19si710455qey.143.2013.07.16.07.43.22 for <[email protected]>; Tue, 16 Jul 2013 07:43:22 -0700 (PDT) Received-SPF: neutral (google.com: 72.167.234.239 is neither permitted nor denied by best guess record for domain of [email protected]) client-ip=72.167.234.239; Authentication-Results: mx.google.com; spf=neutral (google.com: 72.167.234.239 is neither permitted nor denied by best guess record for domain of [email protected]) [email protected] Received: from P3NW8SHG339 ([184.168.27.44]) by p3nlsmtp14.shr.prod.phx3.secureserver.net with id 12jN1m0080x5yNo012jNyX; Tue, 16 Jul 2013 07:43:22 -0700 Date: Tue, 16 Jul 2013 07:43:21 -0700 Subject: Little Jaws Big Smiles Registration Confirmation X-PHP-Originating-Id: [10610735] To: "Person" <[email protected]> From: "Little Jaws Big Smiles" <[email protected]> Reply-To: "Little Jaws Big Smiles" <[email protected]> Return-Path: "Little Jaws Big Smiles" <[email protected]> Message-ID: <[email protected]> X-Mailer: PHP/5.2.17 MIME-Version: 1.0 Content-type: text/html; charset=ISO-8859-1 Organization: Little Jaws Big Smiles 

IP 72.167.234.239对应于p3nlsmtp14.shr.prod.phx3.secureserver.net ,我猜是邮件服务器实际上发送我的电子邮件。

  • 我有一个A(主机)logging设置与我的域的实际IP地址。
  • 我有提供的默认CNAME(别名)列表
  • 我有两个MX(邮件交换logging)提供
    • mailstore1.secureserver.net
    • smtp.secureserver.net
  • 有两个默认名称服务器设置
    • ns45.domaincontrol.com
    • ns46.domaincontrol.com
  • 我已经按照以下方式设置了TXT SPFlogging(没有引号,因为那是多么godaddy你input它):
    • v=spf1 a mx ptr ip4:72.167.234.245 -all

但是,这仍然导致中性的SPF结果。 我已经等待了48小时的logging采取行动。 我也读过SPF Syntax ,我想我已经适当地设置了它(但是我从来没有这样做过,所以我可能完全误解了这个)

我也试过kitterman的validation脚本,结果如​​下:

 Found v=spf1 record for littlejawsbigsmiles.com: v=spf1 a mx ptr ip4:72.167.234.245 -all evaluating... SPF record passed validation test with pySPF (Python SPF library)! 

有没有人看到我的logging定义问题,或者如果我失去了什么?

我试图从[email protected]发送邮件

让我知道如果我需要提供任何其他信息。

更新 Per @ TheCleaner的请求,我按照Godaddys网站上的说明创build了SPFlogging。 以下是我select这些步骤和选项的原因。

添加SPFlogging下

  • 第4步:我GoDaddy.com, LLC onlyselect了GoDaddy.com, LLC only
    • 我只使用他们的服务器发送电子邮件
  • 第5步:我select了All Inbound Servers May Send Mail
    • 我不确定这适用于我,但我select它,以防万一
  • 第6步:我没有select出站logging。
    • 我的域名不是邮件服务器
  • 第七步:我没有selectPTR
    • 我的域名不是邮件服务器
  • 第8步:我添加了72.167.234.0/24因为这似乎是Godaddy用来发送邮件的邮件服务器
  • 我还select了Exclude all hosts not specified here添加-all Exclude all hosts not specified here

结果SPFlogging如下。 我会试试这个,如果这能解决我的问题,请回复。 请让我知道,如果我对我的上述步骤的假设是不正确的。

 v=spf1 mx include:72.167.234.0/24 -all 

您在SPFlogging中input了错误的IP地址。

以下是目前的logging:

 littlejawsbigsmiles.com. 3600 IN TXT "v=spf1 a mx ptr ip4:72.167.234.245 -all" 

以下是您要发送的IP:

 72.167.234.239 

这与72.167.234.245明显不同。

修正logging,使其没有错误,一切都应该正常工作。

要包含整个地址范围,请使用:

 "v=spf1 mx ip4:72.167.234.0/24 -all" 

顺便说一下,GoDaddy提供了关于如何设置SPFlogging的知识库文章: http : //support.godaddy.com/help/article/7926/adding-or-editing-spf-records

所以我终于find了问题(godaddy techincal支持说,他们不能帮助“scirpting”的问题)。 事实certificate,他们的SPFlogging确实存在问题:

显然,当你设置一个新的主机帐户时,Windows主机的默认C:\php5\php.ini文件将sendmail_from设置为[email protected] ,这是我使用php的mail()函数发送的电子邮件的实际发送地址。 我将其更改为[email protected]并且接近解决我的问题。

现在到了第二个问题,那就是导致SPF仍然失败。 事实certificate,使用Godaddys默认创buildSPFlogginginclude:spf.secureserver.net包含太多的查找。 您可以使用此SPFparsing器validation此内容,然后在spf.secureserver.netinput。 你会看到还有更多的最多10个查找。

使用Kitterman的validation脚本,如果你inputspf.secureserver.net ,你可以看到它显示错误PermError SPF Permanent Error: Too many DNS lookups 。 这是Godaddy需要全球解决的问题(不仅仅是我的网站)。 这个问题logging在他们的网站上 。 我确实收到他们的答复,表明不是他们的问题:

同样,虽然我们提供创buildSPFlogging的能力,但pipe理和设置责任完全是客户的责任。

我能够通过检查我的电子邮件标题,并find哪些服务器(s)发送出去(似乎是范围72.167.234.236-245 )解决此问题。 使用我上面链接的SPFparsing器,我能够确定我的网站似乎是使用spf102.secureserver.net 。 我不确定这是否会改变我的网站,Godaddy还没有告诉我答案。 我改变了我的SPFlogging,以包括spf102.secureserver.net ,这没有Too many DNS lookups ,但它可能是一个问题,如果电子邮件可以改变,并发送出spf101.secureserver.net

最终的工作logging将基于用于发送电子邮件的服务器,但是如果您使用Godaddys服务器进行托pipe并且使用该服务器,则应如下所示:

 v=spf1 mx include:spf102.secureserver.net -all 

有了这两个更新,我能够发送邮件到谷歌和Hotmail电子邮件帐户,他们不再去垃圾邮件/垃圾文件夹(yey!)

感谢@MadHatter,@gparent和@TheCleaner的支持,帮助我们追踪这个问题。