我的网站全部用 PHP 编写,有一个自动系统通过电子邮件通知用户。一切都工作得很好,直到我把所有东西都转移到一个新的更便宜的专用服务器上(还有新的IP)。现在,所有电子邮件都从新服务器发送到垃圾邮件文件夹。为什么?发生了什么? Gmail 称其被标记为垃圾邮件,因为它违反了这些规定指导方针 关于发件人。这是其中一封电子邮件的邮件标题
Delivered-To: [email protected]
Received: by 10.64.224.200 with SMTP id re8csp1701580iec;
Sun, 1 Feb 2015 07:30:19 -0800 (PST)
X-Received: by 10.140.22.5 with SMTP id 5mr1380826qgm.72.1422804619177;
Sun, 01 Feb 2015 07:30:19 -0800 (PST)
Return-Path: <[email protected]>
Received: from ns362512.ip-91-121-174.eu ([2001:41d0:1:ef28::1])
by mx.google.com with ESMTP id e3si21772874qaf.113.2015.02.01.07.30.18
for <[email protected]>;
Sun, 01 Feb 2015 07:30:19 -0800 (PST)
Received-SPF: none (google.com: [email protected] does not designate permitted sender hosts) client-ip=2001:41d0:1:ef28::1;
Authentication-Results: mx.google.com;
spf=none (google.com: [email protected] does not designate permitted sender hosts) [email protected]
Received: by ns362512.ip-91-121-174.eu (Postfix, from userid 504)
id DFE0916074; Sun, 1 Feb 2015 16:28:52 +0100 (CET)
To: [email protected]
Subject: Qualcuno ha commentato il tuo post
X-PHP-Originating-Script: 504:new_notification.php
From: Racebooking <[email protected]>
Reply-To: no-reply
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Message-Id: <[email protected]>
Date: Sun, 1 Feb 2015 16:28:52 +0100 (CET)
域名racebooking.net具有良好的声誉,并且MX、邮件、smtp指向同一个IP:91.121.174.40,这与racebooking.net的IP相同(这是一个测试)
任何想法?
检查标题中的这一行:
Received-SPF: none (google.com: [email protected] does not designate permitted sender hosts) client-ip=2001:41d0:1:ef28::1;
Authentication-Results: mx.google.com;
spf=none (google.com: [email protected] does not designate permitted sender hosts) [email protected]
我认为您没有在 DNS 中正确配置 SPF 条目。
请参阅此 Google 产品主题:https://productforums.google.com/forum/#!topic/apps/nvGcYDjONfc
我可以看到您没有为“racebooking.net”定义 SPF 条目:
$ dig +short racebooking.net txt
"1|www.racebooking.net"
您需要定义一个 SPF 条目,例如:
"v=spf1 mx a:mail0.racebooking.net -all"
您还需要包括您可能发送电子邮件的任何其他主机(即从 @racebooking.net 发送电子邮件的 Web 应用程序)。
有关 SPF 的更多信息:http://en.wikipedia.org/wiki/Sender_Policy_Framework
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)