[Pkg-exim4-users] Simple ClamAV Setup (Howto)

Joseph tech at ekn.com
Mon Jan 2 19:33:19 UTC 2006

Here are the steps I took to get the ClamAV working on my Debian/testing
box for whatever it is worth to the user list.

Install the ClamAV stuff:

apt-get update
apt-get install clamav clamav-base clamav-daemon clamav-freshclam

I am not using the split exim configuration file:
So I made a new file...

vi /etc/exim4/exim4.conf.localmacros

and add the following lines to it:

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

Now the file line tells the system to include acl_clamav.conf
so you need to create it...

vi /etc/exim4/acl_clamav.conf

and add the following lines to it:

#Clam av hooks
deny  message = This message contains a virus: ($malware_name) please
scan your system.
        demime = *
        malware = *

Restart you exim4.

/etc/init.d/exim4 restart

Anytime you install something with Debian, you want to check out the
So, for example with the ClamAV stuff you want to do this to see the
information included:

zless /usr/share/doc/clamav-freshclam/README.Debian.gz

Note: this assumes you have less installed. If not, you can get it with:
 apt-get install less


respectfully, Joseph

More information about the Pkg-exim4-users mailing list