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.

what is wrong with this regex filter?

Discussion in 'E-mail Discussions' started by delboy007, Aug 10, 2014.

  1. delboy007

    delboy007 Member

    Joined:
    Jul 30, 2014
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    I created an account level filter following my hosting provider's suggestion

    SUbject = Matchregex = Medicare|walmart|Amazon-GiftCard|car dealerships

    That didn't work so I tried putting an | at the end of the line and then it worked except it blocked everything regardless of what was in the subject. Is it possible to block mail using the list of strings as shown above?
     
  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
  3. delboy007

    delboy007 Member

    Joined:
    Jul 30, 2014
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    entering individual strings would take me all day as I would have to create a separate rule for every string. Apart from that even individual strings don't seem to work. I did a plain text filter for the string "Foreskolin". I tested it using the test filter page after pasting the header (below) and still it didn't work. I am mystified as to why spam control is still centered around filtering email addresses when that has become a waste of time. It seems to me the only effective control against spam is to filter by string. I know that any email which has the word Viagra or Cash loan is going to be spam so it can be safely deleted at source.

    Return-path: <leanandslim@slimdroplbs.us>
    Envelope-to: Me@Me.com
    Delivery-date: Mon, 11 Aug 2014 10:00:47 -0400
    Received: from clients.slimdroplbs.us ([31.220.40.39]:45534 helo=slimdroplbs.us)
    by ecbiz153.inmotionhosting.com with esmtp (Exim 4.82)
    (envelope-from <leanandslim@slimdroplbs.us>)
    id 1XGq9O-0008UP-1Q
    for ME; Mon, 11 Aug 2014 10:00:47 -0400
    Date: Mon, 11 Aug 2014 07:01:42 -0700
    To: <ME.me.uk>
    X-Spam-Flag: YES
    Subject: ***SPAM*** Hi, Foreskolin - Recently reviewed on The Dr. Oz Show. Order: 2196541
    X-Antivirus: AVG for E-mail 2014.0.4716 [4007/8016]
    X-AVG-ID: ID154975BE-67C97EF0

    etc etc
     
Loading...

Share This Page