Spamassassin AskDNS Modul problem PMG 7.3-8

Feb 4, 2021
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

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

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 /
describe LOCAL_REPLYTOMX block list of MX hosts searched by Reply-To
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 work without problems.

Any hints?



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!