从我的PHP发送的邮件未发送给某些客户端,我怀疑这可能是由于SPF测试返回softfail
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
答案 0 :(得分:3)
检查允许哪些IP从发件人域发送电子邮件。该网站允许您查看所有允许的IP: http://spf.myisp.ch
如果发件人IP与您显示的任何IP或IP范围不匹配,则可能需要编辑SPF设置。
答案 1 :(得分:0)
突出的一点是Received: (from root@localhost)
,它必然会出错。许多垃圾邮件拦截器(包括Google)都不允许localhost位于HELO字符串中。我在使用Postfix的Ubuntu服务器上遇到了同样的错误,解决方案是编辑/etc/postfix/main.cf
以获得:
myhostname = abc.com
然后重新启动后缀服务。
sudo nano /etc/postfix/main.cf
sudo /etc/init.d/postfix restart