======================================================================================
By Thomas Chung
On 2004-07-26
REF: http://clamav.net/
1. Installation
# wget http://crash.fce.vutbr.cz/crash-hat/1/clamav/clamav-0.72-1.i386.rpm
# rpm -Uvh clamav-0.72-1.i386.rpm
2. Configuration
# vi /etc/clamav.conf
Change value for User from 'clamav' to 'root'
otherwise, you will get "Can't access the file ERROR"
# vi /etc/freshclam.conf
Change value for Checks from "24" to "2"
to update virus database every 2 hours
3. Start services
freshclam - update virus databases
clamd - an anti-virus daemon
# chkconfig freshclam on
# service freshclam start
# chkconfig clamd on
# service clamd start
4. Test clamd manually
clamdscan - scan files and directories against viruses using Clam
AntiVirus Daemon
# clamdscan -v /usr/share/doc/clamav*
# clamdscan -v /home/
5. Enable viruscheck in openwebmail.conf
# vi openwebmail.conf
enable_viruscheck yes
viruscheck_pipe /usr/bin/clamdscan --mbox --disable-summary --stdout -
viruscheck_source_allowed all
文章来源于领测软件测试网 https://www.ltesting.net/