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.

Global Email Filters - equals vs contains

Discussion in 'E-mail Discussions' started by alfa ex, Mar 1, 2016.

  1. alfa ex

    alfa ex Member

    Joined:
    Oct 15, 2014
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Hi.

    I'm doing a lot of tests on my cpanel with global email filters and i'm not getting the result that i want.

    I have a lot of emails that don't exists anymore (old employees) but they keep receiving spam, and i have a catch all box, so this box receives about 20,000 emails per week.

    I want to completely drop e-mails for user abc@mydomain but only if it is the unique recipient.
    If there are more recipients like zyx@mydomain, abc@mydomain, 123@mydomain i want to drop the e-mail for abc@mydomain only and the other two receive normal.

    But when i set up this rule.
    TO EQUALS abc@mydomain => discard message AND stop processing rules
    The e-mail is delivered in the box with no problem
    If i use contains, it will drop the message for all the recipients

    I have a bunch of filters already set up and they work fine, but it's with regex and subject using CONTAINS.

    I don't know if it's a bug or if is the way that this feature works.

    My WHM version is 54.0 (build 17)

    thanks in advanced.
     
    #1 alfa ex, Mar 1, 2016
    Last edited: Mar 1, 2016
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Could you post a screenshot of this filter rule? Have you reviewed /var/log/exim_mainlog for emails sent to this address to see how Exim is handling it? EX:

    Code:
    exigrep user@domain /var/log/exim_mainlog
    Thank you.
     
  3. alfa ex

    alfa ex Member

    Joined:
    Oct 15, 2014
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    hi.
    thanks for the reply

    SS
    img1.JPG

    log
    Code:
    2016-03-09 15:31:58 1aditi-0006MK-Ul H=blu004-omc2s27.hotmail.com [65.55.111.102]:53971 Warning: "SpamAssassin as istsiste detected message as NOT spam (3.3)"
    2016-03-09 15:31:58 1aditi-0006MK-Ul <= lambaocf@hotmail.com H=blu004-omc2s27.hotmail.com [65.55.111.102]:53971 P=esmtps X=TLSv1.2:ECDHE-RSA-AES256-SHA384:256 CV=no S=3080 id=BLU175-DS162E4C9EEFC87727DF50C5C6B30@phx.gbl T="test2" for rcassia@istsistemas.com.br
    2016-03-09 15:31:58 1aditi-0006MK-Ul => mateus (rcassia@istsistemas.com.br) <rcassia@istsistemas.com.br> R=virtual_user T=virtual_userdelivery
    2016-03-09 15:31:58 1aditi-0006MK-Ul Completed
    
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Could you remove the "Stop Processing Rules" action and verify if the issue persists with just the "Discard" action? It's also possible the other global filter rules you have in-place are overriding this specific filter. Do any of the other filter rules have the "Stop Processing Rules" action defined?

    Thank you.
     
  5. alfa ex

    alfa ex Member

    Joined:
    Oct 15, 2014
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Yes, i did and the behavior is the same.

    dropa is the first rule.
    I used "Stop Processing Rules" from past experiences.
    If i don't use this it will pass through all rules.
    I don't think there are conflict, i'm very carefull with these rules.
    But if you want i can search for something.

    Yes the others rules has "Stop Processing Rules" and they work fine.

    Example:
    rule 4:
    subject matches regex viagra -> deliver to folder A, stop processing
    rule 5:
    any header matches regex XXX.XXX.XXX.XXX -> deliver to folder B, stop processing

    without Stop Processing Rules a good amount of e-mail were duplicated on folder A and B
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Could you open a support ticket using the link in my signature so we can take a closer look? You can post the ticket number here so we can update this thread with the outcome.

    Thank you.
     
  7. alfa ex

    alfa ex Member

    Joined:
    Oct 15, 2014
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Hi.
    The ticket number is 7509795

    But i'm having trouble granting access on the server.
    on the ticket i'm typing a user that i login using ssh and that have sudo permission.
    but on my whm i always get an error when clicking on the grant button.

    error = specify an unsupported root escalation method, using_sudo, for user “mysshuser”.

    i always log on the server with this "mysshuser" and i have sudo permission, i can even do "sudo su - root" with this "mysshuser" user
     
Loading...

Share This Page