PMG 7.8.3 - SpamAssassin AskDNS Modul Problem

Feb 4, 2021
19
4
8
60
Wir wollen das Spamassassin Plugin "AskDNS" einsetzen, um den MX-Record der Domain im "Reply-To"-Header prüfen, falls diese gesetzt wurde.

Im Quelltext der AskDNS.pm findet sich folgender Hinweis:
Special supported tag HEADER() can be used to query any header content, using same header names/modifiers that as header rules support.
For example _HEADER(Reply-To:addr:domain)_ can be used to query the trimmed domain part of Reply-To address. See Mail::SpamAssassin::Conf documentation about header rules.


Wir nutzen folgende Regel in der custom.cf:

Perl:
ifplugin Mail::SpamAssassin::Plugin::AskDNS
add_header all AskDNS loaded
# Block MX hosts of domains listed in Reply-To
askdns          LOCAL_REPLYTOMX _HEADER(Reply-To:addr:domain)_ MX /mx.unwantedreplyto.com/
describe        LOCAL_REPLYTOMX Block list of MX hosts looked up from Reply-To
score           LOCAL_REPLYTOMX 1.0
endif # Mail::SpamAssassin::Plugin::AskDNS

Im Log des DNS-Servers ist ersichtlich, dass AskDNS keinen MX-Lookup für die Reply-To-Domain durchführt.
EIne Debugausgabe vom Spamassassin zeigt, dass das AskDNS Plugin zuvor geladen wurde.

Andere selbstgebaute Regeln in der custom.cf funktionieren ohne Probleme.

Gruß
Exo
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!