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 Regex antivirus.exim

Discussion in 'General Discussion' started by MPCN_Russ1, Sep 3, 2006.

  1. MPCN_Russ1

    MPCN_Russ1 Member

    Joined:
    Jun 26, 2003
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    Regex usage in antivirus.exim - not working

    Hey all,

    I can't seem to figure out what's going wrong here... I have a modified antivirus.exim file written by myself.

    Here's the layout:
    if
    emails to filter
    then
    if
    stuff to not filter (whitelist)
    then
    do nothing for the whitelisted
    else
    if
    spam stuff
    then
    log etc
    endif

    if
    spam stuff
    then
    log etc
    endif
    endif
    enfif

    Well... For some reason the following in the "emails to filter" section won't work: $message_headers: matches "(email1|email2)@(domain1|domain2).com"

    Can someone point out whats missing here? I would really like to get this working again.

    I have seperate logs for each section of spam stuff. I tried a single section, and it worked. But it seems that the problem is the emails to filter regex. So hopefully I can get that fixed today with your help!

    Thanks!
    Russ

    ---
    Edit :: Title Change from "Exim Regex antivirus.exim" to "Regex usage in antivirus.exim - not working" - Reason: 14 views, no response
     
    #1 MPCN_Russ1, Sep 3, 2006
    Last edited: Sep 4, 2006
  2. MPCN_Russ1

    MPCN_Russ1 Member

    Joined:
    Jun 26, 2003
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    Hey all,

    Can anyone follow up? Steve (WHG)? I posted this over on your site too, and it hasn't yet been authorized. Can anyone give any hint or direction? Exim doesn't error on the regex. But it doesn't review any of the filters.

    Hopefully someone has an idea on this. PLEASE review!

    Thanks all,
    Russ
     
  3. Manuel_accu

    Manuel_accu Well-Known Member

    Joined:
    Jun 19, 2005
    Messages:
    191
    Likes Received:
    0
    Trophy Points:
    16
  4. MPCN_Russ1

    MPCN_Russ1 Member

    Joined:
    Jun 26, 2003
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    Hey all,

    Apparently, it was my attempt at the whitelist. I removed the whitelist section and it all works with the (email1|email2)@(domain1|domain2).com setup.

    So... Not I just need to figure out what's wrong with my whitelist :( or rather why it's not filtering past it!

    Thanks all,
    Russ
     
Loading...

Share This Page