Add header via SpamAssassin config

laurensb

Member
Mar 9, 2020
21
9
23
Hi,

For diagnostic purposes I would like to have SpamAssassin (SA) insert a header:

add_header all RelaysUntrusted _RELAYSUNTRUSTED_

I've tried to insert it by adding the line to the config file /etc/mail/spamassassin/local.cf (via the template, I verified and the line is there).

After some digging I found a thread from 2021 in which was stated that custom headers can't be inserted via SA as some options are not available due to Proxmox running SA as Perl module (https://forum.proxmox.com/threads/adding-items-to-custom-cf-for-spamassassin.89386/).

Would it be possible to make _RELAYSUNTRUSTED_ variable somehow available as a Proxmox macro so that a header containing that data can be added via the PMG rule system?

Edit: In other words, can custom variables be made available to the Rule System? Or is there another way to have SA insert a header?
 
Last edited:

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!