我已经安装了 spamassassin 3.4.0 以供使用邮件::SpamAssassin::插件::ASN. cpan 确认已安装,dig 确认我可以从中获取 ASN TXT 记录http://routeviews.org。我的local.cf
有此部分:
##### Autonomous System Plugin
# https://spamassassin.apache.org/full/3.4.x/doc/Mail_SpamAssassin_Plugin_ASN.html
ifplugin Mail::SpamAssassin::Plugin::ASN
asn_lookup asn.routeviews.org _ASN_ _ASNCIDR_
asn_prefix "AS"
add_header all ASN _ASN_ _ASNCIDR_
endif
然而,每当我查看消息中的标题时,ASN 部分都是空白的:
Return-Path: <[email protected]>
X-Original-To: [email protected]
Delivered-To: [email protected]
Received: by jz-rs-01.justinzane.com (Postfix, from userid 182) id CE91A1AAB8; Tue, 20 May 2014 21:48:32 +0000 (UTC)
X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on jz-rs-01.justinzane.com
X-Spam-Level: ***
X-Spam-Status: No, score=3.5 required=5.0 tests=BAYES_80, HTML_FONT_LOW_CONTRAST,HTML_MESSAGE,MIME_HTML_ONLY,RDNS_NONE shortcircuit=no autolearn=no autolearn_force=no version=3.4.0
X-Spam-ASN:
Received: from w2ynk.gradgiftspersonalized.eu (unknown [170.130.150.45]) by jz-rs-01.justinzane.com (Postfix) with ESMTP id 90C381AAB3 for <[email protected]>; Tue, 20 May 2014 21:48:16 +0000 (UTC)
Received: by 0166d6ef.w2ynk.gradgiftspersonalized.eu (amavisd-new, port 3565) with ESMTP id 01OL66D6DWEF; for <[email protected]>; Tue, 20 May 2014 14:48:18 -0700
Date: Tue, 20 May 2014 14:48:18 -0700
Message-ID: <[email protected]>
Content-Transfer-Encoding: 8bit
From: Personalized Gift Mall <[email protected]>
Subject: Personalized Graduation Invites, Banners, and Gifts
Content-Language: en-us
MIME-Version: 1.0
Content-Type: text/html; charset="UTF-8"
To: [email protected]
此外,运行spamassassing -t -D < /path/to/spam.message
显示 ASN 插件正在“获取”正确的数据。但是,不知何故,标题没有被写入。有人能帮我确定如何让它工作吗?
答案1
我自己也遇到过这种情况,既然没有答案,我想我会做出回应。答案实际上是你通过同一个邮件服务器向自己发送邮件,这通常是任何人测试邮件服务器配置更改时所做的第一件事。
据我所知,您列表中的受信任网络中的任何内容都不会被视为 SpamAssassin 的中继,因此模块无法获取该中继的 ASN。外部中继连接时,您会获得 ASN 数据。