垃圾邮件过滤器 - 为什么同一封邮件通过一个 smtp 服务器发送失败,而另一个服务器却能发送成功?

垃圾邮件过滤器 - 为什么同一封邮件通过一个 smtp 服务器发送失败,而另一个服务器却能发送成功?

我有一个 PHPMailer 脚本用于发送电子邮件。如果通过 postfix localhost 发送,则会被标记为垃圾邮件,并带有这些标头。

Delivered-To: xxxx
Received: by 10.58.210.166 with SMTP id mv6csp82473vec;
        Sun, 15 Sep 2013 16:05:58 -0700 (PDT)
X-Received: by 10.14.184.3 with SMTP id r3mr28558eem.49.1379286358370;
        Sun, 15 Sep 2013 16:05:58 -0700 (PDT)
Return-Path: <[email protected]>
Received: from server1.xxx.co.uk (server1.xxx.co.uk.       [146.185.134.154])
    by mx.google.com with ESMTP id o7si13323028eep.228.1969.12.31.16.00.00;
    Sun, 15 Sep 2013 16:05:58 -0700 (PDT)
Received-SPF: pass (google.com: domain of [email protected] designates    146.185.134.154 as permitted sender) client-ip=146.185.134.154;
Authentication-Results: mx.google.com;
       spf=pass (google.com: domain of [email protected] designates     146.185.134.154 as permitted sender) [email protected]
Received: from www.xxx.co.uk (localhost [127.0.0.1])
by server1.xxxx.co.uk (Postfix) with ESMTP id 9F27E609DE
for <xxxx>; Mon, 16 Sep 2013 00:05:57 +0100 (BST)
Date: Mon, 16 Sep 2013 00:05:57 +0100
To: Chris Bridges <xxxx>
From: KCTL Editor <[email protected]>
Reply-To: KCTL Editor <[email protected]>
Subject: Hello
Message-ID: <[email protected]>
X-Priority: 3
X-Mailer: PHPMailer 5.2.7 (https://github.com/PHPMailer/PHPMailer/)
MIME-Version: 1.0
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

如果通过 outlook.com smtp 服务器发送,我会收到这些标题,并且该邮件不会被标记为垃圾邮件。

Delivered-To: xxxx
Received: by 10.58.210.166 with SMTP id mv6csp82948vec;
    Sun, 15 Sep 2013 16:19:34 -0700 (PDT)
X-Received: by 10.224.111.200 with SMTP id t8mr10893406qap.21.1379287174535;
    Sun, 15 Sep 2013 16:19:34 -0700 (PDT)
Return-Path: <[email protected]>
Received: from blu0-omc4-s32.blu0.hotmail.com (blu0-omc4-s32.blu0.hotmail.com. [65.55.111.171])
        by mx.google.com with ESMTP id f3si6339439qci.79.1969.12.31.16.00.00;
        Sun, 15 Sep 2013 16:19:34 -0700 (PDT)
Received-SPF: pass (google.com: domain of [email protected] designates 65.55.111.171 as permitted sender) client-ip=65.55.111.171;
Authentication-Results: mx.google.com;
   spf=pass (google.com: domain of [email protected] designates     65.55.111.171 as permitted sender) [email protected]
Received: from BLU0-SMTP127 ([65.55.111.135]) by blu0-omc4-s32.blu0.hotmail.com with    Microsoft SMTPSVC(6.0.3790.4675);
 Sun, 15 Sep 2013 16:19:33 -0700
X-TMN: [Xddl8O20Uhw7uyslAavFGmwTa6R4yhFXBk6Rx2dEr4U=]
X-Originating-Email: [[email protected]]
Message-ID: <[email protected]>
Return-Path: [email protected]
Received: from www.xxx.co.uk ([146.185.134.154]) by BLU0-SMTP127.phx.gbl   over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675);
 Sun, 15 Sep 2013 16:19:33 -0700
Date: Mon, 16 Sep 2013 00:19:31 +0100
To: Chris Bridges <xxxx>
From: KCTL Editor <[email protected]>
Reply-To: KCTL Editor <[email protected]>
Subject: Hello
X-Priority: 3
X-Mailer: PHPMailer 5.2.7 (https://github.com/PHPMailer/PHPMailer/)
MIME-Version: 1.0
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
X-OriginalArrivalTime: 15 Sep 2013 23:19:33.0429 (UTC) FILETIME=[09662650:01CEB26A]

知道造成这种情况的原因是什么吗?使用 gmail 和 outlook.com 收件人电子邮件地址进行测试,结果相同。我完全不知所措。大多数事情似乎相当相似,SPF 无论如何都会通过。我完全不知所措!

我知道存在差异,但我看不出有显著的差异?

编辑

我有一些更新。我现在已经尝试添加 DKIM 签名,但没有效果。我还尝试通过 telnet 访问电子邮件以避免使用 PHP。因此,我只能假设问题出在 postfix 上。IP 地址未被列入黑名单。

谷歌给出了一个非常模糊的理由“它与我们的垃圾邮件过滤器检测到的邮件类似”

但是,我看不出它如何满足此处列出的标准,原因如下:“https://support.google.com/mail/answer/1366858?hl=en&ctx=mail&expand=5

任何意见都将不胜感激。这真的让我很烦恼,因为它会延迟我的发布日期。

该电子邮件还顺利通过了其他垃圾邮件测试(例如 port25.com 的验证程序)

==========================================================
Summary of Results
==========================================================
SPF check:          pass
DomainKeys check:   neutral
DKIM check:         pass
Sender-ID check:    pass
SpamAssassin check: ham

Result:         ham  (-4.2 points, 5.0 required)

 pts rule name              description
---- ---------------------- --------------------------------------------------
-2.4 RP_MATCHES_RCVD        Envelope sender domain matches handover relay domain
-1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
                        [score: 0.0000]
 0.0 HTML_MESSAGE           BODY: HTML included in message
 0.1 DKIM_SIGNED            Message has a DKIM or DK signature, not necessarily valid

答案1

看起来 Google 更信任来自 Hotmail 的邮件,而不是来自互联网上某个随机服务器的邮件。这完全不受您的控制。

有一件事在您的控制范围内的是:

X-Mailer: PHPMailer 5.2.7 (https://github.com/PHPMailer/PHPMailer/)

考虑到该软件被滥用的频率,我并不惊讶看到有人认为包含此内容的邮件可疑。我会将​​其删除。

您还应该考虑添加RFC 2369邮件标题添加到您的列表流量中。虽然我怀疑该特定软件是否能够做到这一点。如果您打算运行邮件列表,请考虑使用为此目的设计的软件。

相关内容