pavelmc/sof1u

Troubles with amavisd and clamavd integration

Closed this issue · 1 comments

If you are seeing this in your logs you are affected by this bug:

Nov 29 19:50:21 mx1 amavis[10169]: (10169-01) (!)run_av (ClamAV-clamd) FAILED - unexpected , output="/var/lib/amavis/tmp/amavis-20171129T195021-10169-YPOyGWOi/parts: lstat() failed: Permission denied. ERROR\n"
Nov 29 19:50:21 mx1 amavis[10169]: (10169-01) (!)ClamAV-clamd av-scanner FAILED: CODE(0x4352a28) unexpected , output="/var/lib/amavis/tmp/amavis-20171129T195021-10169-YPOyGWOi/parts: lstat() failed: Permission denied. ERROR\n" at (eval 101) line 905.
Nov 29 19:50:21 mx1 amavis[10169]: (10169-01) (!)WARN: all primary virus scanners failed, considering backups

The so far this bug is confirmed and reported only in Ubuntu 16.04 LTS, the fix is easy. If you have installed this software before December 1st 2017, the patch is trivial, just run this on console as root:

chmod -R 775 /var/lib/amavis/tmp

That's all, restart your amavis/clamav daemons or the entire PC and you are done.

From that date the fix is covered on the install process.

Cheers

Closed as it was patched in commit 1c069fb