Using variables in WHAT objects

Nov 22, 2018
4
0
21
50
Hi,
I would like to create a rule, that checks if the Reply-To field contains a mail address, that is different from the sender.
This WHAT object would look like this:

Code:
Field:      Reply-To
Value:      ^((?!__SENDER__).)*$

The thing is: that does not work. If I replace the string __SENDER__ with the literal email address I'm testing it with, it works - so I guess you can't use variables in this context.
Is this correct?
Is there another possibility to get this to work?

TIA, Roland.
 
Is this correct?
Yes the Match Field (and all other What Objects) do not use the variables.

Is there another possibility to get this to work?
AFAICT there is a SpamAssassin rule that matches on Reply-to being not equal to the sender - you could increase the score of this - and thus give the affected mails a higher spamscore

I hope this helps!
 

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!