Enable Virus scanning for exim

elaine

Verified User
Joined
Nov 26, 2007
Messages
36
Location
Singapore
Hi,
If you are using debian version 5, run the command as below:

apt-get install clamav-daemon clamav-freshclam

refer to this link to compile newer version of exim: http://help.directadmin.com/item.php?id=125

The added the lines in your exim.conf file as below:

after #primary_hostname = , add the line below:

av_scanner = clamd:/var/run/clamav/clamd.ctl


After check_message: , add the line below:

deny message = This message contains malware ($malware_name)
demime = *
malware = *

# Reject messages with serious MIME container errors
deny message = Found MIME error ($demime_reason).
demime = *
condition = ${if >{$demime_errorlevel}{2}{1}{0}}

# Reject known virus spreading file extensions.
# Accepting these is pretty much braindead.
deny message = contains $found_extension file (blacklisted).
demime = com:vbs:bat:pif:scr

Hope this help to all of you. Thank you.:)
 
# Reject known virus spreading file extensions.
# Accepting these is pretty much braindead.
deny message = contains $found_extension file (blacklisted).
demime = com:vbs:batif:scr

Exim already blocks file extensions known to contain viruses.
 
Back
Top