
ClamAV is Open Source antivirus, released under GPL.
This is used by many mail administrators.
In this post I have explained ClamAV installation.
Download latest version of ClamAV from http://clamav.net/
Extract tar & start installation using followings. (for demonstration I am using clamav-0.95.1)
tar zxvf clamav-0.95.1.tar.gz
cd clamav-0.95.1
./configure
make all
(If you have older version installed, you need to backup and remove clamd.conf & freshclam.conf from /usr/local/etc/)
make install
Once after installation you need to modify two configuration files to get ClamAV running & for defination updates.
vi /usr/local/etc/clamd.conf
comment line number 8 / Example
uncomment & change User to qscand / root (if you are using it with Qmail-Scanner) or leave it intact. line number 170.
vi /usr/local/etc/freshclam.conf
comment line number 8 / Example