<div dir="ltr">I've tried that already, as well as changing permissions to 770 for /var/amavis/tmp/, <div>and  AllowSupplementaryGroups in clamd.conf is set to true.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">вт, 21 мая 2019 г. в 17:06, Dominic Raferd <<a href="mailto:dominic@timedicer.co.uk">dominic@timedicer.co.uk</a>>:<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"><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" target="_blank">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>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">С
          уважением,</span>
        <div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Азеев
          Александр</div>
      </div>
    
  


<br><span></span></div></div></div></div>