Check more than one message header at time
We have ended support and sales of MSH Traffic Policy. We recommend migrating to our new and actively maintained solution - a modern Postfix milter built on years of experience with this product.
Visit www.postfix-milter.com →With the built-in option to check all or any conditions you can check more than one header at a time. Multiple headers can be checked with logical AND or OR parameters.
I’ll add two headers with value checking. In the first one I will use Wildcards when matching Content-Type value. In the second one I will use Regular expression to match User-Agent header value.
Now when both conditions are added, one of two options must be selected:
- All conditions must be met
- Any condition must be met
When the All conditions must be met option is selected then both header conditions must be met. So when a message does not have those headers, the rule will not be executed.
When the Any condition must be met option is selected then any header may be present in the message.
To learn more visit MSH Traffic Policy website.