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.

EXIM Custom Filter help

Discussion in 'E-mail Discussions' started by Secmas, Aug 6, 2017.

Tags:
  1. Secmas

    Secmas Well-Known Member

    Joined:
    Feb 18, 2005
    Messages:
    328
    Likes Received:
    1
    Trophy Points:
    168
    Hi,
    I have created the following EXIM Custom Filter but is not working, can you help me to find where is my issue?

    Here is the code:
    I have also tried with escaping dot like "\\." and escaping "\\>" as well, but the same with no luck.

    Thank you,
    Sergio
     
    #1 Secmas, Aug 6, 2017
    Last edited: Aug 6, 2017
  2. rpvw

    rpvw Well-Known Member

    Joined:
    Jul 18, 2013
    Messages:
    260
    Likes Received:
    76
    Trophy Points:
    28
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
  3. Secmas

    Secmas Well-Known Member

    Joined:
    Feb 18, 2005
    Messages:
    328
    Likes Received:
    1
    Trophy Points:
    168
    Hi rpvw,
    before asking here, that was one of the many pages that I have been looking to help with my error but with no luck.
    Thought that maybe some one could give a help pointing out my error, but seems it is not the way you do for help others.
    But any way I thank you for your comment.
    Regards,
    Sergio
     
  4. rpvw

    rpvw Well-Known Member

    Joined:
    Jul 18, 2013
    Messages:
    260
    Likes Received:
    76
    Trophy Points:
    28
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
    Couple of thoughts:

    You don't say what level you are writing this filter for, but it has to be a system filter (global) rather than a user filter as the "fail"command is only available to administrative levels.

    I also wonder if you should be using "matches" instead of "contains" - it is the only test that mentions interpreting a regular PCRE expression in the second string.

    Sorry I can't be more helpful :(
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,086
    Likes Received:
    1,288
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    You may want to review some of the custom filter rules discussed on the following thread to see if they work for this purpose:

    Need to filter ALL email

    Thank you.
     
Loading...

Share This Page