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.

Having trouble with account-level filters and regex

Discussion in 'E-mail Discussions' started by foxyfish, Feb 4, 2015.

  1. foxyfish

    foxyfish Registered

    Joined:
    Jul 18, 2014
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Hi, i setup some filters to try and combat spam but they don't seem to be working and spam is still coming through.

    My main filter is BODY matches regex /(Unsub)/gi
    but even though the email has the word 'unsubscribe' it still delivers to my inbox as normal?

    Any idea why this isnt working?

    This spam is really starting to annoy me and get me down as its incessant, spamassassin doesn't catch it either as it only scores between 0 and 3 and i cant set my score that low without risking losing real email.

    Please help.

    *Attached is a screenshot of my filter.
     

    Attached Files:

  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  3. foxyfish

    foxyfish Registered

    Joined:
    Jul 18, 2014
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Yes but the problem is most are seperated by dots and dashes to try and evade. example unsubsc.ribe un-sub-scribe etc..
    Also i wasnted it to be wild and case-insensitive so that xxUnSuBsCrIbExx would still be found.. hence the regex way.
    My hoster is still looking into it for me, they have increased the 'message_body_visible' value to 50000 due to the spam i am getting being so long and hefty and the unsubscribe being so low in the body, but it still seems to be failing.

    Also my other filters seem to not be working too.

    I have a FROM contains filter set to *vitale* but when i test it in the tester i set the from address as vitaleaddress@ test.com it still fails? what could be going on??

    Thanks for our reply.
     
  4. foxyfish

    foxyfish Registered

    Joined:
    Jul 18, 2014
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    I've got it fixed i think.

    But what is the correct regex for matching a whole sentence?
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page