This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

regex help

I see some of you are good with regex from searching the forums. I was wondering if someone could help me. I'm trying the first regtex expression trying to block cialis in emails. at first I just put in the word cialis, but it also blocked lost of email with specialist in it. I then tried to understand the syntax of regex expressions, and thought /\ cialis/ would check for a space before the word, but that didn't block any emails for some reason. I noticed C was in capital, so I changed it to /\ cialis/i and still no luck. Anyone know what expression I could use to block emails with cialis in it, but not emails with specialist or anything other than cialis with a space in front of it? 

Thanks

Brian


This thread was automatically locked due to age.
Parents
  • Brian, since Astaro put in the CommTouch engine, none of our installations use the expression filter to stop spam.  For example, ours is empty (well, there is one entry for testing purposes: stopthisemailforspam), and I haven't seen a spam with the word cialis in it for as long as I can remember.

    On the 'AntiSpam' tab in the 'RBLs (Realtime blackhole lists)' section, do you have the 'Block dialup/residential hosts' box checked?  In the 'Advanced anti-spam features' section, do you have the 'Reject invalid HELO / missing RDNS' and 'Perform SPF check' boxes checked?

    There are some REGEX wizards here (not me!), and such expressions can be very helpful in the Web Security configuration.

    Cheers - Bob
     
    Sophos UTM Community Moderator
    Sophos Certified Architect - UTM
    Sophos Certified Engineer - XG
    Gold Solution Partner since 2005
    MediaSoft, Inc. USA
Reply
  • Brian, since Astaro put in the CommTouch engine, none of our installations use the expression filter to stop spam.  For example, ours is empty (well, there is one entry for testing purposes: stopthisemailforspam), and I haven't seen a spam with the word cialis in it for as long as I can remember.

    On the 'AntiSpam' tab in the 'RBLs (Realtime blackhole lists)' section, do you have the 'Block dialup/residential hosts' box checked?  In the 'Advanced anti-spam features' section, do you have the 'Reject invalid HELO / missing RDNS' and 'Perform SPF check' boxes checked?

    There are some REGEX wizards here (not me!), and such expressions can be very helpful in the Web Security configuration.

    Cheers - Bob
     
    Sophos UTM Community Moderator
    Sophos Certified Architect - UTM
    Sophos Certified Engineer - XG
    Gold Solution Partner since 2005
    MediaSoft, Inc. USA
Children
No Data