我在 Debian 7 上运行 Postfix 和 Dovecot,我可以正常发送邮件,但发送到 Google 帐户时邮件总是进入垃圾邮件文件夹。另一位不使用 Gmail 的用户表示邮件已发送到他的收件箱。当我向自己发送测试邮件时,我收到以下标头:
Delivered-To: [email protected]
Received: by 10.170.37.203 with SMTP id 194csp288892ykf;
Fri, 29 Aug 2014 21:45:25 -0700 (PDT)
X-Received: by 10.236.70.105 with SMTP id o69mr20864964yhd.25.1409373925239;
Fri, 29 Aug 2014 21:45:25 -0700 (PDT)
Return-Path: <[email protected]>
Received: from fluidvector.com ([2605:f700:100:400::875a:4b61])
by mx.google.com with ESMTPS id s36si567167yhp.30.2014.08.29.21.45.24
for <[email protected]>
(version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
Fri, 29 Aug 2014 21:45:24 -0700 (PDT)
Received-SPF: softfail (google.com: domain of transitioning [email protected] does not designate 2605:f700:100:400::875a:4b61 as permitted sender) client-ip=2605:f700:100:400::875a:4b61;
Authentication-Results: mx.google.com;
spf=softfail (google.com: domain of transitioning [email protected] does not designate 2605:f700:100:400::875a:4b61 as permitted sender) [email protected]
Received: from localhost (localhost.localdomain [127.0.0.1])
by fluidvector.com (Postfix) with ESMTP id 725E7123A0C9F
for <[email protected]>; Sat, 30 Aug 2014 00:45:23 -0400 (EDT)
X-Virus-Scanned: Debian amavisd-new at fluidvector.com
Received: from fluidvector.com ([127.0.0.1])
by localhost (fluidvector.com [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id oI9bUVMx6Thv for <[email protected]>;
Sat, 30 Aug 2014 00:45:19 -0400 (EDT)
Received: by fluidvector.com (Postfix, from userid 33)
id 17DA0123A0CA1; Sat, 30 Aug 2014 00:45:19 -0400 (EDT)
To: =?UTF-8?B?dGVzdA==?= <[email protected]>
Subject: =?UTF-8?B?V2VsY29tZSB0byAiQmVhbnNXb3J0aHki?=
X-PHP-Originating-Script: 1000:messenger.php
From: <[email protected]>
Reply-To: [email protected]
我注意到了
Received-SPF: softfail (google.com: domain of transitioning [email protected] does not designate 2605:f700:100:400::875a:4b61 as permitted sender) client-ip=2605:f700:100:400::875a:4b61;
Authentication-Results: mx.google.com;
spf=softfail (google.com: domain of transitioning [email protected] does not designate 2605:f700:100:400::875a:4b61 as permitted sender) [email protected]
我认为这意味着我的 SPF TXT DNS 记录有问题:v=spf1 a:fluidvector.com ~all
,尽管 pySPF 说它是好的。
我查看了 mxtoolbox.com,发现不知为何,我的 IP(从 VPS 提供商处获得)似乎被列入了 Barracuda 和 spamcannibal 的黑名单。我联系了我的 VPS 提供商,但他们似乎无法为我做任何事情。所以,目前我只能联系黑名单并请求删除我的 IP?我有什么选择?我可以让 gmail 将我服务器中的邮件发送到收件箱而不是垃圾邮件文件夹,而不必费心尝试取消列出?
答案1
被列入黑名单的 IP 很难取消列出,因为即使您可以修复已列出的 IP,也可能有许多其他黑名单服务器会阻止您,并且每家公司都可以维护自己的黑名单。如果您有一家成熟的企业,他们可能会与您合作,但他们可能会拒绝您的请求。
解决这个问题最简单的方法是使用第三方电子邮件服务就像 SendGrid 一样。如果您只发送事务性电子邮件,则可以使用 Postmark 或 Mandrill。您每月只需花费 1 美元即可使用 Sendgrid 发送数百封电子邮件。您将能够将它们添加到您的 SPF 记录中,这将显著提高您的传递率。