<div dir="ltr">Still i have the feeling we are talking about different things.<br><br>Clamav , postfix and Mailscanner all run as postfix user.<br><br>Now which part am i not making clear when i say that according to initial log entry , clamav was trying to create a folder in a file instead of creating a folder in a folder ???  Or at least this is what i understand and you are not pointing that i&#39;m understanding it wrong but you keep saying that it&#39;s a permission problem. I still don&#39;t understand how running clamav as a different user will make it try to create a folder in a file . <br>
I will also draw it below, just in case it&#39;s still not clear what i am reporting here (let&#39;s hope the formatting isn&#39;t lost)<br> /var/spool/MailScanner/incoming/SpamAssassin-Temp/tmp.vWQ4hixN67/clamav-497c230ffa4f39a4779ea7618dd8efa4<br>
<div>^       ^          ^                 ^                 ^                                      ^                   ^<br>|     folder       |              folder              |                                 file !!!!!!               |<br>
folder        
folder                          folder                                                    attempt to create this folder<br></div><br>So i am running Postfix, MailScanner and Clamscan as user and group postfix.<br><br># grep -i postfix MailScanner.conf | grep -v ^#<br>
Run As User = postfix<br>Run As Group = postfix<br>Incoming Queue Dir = /var/spool/postfix/hold<br>Outgoing Queue Dir = /var/spool/postfix/incoming<br>MTA = postfix<br>Incoming Work User = postfix<br>Incoming Work Group = postfix<br>
#<br><br><br><div class="gmail_quote">On Wed, Nov 9, 2011 at 10:52 PM, Jeremy McSpadden <span dir="ltr">&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 bgcolor="#FFFFFF"><div>So make sure your clamav is running as the postfix user. <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" target="_blank">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" target="_blank">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><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:&#39;Times New Roman&#39;, 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:&#39;Times New Roman&#39;, 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:&#39;Times New Roman&#39;, 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:&#39;Times New Roman&#39;, 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" target="_blank"><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:&#39;Times New Roman&#39;, 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"> : <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:&#39;Times New Roman&#39;, 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"> : <a>850-890-2543</a><br>

<b>Fax</b> : <a>850-254-2955</a></span></div></span>
</div>
<br></div><div><div><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:&#39;Times New Roman&#39;, 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:&#39;Times New Roman&#39;, 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:&#39;Times New Roman&#39;, 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:&#39;Times New Roman&#39;, 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" target="_blank"><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:&#39;Times New Roman&#39;, 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"> : <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:&#39;Times New Roman&#39;, 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"> : <a>850-890-2543</a><br>

<b>Fax</b> : <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&#39;t create temporary directory /var/spool/MailScanner/incoming/SpamAssassin-Temp/tmp.vWQ4hixN67/clamav-497c230ffa4f39a4779ea7618dd8efa4<br>
 <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&#39;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&#39;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" target="_blank">mailscanner@lists.mailscanner.info</a><br><a href="http://lists.mailscanner.info/mailman/listinfo/mailscanner" target="_blank">http://lists.mailscanner.info/mailman/listinfo/mailscanner</a><br>

<br>Before posting, read <a href="http://wiki.mailscanner.info/posting" target="_blank">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" target="_blank">mailscanner@lists.mailscanner.info</a><br><a href="http://lists.mailscanner.info/mailman/listinfo/mailscanner" target="_blank">http://lists.mailscanner.info/mailman/listinfo/mailscanner</a><br>

<br>Before posting, read <a href="http://wiki.mailscanner.info/posting" target="_blank">http://wiki.mailscanner.info/posting</a><br><br>Support MailScanner development - buy the book off the website! <br></blockquote></div>

<br></div></div></div><span class="HOEnZb"><font color="#888888">
</font></span></div><span class="HOEnZb"><font color="#888888">
<br>--<br>
MailScanner mailing list<br>
<a href="mailto:mailscanner@lists.mailscanner.info" target="_blank">mailscanner@lists.mailscanner.info</a><br>
<a href="http://lists.mailscanner.info/mailman/listinfo/mailscanner" target="_blank">http://lists.mailscanner.info/mailman/listinfo/mailscanner</a><br>
<br>
Before posting, read <a href="http://wiki.mailscanner.info/posting" target="_blank">http://wiki.mailscanner.info/posting</a><br>
<br>
Support MailScanner development - buy the book off the website!<br>
<br></font></span></blockquote></div><span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888">
</font></span></div></blockquote><span class="HOEnZb"><font color="#888888"><blockquote type="cite"><div><span>-- </span><br><span>MailScanner mailing list</span><br><span><a href="mailto:mailscanner@lists.mailscanner.info" target="_blank">mailscanner@lists.mailscanner.info</a></span><br>
<span><a href="http://lists.mailscanner.info/mailman/listinfo/mailscanner" target="_blank">http://lists.mailscanner.info/mailman/listinfo/mailscanner</a></span><br><span></span><br><span>Before posting, read <a href="http://wiki.mailscanner.info/posting" target="_blank">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>
</font></span></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" target="_blank">http://lists.mailscanner.info/mailman/listinfo/mailscanner</a><br>
<br>
Before posting, read <a href="http://wiki.mailscanner.info/posting" target="_blank">http://wiki.mailscanner.info/posting</a><br>
<br>
Support MailScanner development - buy the book off the website!<br>
<br></blockquote></div><br></div>