The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Filtering logic when using multiple AND and a single OR

Discussion in 'E-mail Discussions' 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:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    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.
     
Loading...

Share This Page