[SOLVED] Who object checking if filed not exist

2014

New Member
Apr 13, 2021
2
0
1
45
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.