尽管发件人已列入白名单,SpamAssassin 仍将合法电子邮件发送到垃圾邮件箱

尽管发件人已列入白名单,SpamAssassin 仍将合法电子邮件发送到垃圾邮件箱

我无论如何也想不通为什么来自“白名单”发件人的电子邮件仍然会从 SpamAssassin 获得很高的分数,但却无法投递。

电子邮件标题为:

From [email protected] Wed Apr 25 10:52:26 2012
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on
    www.mysite.com
X-Spam-Level: 
X-Spam-Status: No, score=-**107.9** required=5.0 tests=AWL,BAYES_00,HTML_MESSAGE,
    KHOP_DYNAMIC,MIME_QP_LONG_LINE,**USER_IN_WHITELIST,USER_IN_WHITELIST_TO**
    autolearn=ham version=3.3.1
Received: from webaccess.theirsite.com (webaccess.theirsite.com [81.246.110.67])
    by www.mysite.com (8.14.4/8.12.8) with ESMTP id q3PHqPpR019683
    for <alison@mysite>; Wed, 25 Apr 2012 10:52:26 -0700
X-Envelope-To: <[email protected]>
Received: by webaccess.theirsite.com (Postfix, from userid 1001)
    id DA5E64223F; Wed, 25 Apr 2012 19:52:21 +0200 (CEST)
Received: from beovpzardb1.theirsite.local (65.110-246-81.adsl-static.isp.belgacom.be [81.246.110.65])
    by webaccess.theirsite.com (Postfix) with ESMTP id B1C794218A
    for <[email protected]>; Wed, 25 Apr 2012 19:52:21 +0200 (CEST)
Subject: RE: questions about garbage cans
From: =?utf-8?Q?Orders_USA?= <[email protected]>
To: =?utf-8?Q?alison=40eefaco=2Ecom?= <[email protected]>
Date: Wed, 25 Apr 2012 19:51:11 +0200
Mime-Version: 1.0
Content-Type: multipart/alternative; 
 boundary="=_fC3CzCFWmN93q8ZWTzGby0LlKwQH2gYGeZlQzD+NmoGVrVuE"
In-Reply-To: <005701cd22e7$e79eb4a0$b6dc1de0$@com>
References: <005701cd22e7$e79eb4a0$b6dc1de0$@com>
X-Priority: 3 (Normal)
X-Mailer: Zarafa 7.0.6-32752
Sender: =?utf-8?Q?S_Danner?= <[email protected]>
Message-Id: 
 <zarafa.4f98398f.1ba8.4a80d64c7fe5d835@beovpzardb1.theirsitea.local>
X-Copyrighted-Material: Please visit http://www.theirsite.com

非常感谢您的帮助:)

来自 /var/log/maillog

Apr 25 10:52:26 www sendmail[19683]: q3PHqPpR019683: from=<[email protected]>, size=15656, class=0, nrcpts=1, msgid=<zarafa.4f98398f.1ba8.4a80d64c7fe5d835@beovpzardb1.theirsite.local>, proto=ESMTP, daemon=MTA, relay=webaccess.theirsite.com [81.246.110.67]
Apr 25 10:52:26 www spamd[8985]: spamd: connection from localhost [127.0.0.1] at port 56915
Apr 25 10:52:26 www spamd[8985]: spamd: setuid to mail succeeded
Apr 25 10:52:27 www spamd[8985]: spamd: processing message <zarafa.4f98398f.1ba8.4a80d64c7fe5d835@beovpzardb1.theirsite.local> for mail:8
Apr 25 10:52:27 www spamd[8985]: spamd: clean message (-107.9/5.0) for mail:8 in 0.7 seconds, 15956 bytes.
Apr 25 10:52:27 www spamd[8985]: spamd: result: . -107 - AWL,BAYES_00,HTML_MESSAGE,KHOP_DYNAMIC,MIME_QP_LONG_LINE,USER_IN_WHITELIST,USER_IN_WHITELIST_TO scantime=0.7,size=15956,user=mail,uid=8,required_score=5.0,rhost=localhost,raddr=127.0.0.1,rport=56915,mid=<zarafa.4f98398f.1ba8.4a80d64c7fe5d835@beovpzardb1.theirsite.local>,bayes=0.000000,autolearn=ham

Sendmail 正在做什么

Apr 25 10:52:26 www sendmail[19683]: q3PHqPpR019683: from=<[email protected]>, size=15656, class=0, nrcpts=1, msgid=<zarafa.4f98398f.1ba8.4a80d64c7fe5d835@beovpzardb1.theirsite.local>, proto=ESMTP, daemon=MTA, relay=webaccess.theirsite.com [81.246.110.67]
Apr 25 10:52:27 www sendmail[19855]: q3PHqPpR019683: to="|/etc/mail/jprocess [email protected]", ctladdr=<[email protected]> (8/0), delay=00:00:01, xdelay=00:00:01, mailer=prog, pri=45901, dsn=2.0.0, stat=Sent

答案1

所以分数是 -107.9(负一百零七点九)。这非常非常,非常低,肯定低于垃圾邮件的 5.0 阈值。我猜这些星号是你加的。

答案2

找出邮件无法送达的原因的方法是检查邮件在经过 MTA、反垃圾邮件、防病毒等程序时的整个生命周期,而不是只关注反垃圾邮件方面。这涉及/var/log/maillog从邮件的接收到最终送达的整个过程。

原作者的邮件日志显示,Sendmail 已收到邮件 q3PHqPpR019683,然后将其传递给spamdSpamAssassin 进行评分。SpamAssassin 为其分配了一个非常低的分数,这对于白名单发件人来说是意料之中的。然后,该邮件返回到 Sendmail 进行进一步处理。Sendmail 随后成功将邮件(带有“stat=Sent”)交给 shell 脚本:。从 Sendmail(和 SpamAssassin)的角度来看,该邮件已成功接受、评分并移交给流程的下一阶段,因此问题不在于 SpamAssassin。to="|/etc/mail/jprocess [email protected]"

原始发件人对/etc/mail/jprocess脚本的检查表明,在将邮件传递给 MDA 之前,脚本处理标记邮件的方式可能存在问题。修改该脚本后,测试邮件便可成功传递。

请注意,jprocess 脚本似乎是非标准的。更“可接受”的方法是使用 Amavis-ng 或 Sendmail 邮件过滤器之类的东西。OP 可能想要调查这些选项。

相关内容