<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body bgcolor="#FFFFFF"><div>So make sure your clamav is running as the postfix user.&nbsp;<br><br><div><br></div><div>--</div><div>Jeremy McSpadden</div></div><div><br>On Nov 9, 2011, at 3:51 PM, &quot;Alexandru Ionica&quot; &lt;<a href="mailto:alexandru.ionica@gmail.com">alexandru.ionica@gmail.com</a>&gt; wrote:<br><br></div><div></div><blockquote type="cite"><div><div>its postfix<br><br><div class="gmail_quote">On Wed, Nov 9, 2011 at 4:24 PM, Jeremy McSpadden <span>&lt;<a href="mailto:jeremy@fluxlabs.net">jeremy@fluxlabs.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div style="word-wrap:break-word">Can you verify which user is running clamav ? It should be the same user thats running your MTA<div><div class="im"><br><div>
<span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium"><div style="margin-top:0in;margin-right:0in;margin-bottom:0.0001pt;margin-left:0in;font-size:12pt;font-family:'Times New Roman', serif">
<span style="font-size:10pt;color:black;font-family:Calibri, sans-serif">--<u></u><u></u></span></div><div style="margin-top:0in;margin-right:0in;margin-bottom:0.0001pt;margin-left:0in;font-size:12pt;font-family:'Times New Roman', serif">
<span style="font-size:10pt;color:black;font-family:Calibri, sans-serif">Jeremy McSpadden<u></u><u></u></span></div><div style="margin-top:0in;margin-right:0in;margin-bottom:0.0001pt;margin-left:0in;font-size:12pt;font-family:'Times New Roman', serif">
<span style="font-size:10pt;color:black;font-family:Calibri, sans-serif">Flux Labs, Inc<u></u><u></u></span></div><div style="margin-top:0in;margin-right:0in;margin-bottom:0.0001pt;margin-left:0in;font-size:12pt;font-family:'Times New Roman', serif">
<span style="font-size:10pt;color:rgb(31, 73, 125);font-family:Calibri, sans-serif"><a href="http://www.fluxlabs.net/" style="color:blue;text-decoration:underline"><span style="color:rgb(31, 73, 125)">http://www.fluxlabs.net</span></a><br>
Endless Solutions<u></u><u></u></span></div><div style="margin-top:0in;margin-right:0in;margin-bottom:0.0001pt;margin-left:0in;font-size:12pt;font-family:'Times New Roman', serif"><b><span style="font-size:10pt;color:rgb(125, 125, 125);font-family:Calibri, sans-serif">Office</span></b><span style="font-size:10pt;color:rgb(125, 125, 125);font-family:Calibri, sans-serif">&nbsp;: <a>850-588-4626</a></span><span style="font-size:11pt;color:rgb(125, 125, 125);font-family:Calibri, sans-serif"><u></u><u></u></span></div>
<div style="margin-top:0in;margin-right:0in;margin-bottom:0.0001pt;margin-left:0in;font-size:12pt;font-family:'Times New Roman', serif"><b><span style="font-size:10pt;color:rgb(125, 125, 125);font-family:Calibri, sans-serif">Cell</span></b><span style="font-size:10pt;color:rgb(125, 125, 125);font-family:Calibri, sans-serif">&nbsp;: <a>850-890-2543</a><br>
<b>Fax</b>&nbsp;: <a>850-254-2955</a></span></div></span>
</div>
<br></div><div><div class="h5"><div><div>On Nov 9, 2011, at 8:36 AM, Jeremy McSpadden wrote:</div><br><blockquote>
<div style="word-wrap:break-word">Looks more like a permissions issue than a bug<br><div>
<span style="border-collapse:separate;font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium"><div style="margin-top:0in;margin-right:0in;margin-bottom:0.0001pt;margin-left:0in;font-size:12pt;font-family:'Times New Roman', serif">
<span style="font-size:10pt;color:black;font-family:Calibri, sans-serif">--</span></div><div style="margin-top:0in;margin-right:0in;margin-bottom:0.0001pt;margin-left:0in;font-size:12pt;font-family:'Times New Roman', serif">
<span style="font-size:10pt;color:black;font-family:Calibri, sans-serif">Jeremy McSpadden</span></div><div style="margin-top:0in;margin-right:0in;margin-bottom:0.0001pt;margin-left:0in;font-size:12pt;font-family:'Times New Roman', serif">
<span style="font-size:10pt;color:black;font-family:Calibri, sans-serif">Flux Labs, Inc</span></div><div style="margin-top:0in;margin-right:0in;margin-bottom:0.0001pt;margin-left:0in;font-size:12pt;font-family:'Times New Roman', serif">
<span style="font-size:10pt;color:rgb(31, 73, 125);font-family:Calibri, sans-serif"><a href="http://www.fluxlabs.net/" style="color:blue;text-decoration:underline"><span style="color:rgb(31, 73, 125)">http://www.fluxlabs.net</span></a><br>
Endless Solutions</span></div><div style="margin-top:0in;margin-right:0in;margin-bottom:0.0001pt;margin-left:0in;font-size:12pt;font-family:'Times New Roman', serif"><b><span style="font-size:10pt;color:rgb(125, 125, 125);font-family:Calibri, sans-serif">Office</span></b><span style="font-size:10pt;color:rgb(125, 125, 125);font-family:Calibri, sans-serif">&nbsp;: <a>850-588-4626</a></span><span style="font-size:11pt;color:rgb(125, 125, 125);font-family:Calibri, sans-serif"></span></div>
<div style="margin-top:0in;margin-right:0in;margin-bottom:0.0001pt;margin-left:0in;font-size:12pt;font-family:'Times New Roman', serif"><b><span style="font-size:10pt;color:rgb(125, 125, 125);font-family:Calibri, sans-serif">Cell</span></b><span style="font-size:10pt;color:rgb(125, 125, 125);font-family:Calibri, sans-serif">&nbsp;: <a>850-890-2543</a><br>
<b>Fax</b>&nbsp;: <a>850-254-2955</a></span></div></span>
</div>
<br><div><div>On Nov 9, 2011, at 8:19 AM, Alexandru Ionica wrote:</div><br><blockquote><div>Hello,<br><br>MailScanner 4.84.3-1 fresh install running on Centos-6 x86_64 .<br>Running MailScanner --debug-sa i noticed the following:<br>
12:54:12 LibClamAV Error: cli_scanhtml: Can't create temporary directory /var/spool/MailScanner/incoming/SpamAssassin-Temp/tmp.vWQ4hixN67/clamav-497c230ffa4f39a4779ea7618dd8efa4<br>
&nbsp;<br>/var/spool/MailScanner/incoming/SpamAssassin-Temp/tmp.vWQ4hixN67 is a file and not a directory so this is why it was caused.<br><br>I looked at /usr/lib/MailScanner/clamav-wrapper and changed <br>TempDir=$(mktemp) || { echo &quot;$0: Cannot make name for temporary dir&quot; &gt;&amp;2; exit 1; }<br>

