由于 SPF 问题,我遇到了 Google 拒绝邮件的问题。我以为我已经解决了这个问题,但显然没有......
邮件是从运行 mimemail 的 Drupal 站点发送的。显示问题的消息如下所示:
Delivered-To: [email protected]
Received: by 10.112.47.229 with SMTP id g5csp300564lbn;
Wed, 2 Apr 2014 10:21:06 -0700 (PDT)
X-Received: by 10.66.249.233 with SMTP id yx9mr1407538pac.3.1396459264202;
Wed, 02 Apr 2014 10:21:04 -0700 (PDT)
Return-Path: <[email protected]>
Received: from sender.com (sender.com. [xxx.xxx.xxx.xxx])
by mx.google.com with ESMTP id m8si1612133pbd.503.2014.04.02.10.21.03
for <[email protected]>;
Wed, 02 Apr 2014 10:21:04 -0700 (PDT)
Received-SPF: softfail (google.com: domain of transitioning [email protected] does not designate xxx.xxx.xxx.xxx as permitted sender) client-ip=xxx.xxx.xxx.xxx;
Authentication-Results: mx.google.com;
spf=softfail (google.com: domain of transitioning [email protected] does not designate xxx.xxx.xxx.xxx as permitted sender) [email protected]
Received: by sender.com (Postfix, from userid 48)
id 3E486101774; Wed, 2 Apr 2014 17:21:02 +0000 (UTC)
To: "reg" <[email protected]>
Subject: Message Subject here
X-PHP-Originating-Script: 501:mimemail.module
MIME-Version:1.0
Content-Type:multipart/mixed;
boundary="ca08a4eb4d5f903d3ee41d8632611e3ff9f7e67713"
Content-Transfer-Encoding:8Bit
X-Mailer:Drupal
Sender:Sender <[email protected]>
From:Sender <[email protected]>
Message-Id: <[email protected]>
Date: Wed, 2 Apr 2014 17:21:02 +0000 (UTC)
This is a multi-part message in MIME format.
--ca08a4eb4d5f903d3ee41d8632611e3ff9f7e67713
Content-Type:multipart/alternative;
boundary="2db314e2a942d712c21894936b800a2c7998463d12"
Content-Transfer-Encoding:8bit
--2db314e2a942d712c21894936b800a2c7998463d12
Content-Type:text/plain; charset=utf-8
Content-Disposition:inline
Content-Transfer-Encoding:8bit
Message text goes here...
--2db314e2a942d712c21894936b800a2c7998463d12
Content-Type:text/html; charset=utf-8
Content-Disposition:inline
Content-Transfer-Encoding:8Bit
<html>
<html text goes here>
</html>
--2db314e2a942d712c21894936b800a2c7998463d12--
--ca08a4eb4d5f903d3ee41d8632611e3ff9f7e67713--
[为匿名化道歉。]
从http://www.whatsmyip.us/txt获得的域的 SPF 记录如下所示:
v=spf1 ip4:xxx.xxx.xxx.xxx ~all , ttl : 14144
v=spf1 include:_spf.google.com ~all , ttl : 14144
v=spf1 a -all , ttl : 14144
v=spf1 ip4:xxx.xxx.xxx.yyy ~all , ttl : 14144
同样匿名。
我不知道出了什么问题——适当的 SPF 记录似乎已经到位。我能看到的唯一问题是我确实设置(或尝试设置)两台服务器作为域的合法发件人;这意味着同时涵盖生产和开发服务器(我们称它们为 sender.com 和 dev.sender.com)。这是一个问题吗?
有什么想法吗?同样,我认为这曾经可以正常工作,但现在绝对不是。谢谢!
您只能拥有一个 SPF 记录。由于您创建了其中四个,因此实际使用哪个基本上是随机的。您应该将它们组合成一条记录。