clamav-scan fails because of missing temp-file

Frank Grötzner frank at unforgotten.de
Sat Jan 30 19:35:18 CET 2016


Hi,

I'm trying to setup amavis in a docker container connecting to clamav 
over tcp in another docker container. This works so far, but I have some 
strange problems with amavis and the files in its tmp-directory.

Amavis-Version:
root at amavis-34crr:~# dpkg -l | grep amavis
ii  amavisd-new                  1:2.10.1-1

on a Debian 8

As you can see in the log here: http://nopaste.linux-dev.org/?936356
amavis creates the temp-dir in line 215, issues a new files named p001 
in line 271 and does some work on it in the following lines. As I traced 
with a
"cd /var/lib/amavis/tmp; while true; do find; done" that file actually 
exists for some time:
.
.
.
./amavis-20160130T182734-00010-n2T4BbZG
./amavis-20160130T182734-00010-n2T4BbZG/parts
./amavis-20160130T182734-00010-n2T4BbZG/email.txt
(...)
.
./amavis-20160130T182734-00010-n2T4BbZG
./amavis-20160130T182734-00010-n2T4BbZG/parts
./amavis-20160130T182734-00010-n2T4BbZG/parts/p001
./amavis-20160130T182734-00010-n2T4BbZG/email.txt
(...)
.
./amavis-20160130T182734-00010-n2T4BbZG
./amavis-20160130T182734-00010-n2T4BbZG/parts
./amavis-20160130T182734-00010-n2T4BbZG/email.txt




... but then disappears. In line 336 amavis fails to send the files to 
clamav, because they are no longer there. :-/

Last strange thing: In line 435 the directory gets stripped - but in 
fact it stays in the file system:

root at amavis-34crr:~# ls -l /var/lib/amavis/tmp/
total 4
drwxr-x--- 3 amavis amavis 4096 Jan 30 18:27 
amavis-20160130T182734-00010-n2T4BbZG
root at amavis-34crr:~#


Any ideas on this?!

Best regards,
Frank


More information about the amavis-users mailing list