<div dir="ltr">Ok,<br>I don't know the innerworkings of Mailscanner but for me it looks like /var/spool/MailScanner/<div dir="ltr">incoming/SpamAssassin-Temp/tmp.vWQ4hixN67 is a file and clamav expects it to be a folder.<br>
</div><br><br><div class="gmail_quote">On Wed, Nov 9, 2011 at 3:36 PM, Jeremy McSpadden <span dir="ltr"><<a href="mailto:jeremy@fluxlabs.net">jeremy@fluxlabs.net</a>></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">Looks more like a permissions issue than a bug<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" 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:'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"> : <a href="tel:850-588-4626" value="+18505884626" target="_blank">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"> : <a href="tel:850-890-2543" value="+18508902543" target="_blank">850-890-2543</a><br>
<b>Fax</b> : <a href="tel:850-254-2955" value="+18502542955" target="_blank">850-254-2955</a></span></div></span>
</div>
<br><div><div><div class="h5"><div>On Nov 9, 2011, at 8:19 AM, Alexandru Ionica wrote:</div><br></div></div><blockquote type="cite"><div><div class="h5"><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>
<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 "$0: Cannot make name for temporary dir" >&2; exit 1; }<br>
to <br>TempDir=$(mktemp -d --tmpdir=/var/spool/MailScanner/clamav) || { echo "$0: Cannot make name for temporary dir" >&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></div></div><span class="HOEnZb"><font color="#888888">
-- <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></font></span></blockquote>
</div><br>
</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>