Your Linux Data Center Experts
Enabling use of ClamAV Daemon
Note that ClamAV will "fail safe" if the "clamd" daemon is not
running. So your messages will not be scanned for viruses if it has died
or is otherwise not running. This is why the default for vPostMaster is to
use the stand-alone "clamscan" instead of "clamdscan". However, this does
result in a loss of performance.
Install clamd, likely via either "apt-get install clamd" or "yum
On RPM-based systems enable clamd at boot using: "chkconfig clamd
Run "/etc/init.d/clamd restart"
Test clamdscan by running: "clamdscan --quiet --stdout
/etc/services >/dev/null 2>&1 && echo IT WORKS"
Enable "clamdscan" in the database by running these commands:
postgresql -d vpostmaster
update meta set clamscancommand = '/usr/bin/clamdscan --stdout -';