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 clear="all"><br>-- <br>Martin Hepworth<br>Oxford, UK<br><br><div class="gmail_quote">2009/7/17  <span dir="ltr">&lt;<a href="mailto:serejk@febras.net">serejk@febras.net</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); 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" target="_blank">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 &quot;require&quot;d. Make sure the last line is &quot;1;&quot; 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 &quot;require&quot;d. Make sure the last line is &quot;1;&quot; 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 &quot;require&quot;d. Make sure the last line is &quot;1;&quot; 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 &quot;Run As User&quot; and &quot;Run As Group&quot; 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 &quot;Permission denied&quot;. 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>
<font 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" 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></blockquote></div><br><br>