Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Filtering logic when using multiple AND and a single OR

Discussion in 'E-mail Discussion' started by OldB, Jan 5, 2015.

  1. OldB

    OldB Member

    Joined:
    Jan 5, 2015
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Reseller Owner
    I have read https://documentation.cpanel.net/display/1138Docs/Account+Level+Filtering and specifically:
    "cPanel will always process the "and" operator before the "or" operator" and the example.

    Can I infer from this that 'A and B or C and D and E or F' would become: (A and B) or (C and D and E) or F ?
    Is that also generally true - i.e. all ORs are "top level" - i.e. any true condition between them will give true overall
    with all the ANDs honoured?

    Also - apologies if I should have used a new thread but has anyone else spotted that:
    ^(localuser(bc|\..{0,22})?)@ourdomain\.co.uk
    *does* match when used with Match Regex 'Any recipient' but *fails* when used in Match Regex 'From'
    Anyone know why?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,711
    Likes Received:
    1,791
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello :)

    You can find more information on Exim filter rules at:

    3. Exim filter files

    In particular, look for the section titled "21. Obeying commands conditionally".

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice