标记为垃圾邮件的电子邮件 - SPF 通行证、DKIM 通行证、发件人 ID 通行证

Posted

技术标签:

【中文标题】标记为垃圾邮件的电子邮件 - SPF 通行证、DKIM 通行证、发件人 ID 通行证【英文标题】:Emails marked as spam - SPF passes, DKIM passes, sender-id passes 【发布时间】:2012-08-10 03:55:49 【问题描述】:

我一直在努力弄清楚为什么会发生这种情况,但我的电子邮件被 Gmail 和 Hotmail 标记为垃圾邮件(它们在 Yahoo 中有效。)

SPF、DKIM、rDNS 和 sender-id 均通过。更奇怪的是,我已经从我的开发服务器发送了完全相同的电子邮件,其中包含其确切内容,而 Gmail 将其视为不是垃圾邮件,即使在生产中通过的每一项检查在开发中都失败了。不过,Hotmail 仍将其标记为垃圾邮件。

知道会发生什么吗?这是来自 Gmail 的示例标头(为保护隐私而更改了 IP 和域):

Delivered-To: REMOVED@gmail.com
Received: by 10.194.16.130 with SMTP id g2csp192349wjd;
    Mon, 13 Aug 2012 14:04:10 -0700 (PDT)
Received: by 10.236.193.105 with SMTP id j69mr12819871yhn.21.1344891849751;
    Mon, 13 Aug 2012 14:04:09 -0700 (PDT)
Return-Path: <mailer@mydomain.com>
Received: from mail.mydomain.com (mydomain.com. [xxx.xxx.xxx.xxx])
    by mx.google.com with ESMTPS id e22si563514yhh.132.2012.08.13.14.04.08
    (version=TLSv1/SSLv3 cipher=OTHER);
    Mon, 13 Aug 2012 14:04:09 -0700 (PDT)
Received-SPF: pass (google.com: domain of mailer@mydomain.com designates xxx.xxx.xxx.xxx as permitted sender) client-ip=xxx.xxx.xxx.xxx;
Authentication-Results: mx.google.com; spf=pass (google.com: domain of mailer@mydomain.com designates xxx.xxx.xxx.xxx as permitted sender) smtp.mail=mailer@mydomain.com; dkim=pass header.i=@mydomain.com
Received: from mydomain.com (localhost [127.0.0.1])
by mail.mydomain.com (8.14.4/8.14.4/Debian-2ubuntu1) with ESMTP id q7DL48tq019625
for <REMOVED@gmail.com>; Mon, 13 Aug 2012 17:04:08 -0400
X-DKIM: OpenDKIM Filter v2.3.2 mail.mydomain.com q7DL48tq019625
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mydomain.com;
s=server; t=1344891848;
bh=lpw+5POmINBjQYgQBdJvY2d+m84MY8hwTqZ6riNfH8I=;
h=Date:From:To:Message-ID:Subject:Mime-Version:Content-Type:
 Content-Transfer-Encoding;
b=KnYSvSzFewOGFyYWvP1DfCvyRfp6y31BfOPTOgRsZ7nGB4PXuau84euzuhs82V4lx
 ++DjN3iPxSj07euW+y7aRe9R2YiXKJFVNh7cbcJX8+tc3LMmnR7Cv27iP3Yvv6mQMd
 uz4Engql3bXLVVDKcLLj/Fj2eiwtWzW4chA2GNTQ=
Received: (from root@localhost)
by mydomain.com (8.14.4/8.14.4/Submit) id q7DL48Dm019624
for REMOVED@gmail.com; Mon, 13 Aug 2012 17:04:08 -0400
Date: Mon, 13 Aug 2012 17:04:08 -0400
From: "Website" <mailer@mydomain.com>
To: REMOVED@gmail.com
Message-ID: <50296bc866dfc_4b8593bd18556b8@mydomain.com.mail>
Subject: You've received a message from Bob.
Mime-Version: 1.0
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: 7bit
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mydomain.com; q=dns/txt; s=server; t=1344891848; bh=LfadLl6eJEB+NgiTbBlcBhOt/9NKcG0wapkrAjlGqfg=; h=content-transfer-encoding:content-type:date:from:message-id:mime-version:subject:to; b=mTB8TBb+gG7ESxeVbfqHANKUMeNbdwK/hSIq58oin5ERNSMKOIvZKY9cQJRoY/Q96PQ7J+7b3ZkZuwcg+zMkQyhK7YACvFAz4SUWqpdqiZrBDw8Vqy3PjkGFcz2V5vyUOjI6vN/Y6iOj1zlocC+/p8lkpw3upwxr7cNoe5/Kwu8=

