antivirus.exim no longer has any effect.

jols

Well-Known Member
Mar 13, 2004
1,107
3
168
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?