to <br>TempDir=$(mktemp -d --tmpdir=/var/spool/MailScanner/clamav) || { echo &quot;$0: Cannot make name for temporary dir&quot; &gt;&amp;2; exit 1; }<br><br>I presume the --tmpdir wouldn't have been needed but i wanted to also move it do a different folder.<br>

Anyway the cause seems to be the lack of the -d flag to mktemp so mktemp creates a file instead of a folder.<br><br>After doing the above change i don't see any more errors or warnings from clamav.<br><br>Regards.<br>

<br></div>
-- <br>MailScanner mailing list<br><a href="mailto:mailscanner@lists.mailscanner.info">mailscanner@lists.mailscanner.info</a><br><a href="http://lists.mailscanner.info/mailman/listinfo/mailscanner">http://lists.mailscanner.info/mailman/listinfo/mailscanner</a><br>
<br>Before posting, read <a href="http://wiki.mailscanner.info/posting">http://wiki.mailscanner.info/posting</a><br><br>Support MailScanner development - buy the book off the website! <br></blockquote></div>
<br>
</div>
-- <br>MailScanner mailing list<br><a href="mailto:mailscanner@lists.mailscanner.info">mailscanner@lists.mailscanner.info</a><br><a href="http://lists.mailscanner.info/mailman/listinfo/mailscanner">http://lists.mailscanner.info/mailman/listinfo/mailscanner</a><br>
<br>Before posting, read <a href="http://wiki.mailscanner.info/posting">http://wiki.mailscanner.info/posting</a><br><br>Support MailScanner development - buy the book off the website! <br></blockquote></div>
<br></div></div></div>
</div>
<br>--<br>
MailScanner mailing list<br>
<a href="mailto:mailscanner@lists.mailscanner.info">mailscanner@lists.mailscanner.info</a><br>
<a href="http://lists.mailscanner.info/mailman/listinfo/mailscanner">http://lists.mailscanner.info/mailman/listinfo/mailscanner</a><br>
<br>
Before posting, read <a href="http://wiki.mailscanner.info/posting">http://wiki.mailscanner.info/posting</a><br>
<br>
Support MailScanner development - buy the book off the website!<br>
<br></blockquote></div><br></div>
</div></blockquote><blockquote type="cite"><div><span>-- </span><br><span>MailScanner mailing list</span><br><span><a href="mailto:mailscanner@lists.mailscanner.info">mailscanner@lists.mailscanner.info</a></span><br><span><a href="http://lists.mailscanner.info/mailman/listinfo/mailscanner">http://lists.mailscanner.info/mailman/listinfo/mailscanner</a></span><br><span></span><br><span>Before posting, read <a href="http://wiki.mailscanner.info/posting">http://wiki.mailscanner.info/posting</a></span><br><span></span><br><span>Support MailScanner development - buy the book off the website! </span><br></div></blockquote>
</body></html>