<div dir="ltr">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>