<p>Thank you for your advice. Now I`m trying to update to perl 5.10. :)</p>
<p>On Fri, 17 Jul 2009 12:33:09 +0100, Martin Hepworth <maxsec@gmail.com> wrote:</p>
<blockquote style="border-left: 2px solid #1010ff; padding-left: 5px; margin-left: 5px; width: 100%;"><!-- html ignored --><!-- head ignored --><!-- meta not allowed -->
<p>Hi<br /><br />this is a know issue with perkl 5.8.9 on quite a platforms.<br /><br />Go back to perl 5.8.8 and this will solve the problem<br /><br />-- <br />Martin Hepworth<br />Oxford, UK<br /><br /></p>
<div class="gmail_quote">2009/7/17 <span><<a href="mailto:serejk@febras.net">serejk@febras.net</a>></span><br />
<blockquote class="gmail_quote" style="border-left: 1px solid #cccccc; margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi!<br /> I`m having a problem with MailScanner installation. My environment:<br /> - FreeBSD 7.2-RELEASE<br /> - postfix-2.6.2_1,1<br /> - clamav-0.95.2<br /> - p5-Mail-SpamAssassin-3.2.5_4<br /> - perl 5.8.9<br /> - MailScanner-4.75.11<br /><br /> During installation I have tunning configuration files as it described in<br /><a href="http://www.mailscanner.info/postfix.html">http://www.mailscanner.info/postfix.html</a><br /> But starting the MailScanner I have got following logs in<br /> /var/log/maillog:<br /><br /> %date% %hostname% MailScanner[35039]: Could not use Custom Function code<br /> /usr/local/lib/MailScanner/MailScanner/CustomFunctions/LastSpam.pm, it<br /> could not be "require"d. Make sure the last line is "1;" and the module is<br /> correct with perl -wc (Error: Insecure dependency in require while running<br /> with -T switch at /usr/local/lib/MailScanner/MailScanner/Config.pm line<br /> 623.<br /> %date% %hostname% MailScanner[35039]: )<br /> %date% %hostname% MailScanner[35039]: Could not use Custom Function code<br /> /usr/local/lib/MailScanner/MailScanner/CustomFunctions/GenericSpamScanner.pm,<br /> it could not be "require"d. Make sure the last line is "1;" and the module<br /> is correct with perl -wc (Error: Insecure dependency in require while<br /> running with -T switch at /usr/local/lib/MailScanner/MailScanner/Config.pm<br /> line 623.<br /> %date% %hostname% MailScanner[35039]: )<br /> %date% %hostname% MailScanner[35039]: Could not use Custom Function code<br /> /usr/local/lib/MailScanner/MailScanner/CustomFunctions/CustomAction.pm, it<br /> could not be "require"d. Make sure the last line is "1;" and the module is<br /> correct with perl -wc (Error: Insecure dependency in require while running<br /> with -T switch at /usr/local/lib/MailScanner/MailScanner/Config.pm line<br /> 623.<br /><br /><br /> .... and the same for all files in<br /> /usr/local/lib/MailScanner/MailScanner/CustomFunctions/ directory.<br /> Searching through Google, I have found an answer:<br /> if perl script starts with different real and effective user (root and<br /> postfix in my case), perl enables taint mode automatically. Hmm.. I have<br /> set options "Run As User" and "Run As Group" to root - this made<br /> MailScanner to start without any errors in log. But when Mailscanner<br /> returns checked letter in postfix incoming directory with root uid,<br /> postfix/qmgr cannot work with it because of "Permission denied". Afterall,<br /> starting MailScanner with root privileges is not good idea, I think.<br /><br /> Any advices? What I have do wrong?<br /><br /> P.S. Starting perl with -U key provides more ugly messages in log. I think<br /> its wrong idea.<br /><span style="color: #888888;">--<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">http://lists.mailscanner.info/mailman/listinfo/mailscanner</a><br /><br /> Before posting, read <a href="http://wiki.mailscanner.info/posting">http://wiki.mailscanner.info/posting</a><br /><br /> Support MailScanner development - buy the book off the website!<br /></span></blockquote>
</div>
<br /><br /></blockquote>
<p> </p>