Spamassassin AskDNS Modul problem PMG 7.3-8

Feb 4, 2021
18
4
8
60
We want to use the Spamassassin plugin “AskDNS” to check the MX record of the domain in the “Reply-To” header, if this has been set.

The following note can be found in the source code of AskDNS.pm:

The specially supported HEADER() tag can be used to query any header content using the same header names/modifiers supported by the header rules.
For example, _HEADER(Reply-To:addr:domain)_ can be used to query the shortened domain part of the Reply-To address. For more information about header rules, see the Mail::SpamAssassin::Conf documentation.

We use the following rule in custom.cf:

Perl:
ifplugin Mail::SpamAssassin::Plugin::AskDNS
add_header all AskDNS loaded
# Block MX hosts from 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 searched by Reply-To
Result LOCAL_REPLYTOMX 1.0
endif # Mail::SpamAssassin::Plugin::AskDNS

The DNS server log shows that AskDNS does not perform any MX lookup for the reply-to domain.
A debug output from Spamassassin shows that the AskDNS plugin was previously loaded.

Other self-made rules in custom.cf work without problems.

Any hints?

regards,
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!