The problem is caused by incorrect permissions on the directories

/var/spool/exim4
/var/spool/exim4/scan

and incorrect apparmor settings, as described here:

http://superuser.com/questions/344003/exim-clamav-file-access-error

One way to solve this problem would be to modify the exim4 and clamav-
daemon package installation scripts as follows:

In the exim4 installation script:

1. Create the group exim-scan, if it doesn't already exist.

2. Change the group of the two directories listed above to exim-scan.
(Leave the owner as it is, Debian-exim.)

3. Set the group execute bit (g+s) on the two directories listed above.

In the clamav-daemon package installation script:

1. Create the group exim-scan, if it doesn't already exist.

2. Add the clamav user to the exim-scan group.

3. Add this line to /etc/apparmor.d/usr.sbin.clamd:

   /var/spool/exim4/scan/** r,

Make a similar change to other email virus scanners that can be
integrated with exim, if any.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/708395

Title:
  clamdscan can't scan anything

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/clamav/+bug/708395/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to