2017-04-09 144 views
1

据对http://www.kitterman.com/spf/validate.html我的域名提供SPF验证工具已经正确配置SPF记录:v=spf1 ip4:111.222.333.444 include:zoho.com ~allGmail没有考虑有效的SPF

我是从发送电子邮件:

  • zoho.com(此验证在Gmail和电子邮件立刻浮现)
  • 通过PHP我的服务器使用sendmail(这不验证和电子邮件附带有122秒的延迟)
 

    Delivered-To: [email protected] 
    Received: by 10.107.31.138 with SMTP id 123xxx123xxx123; 
      Sun, 9 Apr 2017 04:10:44 -0700 (PDT) 
    X-Received: by 10.28.40.198 with SMTP id 567xxx567xxx.567.567567567; 
      Sun, 09 Apr 2017 04:10:44 -0700 (PDT) 
    Return-Path: 
    Received: from sd-111111.dedibox.fr ([111.222.333.444]) 
      by mx.google.com with ESMTPS id 12345678.12.2017.04.09.04.13.25 
      for 
      (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); 
      Sun, 09 Apr 2017 04:10:44 -0700 (PDT) 
    Received-SPF: neutral (google.com: 111.222.333.444 is neither permitted nor denied by best guess record for domain of [email protected]) client-ip=111.222.333.444; 
    Authentication-Results: mx.google.com; 
      spf=neutral (google.com: 111.222.333.444 is neither permitted nor denied by best guess record for domain of [email protected]) [email protected] 
    Received: from sd-111111.dedibox.fr (localhost [127.0.0.1]) by sd-111111.dedibox.fr (8.15.2/8.15.2/Debian-3) with ESMTP id xxxxxxxxxxx for ; Sun, 9 Apr 2017 13:11:24 +0200 
    Received: (from [email protected]) by sd-111111.dedibox.fr (8.15.2/8.15.2/Submit) id v39BBO6a028991; Sun, 9 Apr 2017 13:11:24 +0200 
    Date: Sun, 9 Apr 2017 13:08:42 +0200 
    Message-Id: 
    To: [email protected] 
    Subject: the subject 
    X-PHP-Originating-Script: 1000:mail.php 
    From: [email protected] 
    Reply-To: [email protected] 
    X-Mailer: PHP/7.1.3-3+deb.sury.org~xenial+1 

    hello 

我该如何解决这个问题?

的信息是Gmail couldn't verify that my-domain.com actually sent this messages (and not a spammer).并将其链接到https://support.google.com/mail/answer/180707

(我要指出的是我正确的许多天前作出的SPF记录,所有的DNS服务器已经肯定被现在更新。目前,它具有TTL设置为30反正秒数周)

更新:我刚刚注意到,Gmail是看到该邮件是从sd-11111.dedibox.fr发送,而不是从111.222.333.444但这样做ping sd-11111.dedibox.fr回报这个确切IP:Reply from 111.222.333.444: bytes=32 time=38ms TTL=52所以我仍然一无所知,为什么它不”不要考虑知识产权?

+0

'sd-11111.dedibox.fr'不能解析为任何IP。它是否仅在您的网络中定义?如果是这样,Gmail也无法解决它。 – JLRishe

+0

所有的IP,ID和域名都被占位符替换,以隐藏私人信息。在浏览器(端口80)中输入'sd-11111.dedibox.fr'或'111.222.333.444'打开完全相同的Apache/PHP主页。 – Koam

+0

除非这也是您的匿名化造成的,否则Google似乎试图验证列为“smtp.mailfrom”的域名,而不是/以及列为“发件人”的域名。 – IMSoP

回答

1

如果没有真正的IP或域名,它将很难帮助您排除故障。基于Make Believe示例,一切都很好。

如果是这种情况,通常是因为您的SPF记录中可能存在隐藏的控制字符或其他内容,导致该问题。我的建议是删除旧的SPF记录并添加一个新的重新输入。

您可以发送电子邮件到反射如

[email protected] 
[email protected] 

要验证其他邮件服务器也有一个错误标记您的SPF。

+0

SPF记录与打字完全一致。这是有效的。当我更新到'v = spf1 ip4:111.222.333.444包括:sd-11111.dedibox.fr包括:zoho.com〜all'我得到PermError(它说新加入的域没有指定的SPF记录。)也许我应该联系托管公司......但他们只是给我一个专用的服务器,所以我认为这不是他们的错,但这是一个普遍的配置问题(因此,这是这个问题,而不是)。 – Koam

+0

我测试了第一个邮件反射器,它提供了有用的信息。它看起来可能与'sendmail'配置有关。也许我可以根据这些信息对其进行分类。 – Koam

+1

您错误地添加了该主机名。不要把它当做'include',做为'a:hostname',因为你想允许这个主机,而不是主机自己的SPF。 – Synchro

相关问题