Annie Site Admin
Joined: 19 Jun 2005 Posts: 23
|
Posted: Fri Oct 21, 2005 4:23 pm Post subject: How to Install clamav on Cpanel server |
|
|
Download the latest stable ClamAV distribution from http://www.clamav.net
Expand the distribution and cd into the resultant directory and build ClamAV using:
tar -xzf clamav-*
cd clamav*
./configure
make
make install
Create an empty log file for clamav updates:
touch /var/log/clam-update.log
chown clamav:clamav /var/log/clam-update.log
At this point you can setup ClamAV only in:
pico -w /usr/mailscanner/etc/MailScanner.conf
Virus Scanners = clamav
Then restart MailScanner with:
service MailScanner restart
Or you can install the more efficient Mail::ClamAV module. You'll need to install some perl modules first (all on one line):
/scripts/perlinstaller /scripts/perlinstaller Net::CIDR Archive::Zip
Compress::Zlib Convert::BinHex Inline::C
Then install the ClamAV perl module:
/scripts/perlinstaller Mail::ClamAV
Then setup clamavmodule:
pico -w /usr/mailscanner/etc/MailScanner.conf
Virus Scanners = clamavmodule
Then restart MailScanner with:
service MailScanner restart
You can now set what domains you want scanned for viruses in:
/usr/mailscanner/etc/rules/virus.scanning.rules |
|