1

从我的 PHP 发送的邮件未传递给某些客户端,我怀疑这可能是由于 SPF 测试返回了softfailwith domain of transitioning。消息详情如下:

Delivered-To: eric.clapton@gmail.com
Received: by 10.50.73.42 with SMTP id i10csp74854igv;
    Mon, 7 Oct 2013 03:21:52 -0700 (PDT)
X-Received: by 10.68.44.33 with SMTP id b1mr2455965pbm.53.1381141311313;
    Mon, 07 Oct 2013 03:21:51 -0700 (PDT)
Return-Path: <craig@abc.com>
Received: from mtarelay2.ops.gq1.yahoo.net (mtarelay2.ops.gq1.yahoo.net. [98.136.240.39])
    by mx.google.com with ESMTP id f6si4349525pba.278.1969.12.31.16.00.00;
    Mon, 07 Oct 2013 03:21:51 -0700 (PDT)
Received-SPF: softfail (google.com: domain of transitioning craig@abc.com does not     designate 98.136.240.39 as permitted sender) client-ip=98.136.240.39;
Authentication-Results: mx.google.com;
   spf=softfail (google.com: domain of transitioning craig@abc.com does not designate 98.136.240.39 as permitted sender) smtp.mail=craig@abc.com
Received: from p10db3.geo.gq1.yahoo.com (p10db3.geo.gq1.yahoo.com [67.195.61.18])
by mtarelay2.ops.gq1.yahoo.net (Postfix) with ESMTP id 764E0511EB
for <eric.clapton@gmail.com>; Mon,  7 Oct 2013 10:21:35 +0000 (UTC)
Received: (from root@localhost)
by p10db3.geo.gq1.yahoo.com (8.14.4/8.14.4/Submit) id r97ALZiJ005899;
Mon, 7 Oct 2013 03:21:35 -0700
Date: Mon, 7 Oct 2013 03:21:35 -0700
Message-Id: <201310071021.r97ALZiJ005899@p10db3.geo.gq1.yahoo.com>
To: eric.clapton@gmail.com
Subject: Client invoice
From: craig@abc.com
MIME-Version: 1.0

我的域的 SPF 设置是:

v=spf1 a mx ~all 
4

2 回答 2

3

检查允许哪些 IP 从发件人域发送电子邮件。该网站可让您查看所有允许的 IP: http ://spf.myisp.ch

如果发件人 IP 与它显示的任何 IP 或 IP 范围都不匹配,那么您可能需要编辑 SPF 设置。

于 2013-10-07T20:46:59.040 回答
0

突出的一件事是Received: (from root@localhost),这必然会产生错误。许多垃圾邮件拦截器,包括谷歌,不允许 localhost 位于 HELO 字符串中。我刚刚在使用 Postfix 的 Ubuntu 服务器上遇到了同样的错误,解决方案是编辑/etc/postfix/main.cf为:

myhostname = abc.com

然后重新启动后缀服务。

sudo nano /etc/postfix/main.cf
sudo /etc/init.d/postfix restart
于 2013-11-18T11:41:54.047 回答