<div dir="ltr">There is a problem with MailScanner and the newer versions of perl. I have been able to correct it by:<div><br></div><div><div># ensure MailScanner works with newer versions of perl</div><div>sed -i &#39;s:#!/usr/bin/perl -I:#!/usr/bin/perl -U -I:g&#39; /usr/sbin/MailScanner</div>
</div><div><br></div><div><br></div><div style>In short, add the -U option. </div><div style><br></div><div style><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Apr 18, 2013 at 9:32 PM, Carlos Raśl Laguna <span dir="ltr">&lt;<a href="mailto:carlosla1987@gmail.com" target="_blank">carlosla1987@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div>Hi aim using mailscanner 4.84.5-4 on ubuntu 12.04.2 an after some check MailScanner --lint give no error back, however when i run in debug mode i get this</div>
<div><br></div><div>LibClamAV Error: cli_scanhtml: Can&#39;t create temporary directory /var/spool/MailScanner/incoming/SpamAssassin-Temp/fileZu9PiO/clamav-dfeb188c6d93ac33695b6db46175629e<br>
LibClamAV Error: cli_scanhtml: Can&#39;t create temporary directory /var/spool/MailScanner/incoming/SpamAssassin-Temp/fileZu9PiO/clamav-0973cd1b961c3f9d0c42a72a271a3579<br></div><div><br></div><div>plugin: eval failed: bayes: (in learn) locker: safe_lock: cannot create lockfile /var/lib/MailScanner/bayes.mutex: Permission denied<br>

plugin: eval failed: bayes: (in learn) locker: safe_lock: cannot create lockfile /var/lib/MailScanner/bayes.mutex: Permission denied<br></div><div><br></div><div>It looks like permission issue but no enteraly shure about that had change the user from where runnig clamav without any good outcome</div>

<div><br></div><div>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>
</div><div><br></div><div>Any help here would be really appreciated. Thanks for your time.  </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" 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><br clear="all"><div><br></div>-- <br><div dir="ltr"><div><div><br>--<br></div>Jerry Benton<br></div>Mailborder Systems<br><a href="http://www.mailborder.com" target="_blank">www.mailborder.com</a><br>
</div>
</div>