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.

Question about writing Rules in Antivirus.exim

Discussion in 'General Discussion' started by noimad1, Apr 3, 2004.

  1. noimad1

    noimad1 Well-Known Member

    Joined:
    Mar 27, 2003
    Messages:
    627
    Likes Received:
    0
    Trophy Points:
    16
    So I have a lot of rules in my antivirus.exim file that filter out specific words etc.

    My problem is that one customer in particular will have his e-mails failed every once in a while because he uses those words.

    So my questions is, can I write and if statement that wraps arround all my rules to exclude him

    For example, if i have the following rules:

    if $message_body: contains "penis"
    then
    seen finish
    endif

    if $message_body: contains "viagra"
    then
    seen finish
    endif


    can I write an overal if statement that excludes his e-mail account...something like this:

    if $header_from: does not contain: hisemail@hisdomain.com

    if $message_body: contains "penis"
    then
    seen finish
    endif

    if $message_body: contains "viagra"
    then
    seen finish
    endif

    End if

    So I guess the question is can you have nested if statments?

    If so, what would the actual syntax be for the main if statement? is $header_from the correct term to capture his e-mail? What syntax do you use for not contains?

    Thanks,
    Damion
     
  2. noimad1

    noimad1 Well-Known Member

    Joined:
    Mar 27, 2003
    Messages:
    627
    Likes Received:
    0
    Trophy Points:
    16
    *bump*

    Does anyone know about writing these rules?
     
  3. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
  4. noimad1

    noimad1 Well-Known Member

    Joined:
    Mar 27, 2003
    Messages:
    627
    Likes Received:
    0
    Trophy Points:
    16
    Thanks for the info. I completely looked over that section.

    Damion
     
Loading...

Share This Page