Spamassassin 中的 whitelist_from_rcvd 不起作用 - 未列入白名单

Spamassassin 中的 whitelist_from_rcvd 不起作用 - 未列入白名单

我想使用whitelist_from_rcvd和排除我自己的电子邮件地址,同时避免它们被垃圾邮件发送者伪造。

但它似乎不起作用,我自己的邮件仍然被 spamassassin 扫描、分配分数并且其主题被重写。

下面的测试电子邮件是从托管在 94.177.253.49 上的网站上的联系表单发送的。邮件服务器位于 185.43.211.43。

以下是测试电子邮件的标题:

Return-Path: <[email protected]>
X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail01
X-Spam-Flag: YES
X-Spam-Level: **************************************************
X-Spam-Report:
        * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP
        *  0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked.
        *       See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block
        *      for more information.
        *      [URIs: sdfasfa.com]
        *  0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily
        *      valid
        * 1000 GTUBE BODY: Generic Test for Unsolicited Bulk Email
        *  0.0 HTML_MESSAGE BODY: HTML included in message
        *  1.1 MIME_HTML_ONLY BODY: Message only has text/html MIME parts
        *  0.6 HTML_MIME_NO_HTML_TAG HTML-only message, but there is no HTML tag
        *  0.1 DKIM_INVALID DKIM or DK signature exists, but is not valid
X-Spam-Status: Yes, score=1000.9 required=5.0 tests=ALL_TRUSTED,DKIM_INVALID,
        DKIM_SIGNED,GTUBE,HTML_MESSAGE,HTML_MIME_NO_HTML_TAG,MIME_HTML_ONLY,
        URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0
Delivered-To: [email protected]
Received: by mail.glmr.in (Postfix, from userid 994)
        id 9864F1373; Wed,  3 Oct 2018 14:59:07 +0200 (CEST)
X-Sieve: Pigeonhole Sieve 0.4.2
X-Sieve-Redirected-From: [email protected]
Delivered-To: [email protected]
Received: from www.tantramassageamsterdam.net (unknown [94.177.253.49])
        (Authenticated sender: [email protected])
        by mail.glmr.in (Postfix) with ESMTPSA id E462A428
        for <[email protected]>; Wed,  3 Oct 2018 14:59:01 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple;
        d=tantramassageamsterdam.net; s=default; t=1538571541;
        bh=mc/T6m7UlKFYERygzKcKT3rp91BfuBS+NZA/4Q+RdIA=;
        h=Date:To:From:Reply-To:Subject;
        b=gIZXOKkFKjZRSm9gO0sv6qInvC/vt+jOlBapSlKNhet4u6KScpPqM+FY4mRumYoKG
         YhAK8xMd8vDu+LkVhG5BIZRh+ZUb2QFOkSERpsIK+kUHwk2wfjd09OFK13gmzp6ZE8
         VPLTJRxAtMVE0m+m0wOENytzJdebwI5sk6wRH0OA=
Date: Wed, 3 Oct 2018 12:59:01 +0000
To: [email protected]
From: Tantra Massage Amsterdam <[email protected]>
Reply-To: test <[email protected]>
Subject: [SPAM] New booking information
Message-ID: <[email protected]>
X-Mailer: WPMailSMTP/Mailer/smtp 1.3.3
MIME-Version: 1.0
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Prev-Subject: New booking information
X-Spam-Prev-Subject: [SPAM] New booking information

这是 local.cf

required_hits 5
report_safe 0
rewrite_header Subject [SPAM]

add_header all Status _YESNO_, score=_SCORE_ required=_REQD_ tests=_TESTS_ autolearn=_AUTOLEARN_ version=_VERSION_

trusted_networks 185.43.211.43
trusted_networks 94.177.253.49
trusted_networks 80.211.255.82
trusted_networks 80.211.183.70

whitelist_from_rcvd [email protected] www.tantramassageamsterdam.net
whitelist_from_rcvd [email protected] tantramassageamsterdam.net

以下是部分输出spamassassin -D -L -thttps://pastebin.com/zuU1mKt1 (太长了,不适合粘贴在这里)

请帮助正确使用whitelist_from_rcvd,以便我将我的电子邮件地址列入白名单,并将真正从我管理的网站发送的电子邮件列入白名单。

答案1

您的测试电子邮件来自 www.tantramassageamsterdam.net,而不是来自 tantramassageamsterdam.net。尝试将第二个 whitelist_from_rcvd 更改为

whitelist_from_rcvd [email protected] www.tantramassageamsterdam.net

PS 并添加trusted_networks到您的local.cf 以便更好地处理已接收的标头。

相关内容