Comment 3 for bug 487631

Revision history for this message
Imre Gergely (cemc) wrote :

Hi

This is actually not a bug. Please see this bugreport to better understand what's going on:

https://bugs.launchpad.net/ubuntu/+source/clamav/+bug/450250

In short: clamdscan uses clamav-daemon to scan for files. When you run 'clamdscan /path/to/file', in the background it just 'orders' clamav-daemon to open that file and scan it.
Because of Apparmor, clamav-daemon doesn't have the read permissions to open any file in any random directory. This _could_ be the problem in your case.

You may have to adjust clamav daemon's apparmor profile to give permissions to qmail's temporary folders (in which the messages are scanned). Look for apparmor messages in the logfile (usually you do a grep for 'audit' in /var/log/messages).

Please update this bugreport if you have problems, I will mark it as Incomplete for now.