Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Jun 2003
    Posts
    19

    Default 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
    Last edited by MPCN_Russ1; 09-04-2006 at 05:03 AM.

  2. #2
    Member
    Join Date
    Jun 2003
    Posts
    19

    Default

    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. #3
    Member Manuel_accu's Avatar
    Join Date
    Jun 2005
    Posts
    191

    Default

    Quote Originally Posted by MPCN_Russ1
    Hey all,
    Well... For some reason the following in the "emails to filter" section won't work: $message_headers: matches "(email1|email2)@(domain1|domain2).com"
    try to change this condition to email1@domain1.com | email1@domain2.com | email2@domain1.com | email2@doamin1.com

    Else read the documentation at

    http://www.exim.org/exim-html-4.50/d....html#SECT3.24
    Linux Web Administrator Guide
    Optimize, secure and performance tunning for Apache || MySQL5.1 Cluster How To
    The visionary conceives the impossible, The missionary makes it possible. ...Gita.

  4. #4
    Member
    Join Date
    Jun 2003
    Posts
    19

    Default

    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

Similar Threads & Tags
Similar threads

  1. antivirus.exim
    By useradmin in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 03-25-2008, 09:24 AM
  2. Bypassing antivirus.exim and exim ACLs
    By bsasninja in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 02-21-2007, 01:02 PM
  3. antivirus.exim
    By SACHIN in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 01-24-2007, 11:12 AM
  4. antivirus.exim help
    By juba in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 01-17-2007, 09:56 PM
  5. Bypassing Exiscan / exim.antivirus from Exim for specific domain
    By tweakservers in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 07-19-2006, 10:50 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube