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.

antivirus.exim no longer has any effect.

Discussion in 'General Discussion' started by jols, Apr 23, 2010.

  1. jols

    jols Well-Known Member

    Joined:
    Mar 13, 2004
    Messages:
    1,111
    Likes Received:
    2
    Trophy Points:
    38
    I need a server-wide anti-spam filter based on content/keywords.

    I had been using antivirus.exim for this, but it no longer has any effect.

    I do find the following line in /etc/exim.conf

    system_filter=/etc/antivirus.exim

    The problem now is that none of the commands I have installed in /etc/antivirus.exim are having any effect. For example:

    Here is the contents of my /etc/antivirus.exim file:
    -----------------------------------
    # Exim filter
    if error_message then finish endif
    if
    $message_headers contains "viagra"
    or $header_reply-to contains "internetseer"
    or $header_Subject contains "Buy and save"
    or $message_headers contains "Buy and save"
    or $message_headers contains "tpnet.pl"
    or $message_body contains "Facebook_details"
    or $message_body contains "mailbox utility"
    or $message_body contains "module.zip"
    or $message_body contains "balancechecker.zip"
    or $message_body contains "remote-admin.net"
    or $message_body contains "microsoftofficeupdate"
    or $message_body contains "viagra"
    or $message_body contains "phentermine"
    then
    save "/dev/null" 660
    endif
    -----------------------------------

    The above no longer has any effect, e.g. even when phentermine or viagra is in the body copy, the email is delivered, etc.

    Any idea what may be going on with this?

    OR, does anyone know of another way to install and use a global, system-wide email filter based on keywords as per the above?
     
  2. d_t

    d_t Well-Known Member

    Joined:
    Sep 20, 2003
    Messages:
    243
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Bucharest
    The new filter file is called: /etc/cpanel_exim_system_filter
     
  3. jols

    jols Well-Known Member

    Joined:
    Mar 13, 2004
    Messages:
    1,111
    Likes Received:
    2
    Trophy Points:
    38
    Thanks very much.

    Should I insert my rules at the beginning or the end of this file?
     
Loading...

Share This Page