HOWTO-ClamAV for Open WebMail

发表于:2007-07-04来源:作者:点击数: 标签:
HOWTO install and configure ClamAV (AntiVirus) for Open WebMail on Red Hat/Fedora Core ====================================================================================== By Thomas Chung On 2004-07-26 REF: http://clamav.net/ 1. Installat
HOWTO install and configure ClamAV (AntiVirus) for Open WebMail on Red Hat/Fedora Core
======================================================================================
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 aclearcase/" target="_blank" >ccess 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

原文转自:http://www.ltesting.net