我一直在努力让公司的邮件服务器发送能够被 GMail 垃圾邮件过滤器接受的邮件。我已成功让它适用于 Yahoo Mail 和 Hotmail,但遗憾的是 GMail 仍将我们的邮件标记为垃圾邮件。
我已经配置了 DKIM、SPF、DMARC,并根据黑名单验证了我们的邮件服务器 IP 地址。我还在此处粘贴了我们发送邮件时 GMail 收到的标头。
Delivered-To: [email protected]
Received: by 10.42.215.6 with SMTP id hc6csp107427icb;
Wed, 20 Aug 2014 07:34:26 -0700 (PDT)
X-Received: by 10.194.100.34 with SMTP id ev2mr59101019wjb.76.1408545265402;
Wed, 20 Aug 2014 07:34:25 -0700 (PDT)
Return-Path: <[email protected]>
Received: from mail.phyramid.com (mail.phyramid.com. [178.157.82.23])
by mx.google.com with ESMTPS id dj10si4827754wib.79.2014.08.20.07.34.24
for <[email protected]>
(version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
Wed, 20 Aug 2014 07:34:25 -0700 (PDT)
Received-SPF: pass (google.com: domain of [email protected] designates 178.157.82.23 as permitted sender) client-ip=178.157.82.23;
Authentication-Results: mx.google.com;
spf=pass (google.com: domain of [email protected] designates 178.157.82.23 as permitted sender) [email protected];
dkim=pass [email protected]
Received: from localhost (localhost [127.0.0.1])
by mail.phyramid.com (Postfix) with ESMTP id ED2BB2017AC
for <[email protected]>; Wed, 20 Aug 2014 17:33:23 +0300 (EEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=phyramid.com; h=
content-type:content-type:mime-version:x-mailer:subject:subject
:message-id:to:from:from:date:date; s=dkim; t=1408545197; x=
1409409197; bh=e04RtoyF7G39lfCvA9LLhTz4nF64siZtN5IYmC18Xsc=; b=o
+6mO8Uz4Uf1G4U2q6tKUiEy2N2n/5R2VtPPwIvBE5xzK/hEd2sDGMxVzQVgIDCsK
Q0Xh+auPaQpxldQ+AEcL2XSZMrk/g0mJONjkpI19I5AwGIJCR1SVvxdecohTn9iR
bCHzrGi2wAicfDBzOH6lUBNfh2thri79aubdCYc97U=
X-Amavis-Modified: Mail body modified (using disclaimer) - mail.phyramid.com
X-Virus-Scanned: Debian amavisd-new at mail.phyramid.com
Received: from mail.phyramid.com ([127.0.0.1])
by localhost (mail.phyramid.com [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id 3JcgXZAXeFtX for <[email protected]>;
Wed, 20 Aug 2014 17:33:17 +0300 (EEST)
Received: from whiterock.local (unknown [109.98.21.30])
by mail.phyramid.com (Postfix) with ESMTPSA id 05CAE200280
for <[email protected]>; Wed, 20 Aug 2014 17:33:15 +0300 (EEST)
Date: Wed, 20 Aug 2014 17:34:15 +0300
From: Company Mail <[email protected]>
To: [email protected]
Message-ID: <[email protected]>
Subject: hey there!
X-Mailer: Airmail (247)
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
How was your summer?
----
多谢!
答案1
我在其他场合也看到过这种情况,当收到的消息被报告为本地主机时,IP 地址为 127.0.0.1。
事实上,这与您的 DNS 记录不匹配,肯定会将您的电子邮件标记为垃圾邮件。
您应该检查 DNS 记录(A 和 MX)以及您在 SMTP 服务器中发送的标头。您的服务器正在发送它认为是其 IP 地址的内容,因此您需要配置 /etc/hosts 以让您的服务器知道您的服务器的外部 IP 地址是什么。
答案2
如果您要向多个收件人发送几乎相同的邮件,那么处理 GMail 时最重要的两个标头是:
Precedence: bulk
和
List-Unsubscribe: http://your-site.com/[email protected]
当然,指向一个真实且有效的取消订阅页面,谷歌的取消订阅机器人可以轻松点击取消订阅,而不会受到奇怪的 javascript 或验证码或类似内容的困扰。
更多信息请访问Google 批量发送者指南