[SOLVED] Who object checking if filed not exist

2014

New Member
Apr 13, 2021
2
0
1
44
Hi,

Quastion:
Is it possible to check if header do not exist or not match X-Key: QWeqweQWE123

Action:
Notify

From:
Domain: example.com

To:
Domain: example.com

What Object:
(I have a problem here)
Match Field: X-Key=^((?!QWeqweQWE123).)*$

Any advice will be much appreciate.

Thank you
 
Is it possible to check if header do not exist or not match
* negation (the header is not present) is currently not possible in the rule-system.
* if the header exists but does not match QweqweQWE123 - could be possible to match with the negative look-ahead in the regex like you tried)

you can maybe adapt your rules - if the header exists and matches -> ACCEPT (or whichever action you want to take), then another rule at lower priority -> Quarantine or BLOCK (or the ACTION you want for the mails which don't have a matching header)

I hope this helps!
 
Thank you,

That was my workaround, but now I am sure it is not exist with negation.
 

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!