Adding the following rule to /etc/apparmor.d/usr.sbin.clamd resolves the problem apparently
/var/spool/MIMEDefang/** r, Scanning works: Aug 19 02:04:31 utest-nns32 mimedefang.pl[4544]: MDLOG,p7IN4UXO005515,virus,Eicar-Test-Signature,172.16.21.1,<gergelyi...@gmail.com>,<gi...@utest-nns32.narancs.net>,[TESTMAIL] eicar test mail Aug 19 02:04:31 utest-nns32 mimedefang.pl[4544]: Discarding because of virus Eicar-Test-Signature Aug 19 02:04:31 utest-nns32 mimedefang.pl[4544]: filter: p7IN4UXO005515: discard=1 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/829089 Title: clamd scanning mimedefang temp files blocked by apparmor To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/clamav/+bug/829089/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs