Clam AntiVirus
Clam Version
Tested with Clam AntiVirus 0.73.
Introduction
Clam AntiVirus is a fast command-line virus checker. It uses a local virus database which it updates periodically from a central server. We recommend using it with
Sympa.
Installation
Install prerequisites:
sudo apt-get install libgmp3 libgmp3-dev zlib1g zlib1g-dev libbz2 libbz2-dev
Download the latest
stable version.
Create a user and group for Clam:
sudo groupadd clamav
sudo useradd -g clamav -s /bin/false -c "Clam AntiVirus" clamav
Install
/usr/local/configure-wrappers/configure-clamav (make it world-executable). Compile and install Clam:
tar zxf clamav-0.x.tar.gz
cd clamav-0.x
/usr/local/configure-wrappers/configure-clamav
make
sudo make install
In
/etc/profile:
- Add
/usr/local/clamav/bin to LOCAL_PATH.
- Add
/usr/local/clamav/man to LOCAL_MANPATH.
Make a place for the log generated when Clam updates its virus database:
sudo touch /var/log/clam-update.log
sudo chmod 644 /var/log/clam-update.log
sudo chown clamav:clamav /var/log/clam-update.log
Schedule a cron job to update the virus database, by installing
/etc/cron.daily/freshclam (make it world-executable).
TODO
All mail should really be filtered through Clam; currently only
StandardSympa uses it. One way would be to use
ClamAssassin. Otherwise,
Here is a document that might be helpful, in addition to
this one.
to top