Clamav toevoegen aan Exim

wget http://pkgs.repoforge.org/clamav/clamav-0.98-2.el6.rf.x86_64.rpm
wget http://pkgs.repoforge.org/clamav/clamd-0.98-2.el6.rf.x86_64.rpm
wget http://pkgs.repoforge.org/clamav/clamav-devel-0.98-2.el6.rf.x86_64.rpm
rpm -Uvh clamav-0.98-2.el6.rf.x86_64.rpm
rpm -Uvh clamd-0.98-2.el6.rf.x86_64.rpm
rpm -Uvh clamav-devel-0.98-2.el6.rf.x86_64.rpm

Open de crontab
vi /etc/crontab

toevoegen:
53 * * * * /usr/bin/freshclam

Start Clamd
service clamd start

bewerk /etc/exim.conf
vi /etc/exim.conf

bovenaan onder commentaarregels toevoegen:
av_scanner = clamd:127.0.0.1 3310

Hierna
# ACL that is used after the DATA command
check_message:
accept

vervangen in:
# ACL that is used after the DATA command
check_message:
# Virus Check
deny message = This message contains a virus or other malware ($malware_name)
demime = *
malware = *
accept

bewerk /etc/group
vi /etc/group

mail:x:12:mail vervangen met: mail:x:12:mail,clamav

bewerk /etc/clamd.conf
vi /etc/clamd.conf

LocalSocket /tmp/clamd vervangen door #LocalSocket /tmp/clamd
#TCPSocket 3310 vervangen door TCPSocket 3310
#TCPAddr 127.0.0.1 vervangen door TCPAddr 127.0.0.1

Herstart Exim
service exim restart

verstuur testvirus en controleer log in /var/log/exim