<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Posts on www.moshe-schmidt.de</title><link>https://www.moshe-schmidt.de/posts/</link><description>Recent content in Posts on www.moshe-schmidt.de</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><lastBuildDate>Tue, 27 Oct 2015 23:41:36 +0200</lastBuildDate><atom:link href="https://www.moshe-schmidt.de/posts/index.xml" rel="self" type="application/rss+xml"/><item><title>ClamAV "Permission denied": How to fix it</title><link>https://www.moshe-schmidt.de/posts/clamav-permission-denied-how-to-fix-it/</link><pubDate>Tue, 27 Oct 2015 23:41:36 +0200</pubDate><guid>https://www.moshe-schmidt.de/posts/clamav-permission-denied-how-to-fix-it/</guid><description>&lt;p&gt;You got a ClamAV &amp;ldquo;Permission denied&amp;rdquo; message from your mail server? Learn how to resolve the issue.&lt;/p&gt;
&lt;p&gt;The ClamAV &amp;ldquo;Permission denied&amp;rdquo; message&lt;/p&gt;
&lt;p&gt;I recently set up a new Debian GNU/Linux Server with an MySQL based mail setup using Postfix for SMTP. My Postfix server uses Amavis and ClamAV to scan for viruses. I encountered a problem where ClamAV reported &amp;ldquo;Permission denied&amp;rdquo; in my log file (by default /var/log/mail.log).&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;(!)run_av (ClamAV-clamd) FAILED - unexpected , output=&amp;#34;/var/lib/amavis/amavis &amp;#34; data-mce-bogus=&amp;#34;1&amp;#34;&amp;amp;gt;tmp/amavis-20151026T222741-20271-mdUXn8gF/parts: lstat() failed: Permission denied. ERROR\n&amp;#34;
(!)ClamAV-clamd av-scanner FAILED: CODE(0x4976fa8) unexpected ,output=&amp;#34;/var/lib/amavis/tmp/amavis-20151026T222741-20271-mdUXn8gF/parts: lstat() failed: Permission denied. ERROR\n&amp;#34; at (eval 96) line 905.
(!)WARN: all primary virus scanners failed, considering backups
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id="group-membership"&gt;Group membership&lt;/h2&gt;
&lt;p&gt;To resolve this issue you first have to ensure that the user running ClamAV (usually clamav) is a member of the amavis group.&lt;/p&gt;</description></item></channel></rss>