Enabling use of ClamAV Daemon
Warnings
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.
Steps
Install clamd, likely via either "apt-get install clamd" or "yum
install clamd".
On RPM-based systems enable clamd at boot using: "chkconfig clamd
on".
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:
su postgres
postgresql -d vpostmaster
update meta set clamscancommand = '/usr/bin/clamdscan --stdout -';
Control-D
exit