To enable clamscan instead of the default antivir, edit src/conf-scancmd, and follow the directions in that file, so qscanq-stdin will be compiled to invoke clamscan instead of run-antivir.
Configure clamscan to update itself at least once per day using freshclam. It's your responsibility to make sure your virus definitions are up to date.
If you use clamuko to csan files when they are opened, you MUST configure it ignore the directory in conf-spool. You should also configure if to ignore qmail's queue, where it will just slow email down transfer. The following lines are recommended in /etc/clamav.conf, assuming default settings are used for qscanq:
ClamukoExcludePath /var/qmail/avscan/root/scanq ClamukoExcludePath /var/qmail/queue ClamukoExcludePath /tmp
If you use clamuko and don't disable scanning of the folder in conf-spool, then qscanq will NOT WORK. Clamuko will block clamscan from opening infected files, which will cause them to be ignored, and the email will be accepted as uninfected.
