Problem with permissions

mog lists at elasticmind.net
Fri Jul 17 12:50:31 IST 2009


Hi,

Downgrading ports is a real pain. A better solution is to upgrade your 
perl port to version 5.10.x or whatever it is now. A suitable upgrade 
procedure is documented in /usr/ports/UPDATING.

Regards,
mog


Martin Hepworth wrote:
> Hi
>
> this is a know issue with perkl 5.8.9 on quite a platforms.
>
> Go back to perl 5.8.8 and this will solve the problem
>
> -- 
> Martin Hepworth
> Oxford, UK
>
> 2009/7/17 <serejk at febras.net <mailto:serejk at febras.net>>
>
>     Hi!
>     I`m having a problem with MailScanner installation. My environment:
>      - FreeBSD 7.2-RELEASE
>      - postfix-2.6.2_1,1
>      - clamav-0.95.2
>      - p5-Mail-SpamAssassin-3.2.5_4
>      - perl 5.8.9
>      - MailScanner-4.75.11
>
>     During installation I have tunning configuration files as it
>     described in
>     http://www.mailscanner.info/postfix.html
>     But starting the MailScanner I have got following logs in
>     /var/log/maillog:
>
>     %date% %hostname% MailScanner[35039]: Could not use Custom
>     Function code
>     /usr/local/lib/MailScanner/MailScanner/CustomFunctions/LastSpam.pm, it
>     could not be "require"d. Make sure the last line is "1;" and the
>     module is
>     correct with perl -wc (Error: Insecure dependency in require while
>     running
>     with -T switch at /usr/local/lib/MailScanner/MailScanner/Config.pm
>     line
>     623.
>     %date% %hostname% MailScanner[35039]: )
>     %date% %hostname% MailScanner[35039]: Could not use Custom
>     Function code
>     /usr/local/lib/MailScanner/MailScanner/CustomFunctions/GenericSpamScanner.pm,
>     it could not be "require"d. Make sure the last line is "1;" and
>     the module
>     is correct with perl -wc (Error: Insecure dependency in require while
>     running with -T switch at
>     /usr/local/lib/MailScanner/MailScanner/Config.pm
>     line 623.
>     %date% %hostname% MailScanner[35039]: )
>     %date% %hostname% MailScanner[35039]: Could not use Custom
>     Function code
>     /usr/local/lib/MailScanner/MailScanner/CustomFunctions/CustomAction.pm,
>     it
>     could not be "require"d. Make sure the last line is "1;" and the
>     module is
>     correct with perl -wc (Error: Insecure dependency in require while
>     running
>     with -T switch at /usr/local/lib/MailScanner/MailScanner/Config.pm
>     line
>     623.
>
>
>     .... and the same for all files in
>     /usr/local/lib/MailScanner/MailScanner/CustomFunctions/ directory.
>     Searching through Google, I have found an answer:
>     if perl script starts with different real and effective user (root and
>     postfix in my case), perl enables taint mode automatically. Hmm..
>     I have
>     set options "Run As User" and "Run As Group" to root - this made
>     MailScanner to start without any errors in log. But when Mailscanner
>     returns checked letter in postfix incoming directory with root uid,
>     postfix/qmgr cannot work with it because of "Permission denied".
>     Afterall,
>     starting MailScanner with root privileges is not good idea, I think.
>
>     Any advices? What I have do wrong?
>
>     P.S. Starting perl with -U key provides more ugly messages in log.
>     I think
>     its wrong idea.
>     --
>     MailScanner mailing list
>     mailscanner at lists.mailscanner.info
>     <mailto:mailscanner at lists.mailscanner.info>
>     http://lists.mailscanner.info/mailman/listinfo/mailscanner
>
>     Before posting, read http://wiki.mailscanner.info/posting
>
>     Support MailScanner development - buy the book off the website!
>
>
>


More information about the MailScanner mailing list