【问题讨论】:

【参考方案1】:

另一个人不知道他在说什么,只是在猜测。

'Received: (from root@localhost)' 是你的问题。这需要反映来自电子邮件...

【讨论】:

【参考方案2】:

你的问题是:

域: mydomain.com ip: xxx.xxx.xxx.xxx

还有root@localhost

您需要在您的邮件客户端中更改信息!

【讨论】:

【参考方案3】:

我也有同样的问题。就我而言,我已经正确配置了我的邮件客户端。我有一个主域 (mydomain.com),我的邮件服务器还支持使用 virtual_domains 的另一个域 (mydomain2.com)。但是,(mydomain2.com) 的电子邮件总是在 Gmail 中的垃圾邮件中结束。 mydomain2.com 的邮件测试员分数是 9.7/10。这是来自 Gmail 的原始标头(我已将 IP 和电子邮件地址替换为示例 ips)

Delivered-To: myemail@gmail.com
Received: by 10.80.177.154 with SMTP id m26csp9759783edd;
        Sat, 7 Jan 2017 16:28:58 -0800 (PST)
X-Received: by 10.84.128.67 with SMTP id 61mr108683153pla.153.1483835337902;
        Sat, 07 Jan 2017 16:28:57 -0800 (PST)
Return-Path: <noreply@mydomain2.com>
Received: from mail.mydomain.com (xx-xxx-x-xxx.com. [xx.xxx.x.xxx])
        by mx.google.com with ESMTPS id s186si84168719pgb.6.2017.01.07.16.28.57
        for <myemail@gmail.com>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Sat, 07 Jan 2017 16:28:57 -0800 (PST)
Received-SPF: pass (google.com: domain of noreply@mydomain2.com designates xx.xxx.x.xxx as permitted sender) client-ip=xx.xxx.x.xxx;
Authentication-Results: mx.google.com;
       dkim=pass header.i=@mydomain2.com;
       spf=pass (google.com: domain of noreply@mydomain2.com designates xx.xxx.x.xxx as permitted sender) smtp.mailfrom=noreply@mydomain2.com;
       dmarc=pass (p=REJECT dis=NONE) header.from=mydomain2.com
Received: from myhomerouter by mail.mydomain.com (Postfix) with ESMTPSA id 284538419F for <myemail@gmail.com>; Sun,
  8 Jan 2017 00:28:57 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mydomain2.com; s=mail; t=1483835337; bh=g3zLYH4xKxcPrHOD18z9YfpQcnk/GaJedfustWU5uGs=; h=From:Subject:Date:To:From; b=rwN/rSaqojz5pKVoYwb99Ec0TZzkHCo140KMlFVe47jl7Ui64w4DoNpCgZFeYEX87
     8NZuBQdfnrirZWbZ7ibydoi07Poz6PZjKoLdRToMcqrtcGVfA+UrJPGQ3EE/QrnYf4
     W0Hyb3PpUO+WVcwDL/rvvVm6ZnfjdIjobJpFj1fU=
From: First Name lastname <noreply@mydomain2.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\))
Subject: Test
Message-Id: <8D89561C-0226-4C6B-A8D1-54A2F210F031@mydomain2.com>
Date: Sat, 7 Jan 2017 19:28:56 -0500
To: First Name <myemail@gmail.com>
X-Mailer: Apple Mail (2.3259)

test

【讨论】:

以上是关于标记为垃圾邮件的电子邮件 - SPF 通行证、DKIM 通行证、发件人 ID 通行证的主要内容,如果未能解决你的问题,请参考以下文章

添加了SPF记录后仍然能够冒名发送邮件

通过 SPF 验证电子邮件

如何阻止 Gmail 将我的网络应用程序发送的邮件标记为垃圾邮件? [关闭]

SPF 记录中的 DNS 查找过多

zend_mail 电子邮件在第 4 次尝试中被标记为垃圾邮件

让用户发送 HTML 电子邮件而不会有被标记为垃圾邮件的风险