<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-size:small"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 21 May 2019 at 14:54, Alexander Azeev <<a href="mailto:artang89@gmail.com">artang89@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello, I have a problem with clamd not being able to scan mail properly.<br>In the amavis log there are messages like:<br><br>run_av (ClamAV-clamd) result: /var/amavis/tmp/amavis-20190518T065844-01954-dOjV4CBP/parts: lstat() failed: Permission denied. ERROR\n/var/amavis/tmp/amavis-20190518T065844-01954-dOjV4CBP/parts: OK\n<br>run_av (ClamAV-clamd): CLEAN<br>run_av (ClamAV-clamd) result: clean<br><br>So it passes everything as CLEAN, even the EICAR test virus.<br>It seems to be a permissions issue.<br>I used this article to check my settings <a href="https://www.moshe-schmidt.de/linux/clamav-permission-denied-how-to-fix-it/" target="_blank">https://www.moshe-schmidt.de/linux/clamav-permission-denied-how-to-fix-it/</a>,<br>but everything seems to be correct.<div dir="ltr"><div dir="ltr"><br></div></div></div></blockquote><div><br></div><div style="font-size:small" class="gmail_default">Try adding user amavis to group clamav (as well as adding user clamav to group amavis, which I guess you already did):<br></div><div style="font-size:small" class="gmail_default"># adduser amavis clamav</div></div></div>