![Spamassassin 过滤器会系统地对垃圾邮件产生负面(正常)分数](https://linux22.com/image/641643/Spamassassin%20%E8%BF%87%E6%BB%A4%E5%99%A8%E4%BC%9A%E7%B3%BB%E7%BB%9F%E5%9C%B0%E5%AF%B9%E5%9E%83%E5%9C%BE%E9%82%AE%E4%BB%B6%E4%BA%A7%E7%94%9F%E8%B4%9F%E9%9D%A2%EF%BC%88%E6%AD%A3%E5%B8%B8%EF%BC%89%E5%88%86%E6%95%B0.png)
我遇到了大量垃圾邮件的问题。我的服务器设置是 VPS,带有 CentOS 6.5 和 Dovecot+Postfix+Spamassassin。
其中一条消息的来源如下:
Return-Path: <[email protected]>
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on xxxxxx.xx
X-Spam-Level:
X-Spam-Status: No, score=-0.5 required=3.0 tests=HTML_MESSAGE,
HTML_MIME_NO_HTML_TAG,MIME_HTML_ONLY,RP_MATCHES_RCVD,URIBL_BLOCKED
autolearn=ham version=3.3.1
Delivered-To: [email protected]
Received: by mx.xxxxxx.xx (Postfix, from userid 5001)
id 584194399E; Sun, 14 Sep 2014 04:34:03 +0200 (CEST)
Received: from tagbook.co.nz (tagbook.co.nz [119.47.112.73])
by mx.xxxxxx.xx (Postfix) with ESMTP id 6089C43119
for <[email protected]>; Sun, 14 Sep 2014 04:33:59 +0200 (CEST)
Date: Sun, 14 Sep 2014 14:33:56 +1200
From: "Nancy Mitchell" <[email protected]>
Reply-To:"Nancy Mitchell" <[email protected]>
Message-ID: <[email protected]>
To: [email protected]
Subject: RE: Lol adooya
X-Priority: 3 (Normal)
MIME-Version: 1.0
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
<h2><a href="http://www.dirtymath.co.kr/data/question/g0702/login.html?ZGpwQmRqcGxndixndw==">adooya</a></h2>
<div> The artifact was instantly forgotten-as I hoped, although it took
</div>
如您所见,这封邮件的垃圾邮件评分仅为 -0.5。有人知道该怎么办吗?这很烦人。
答案1
关闭一些 spamassassin 测试
根据我的 SA 配置,上述测试仅RP_MATCHES_RCVD
产生负分(火腿指标)。RP_MATCHES_RCVD
分数在 -1.5 和 -0.5 之间(本地/网络,有贝叶斯/无贝叶斯)。
您可以考虑按照所述关闭测试man Mail::SpamAssassin::Conf
。
〜/ .spamassassin / user_prefs
score RP_MATCHES_RCVD 0
答案2
安装 DCC、Pyzor 和 Razor2。这可以显著提高检测率。如果您仍然收到垃圾邮件,请编写一些元规则(例如 DCC + 黑名单 = +2 分)。我每周用这种方法拦截超过 300 封垃圾邮件,准确率超过 99%。