Account level filter "or" failing
Creating a filter for a single email account based on "from" and "does not contain" domain.tld to fail with error message works perfectly. Add an "or" and a second identical line (with a different domain), and it fails totally, rejecting all email, even from the valid domains in the filter. Checking the logs, it's just saying it was failed because of the filter.
I'd swear this has worked in the past, but I can't get it to allow more than one such line. I've tried all sorts of different criteria in this, and they all fall over. Have I missed something, or possibly misconfigured something on the server(s)? More than one server does this.
-
Create multiple rules rather than a complex and/or rule. [quote] Important: We strongly recommend that you use multiple, simple filters instead of a single large filter. Exim, the server's mail transfer agent, handles many small rules more efficiently than it handles one large rule.
If you want your 2 line rule to work to discard messages that do not have a from example.com or from example.net ..... somewhat unintuitively, use the AND operator. See the following screenshot Also, remember that complex and/or rules are processed as follows:[quote] Important When you create a filter that uses several operators, the system processes the and operator before the or operator. For example:- The system processes A or B and C as A or (B and C).
- The system processes A and B or C as (A and B) or C.
0 -
Counter intuitive indeed, but that works. :P Using AND instead of OR allows the filter to process only the wanted domains, and reject all others. Thanks! 0 -
I think you will find the confusion stems from the comparator used: Does NOT contain .... something AND Does NOT contain .... something else AND Does NOT contain .... something else Then do this action or Contains ... something OR Contains ... something else OR Contains ... something else Then do this action 0 -
Hello, I've marked this thread as solved. Thank you. 0
Please sign in to leave a comment.
Comments
4 comments