4-A: CLAMD

We want to use clamdscanner as it is faster than clamscan and we can do more interesting things with clamav as a service. This will scan all incoming email for viruses on our qmail installation.

apt-get install clamav clamav-daemon
nano /etc/clamav/freshclam.conf

#Just verify it says Logtime Yes

/etc/init.d/clamav-freshclam restart

#update the database with...

freshclam

apt-get install clamav-daemon

nano /etc/apparmor.d/usr.sbin.clamd

#Within the {} add

/var/spool/qscan/** r,

#SAVE AND EXIT

/etc/init.d/apparmor restart