<div dir="ltr"><div>Actually this is a PVS openvz so no apparmor for me,at the moment i found this thread <br></div><div><a href="http://lists.mailscanner.info/pipermail/mailscanner/2011-November/098798.html">http://lists.mailscanner.info/pipermail/mailscanner/2011-November/098798.html</a></div>
<div><br></div><div>and as hi did i comentout: <strong>TempDir=$(mktemp) || { echo "$0: Cannot make name for temporary dir" >&2;<br>exit 1; }</strong></div><div><strong><br></strong></div><div> and add </div>
<div><br></div><div><strong>TempDir=$(mktemp -d ) || { echo "$0: Cannot make name for temporary dir" >&2; exit 1; }</strong></div><div><br></div><div>seems to workout for me too the queue amount is decreasing as we speak. Thanks</div>
<div> </div><div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/4/18 Steve Freegard <span dir="ltr"><<a href="mailto:steve.freegard@fsl.com" target="_blank">steve.freegard@fsl.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">How about AppArmour as you're on Ubuntu.<br>
<br>
sudo /etc/init.d/apparmor stop<br>
<br>
Does that fix it?<br>
<br>
Regards,<br>
Steve.<br>
<div class="im"><br>
<br>
On 18/04/13 21:57, Carlos Raśl Laguna wrote:<br>
> Did what you ask no difference do<br>
><br>
> #!/usr/bin/perl -U -I/usr/share/MailScanner/<br>
><br>
> an't call method "close" on an undefined value at<br>
> /usr/sbin/mailscanner_create_locks line 47.<br>
> Error: Attempt to create locks in /var/lock/MailScanner failed!<br>
> Can't set GID 33 at /usr/sbin/MailScanner line 1541.<br>
><br>
><br>
> 2013/4/18 Carlos Raśl Laguna <<a href="mailto:carlosla1987@gmail.com">carlosla1987@gmail.com</a><br>
</div>> <mailto:<a href="mailto:carlosla1987@gmail.com">carlosla1987@gmail.com</a>>><br>
<div class="im">><br>
> Did what you ask no difference do<br>
><br>
><br>
><br>
> 2013/4/18 Carlos Raśl Laguna <<a href="mailto:carlosla1987@gmail.com">carlosla1987@gmail.com</a><br>
</div>> <mailto:<a href="mailto:carlosla1987@gmail.com">carlosla1987@gmail.com</a>>><br>
<div class="im">><br>
> Thanks for the fast reply<br>
> all i get is<br>
><br>
> Can't call method "close" on an undefined value at<br>
> /usr/sbin/mailscanner_create_locks line 47.<br>
> Error: Attempt to create locks in /var/lock/MailScanner failed!<br>
> Can't set GID 33 at /usr/sbin/MailScanner line 1541.<br>
><br>
><br>
><br>
><br>
> 2013/4/18 Martin Hepworth <<a href="mailto:maxsec@gmail.com">maxsec@gmail.com</a><br>
</div>> <mailto:<a href="mailto:maxsec@gmail.com">maxsec@gmail.com</a>>><br>
<div><div class="h5">><br>
> Make youve turned off selinux<br>
><br>
> Also run the debug as the postfix user<br>
><br>
> Martin<br>
><br>
> On Thursday, 18 April 2013, Carlos Raśl Laguna wrote:<br>
><br>
><br>
> Hi aim using mailscanner 4.84.5-4 on ubuntu 12.04.2 an<br>
> after some check MailScanner --lint give no error back,<br>
> however when i run in debug mode i get this<br>
><br>
> LibClamAV Error: cli_scanhtml: Can't create temporary<br>
> directory<br>
> /var/spool/MailScanner/incoming/SpamAssassin-Temp/fileZu9PiO/clamav-dfeb188c6d93ac33695b6db46175629e<br>
> LibClamAV Error: cli_scanhtml: Can't create temporary<br>
> directory<br>
> /var/spool/MailScanner/incoming/SpamAssassin-Temp/fileZu9PiO/clamav-0973cd1b961c3f9d0c42a72a271a3579<br>
><br>
> plugin: eval failed: bayes: (in learn) locker:<br>
> safe_lock: cannot create lockfile<br>
> /var/lib/MailScanner/bayes.mutex: Permission denied<br>
> plugin: eval failed: bayes: (in learn) locker:<br>
> safe_lock: cannot create lockfile<br>
> /var/lib/MailScanner/bayes.mutex: Permission denied<br>
><br>
> It looks like permission issue but no enteraly shure<br>
> about that had change the user from where runnig clamav<br>
> without any good outcome<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>
><br>
> Any help here would be really appreciated. Thanks for<br>
> your time.<br>
><br>
><br>
><br>
> --<br>
> --<br>
> Martin Hepworth, CISSP<br>
> Oxford, UK<br>
><br>
> --<br>
> MailScanner mailing list<br>
> <a href="mailto:mailscanner@lists.mailscanner.info">mailscanner@lists.mailscanner.info</a><br>
</div></div>> <mailto:<a href="mailto:mailscanner@lists.mailscanner.info">mailscanner@lists.mailscanner.info</a>><br>
<div class="HOEnZb"><div class="h5">> <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>
><br>
><br>
><br>
><br>
><br>
<br>
<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>
</div></div></blockquote></div><br></div>