![Spamassassin 命令行检查与守护程序检查之间的不一致](https://linux22.com/image/152480/Spamassassin%20%E5%91%BD%E4%BB%A4%E8%A1%8C%E6%A3%80%E6%9F%A5%E4%B8%8E%E5%AE%88%E6%8A%A4%E7%A8%8B%E5%BA%8F%E6%A3%80%E6%9F%A5%E4%B9%8B%E9%97%B4%E7%9A%84%E4%B8%8D%E4%B8%80%E8%87%B4.png)
我正在运行一个带有 postfix 和 spamassassin 的邮件服务器,并且我似乎收到了大量的垃圾邮件。
我随机挑选了一封电子邮件来比较电子邮件标题中有关 spamassassin 的内容以及对同一封邮件进行命令行测试所产生的结果。
结果并不一致:
以下是相关邮件标头:
X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on smtp.xxxxx.xxxx
X-Spam-Level:
X-Spam-Status: No, score=-0.9 required=1.5 tests=BAYES_00,DKIM_SIGNED,
DKIM_VALID,DKIM_VALID_AU,HTML_IMAGE_RATIO_06,HTML_MESSAGE,MIME_HTML_ONLY,
RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS,URIBL_GREY autolearn=no
autolearn_force=no version=3.4.0
这是我在命令行上检查相同的邮件:(邮件通过 Maildir 存储在文件系统上)
spamassassin -d -t < 1556039170.M973634P30465.smtp.xxxxx.xxxx\,S\=41505\,W\=42059\:2\,S
结果如下:
Content analysis details: (2.1 points, 1.5 required)
-0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no
trust
[83.138.173.9 listed in list.dnswl.org]
1.1 URIBL_GREY Contains an URL listed in the URIBL greylist
[URIs: pure360.com]
-0.0 SPF_HELO_PASS SPF: HELO matches SPF record
-0.0 SPF_PASS SPF: sender matches SPF record
0.0 HTML_IMAGE_RATIO_06 BODY: HTML has a low ratio of text to image area
0.0 HTML_MESSAGE BODY: HTML included in message
1.1 MIME_HTML_ONLY BODY: Message only has text/html MIME parts
-0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's
domain
-0.1 DKIM_VALID Message has at least one valid DKIM or DK signature
0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid
该电子邮件应该已被 Spamassassin 拦截,评分为 2.1。然而邮件标题显示的分数为-0.9。我在其他几封邮件中也发现了同样的问题。
我不明白这种矛盾?我唯一注意到的是在得到结果之前命令行测试中可能有 3 秒左右的延迟。也许是超时问题?