我的网站都是用PHP编写的,它有一个自动系统通过电子邮件通知用户。一切都运作良好,直到我把一切都放在一个新的更便宜的专用服务器上(新IP也)。现在,从新服务器,所有电子邮件都被发送到垃圾邮件文件夹。为什么?发生了什么? Gmail称其被标记为垃圾邮件,因为它违反了关于发件人的guidelines 。以下是其中一封电子邮件的邮件标题
Delivered-To: fontanavideostudios@gmail.com
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: <noreply@racebooking.net>
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 <fontanavideostudios@gmail.com>;
Sun, 01 Feb 2015 07:30:19 -0800 (PST)
Received-SPF: none (google.com: noreply@racebooking.net does not designate permitted sender hosts) client-ip=2001:41d0:1:ef28::1;
Authentication-Results: mx.google.com;
spf=none (google.com: noreply@racebooking.net does not designate permitted sender hosts) smtp.mail=noreply@racebooking.net
Received: by ns362512.ip-91-121-174.eu (Postfix, from userid 504)
id DFE0916074; Sun, 1 Feb 2015 16:28:52 +0100 (CET)
To: fontanavideostudios@gmail.com
Subject: Qualcuno ha commentato il tuo post
X-PHP-Originating-Script: 504:new_notification.php
From: Racebooking <noreply@racebooking.net>
Reply-To: no-reply
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Message-Id: <20150201152852.DFE0916074@ns362512.ip-91-121-174.eu>
Date: Sun, 1 Feb 2015 16:28:52 +0100 (CET)
域名,racebooking.net,有良好的声誉,MX,邮件,smtp指向同一个ip:91.121.174.40,这是与racebooking.net相同的IP(here is a test)
有什么想法吗?
答案 0 :(得分:3)
检查标题中的这一行:
Received-SPF: none (google.com: noreply@racebooking.net does not designate permitted sender hosts) client-ip=2001:41d0:1:ef28::1;
Authentication-Results: mx.google.com;
spf=none (google.com: noreply@racebooking.net does not designate permitted sender hosts) smtp.mail=noreply@racebooking.net
我认为您没有在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