MailScanner[nnnn]: Could not use Custom Function code /usr/lib/MailScanner/...

Martin Hepworth maxsec at gmail.com
Thu Nov 17 11:15:47 GMT 2011


make sure the permission on the  folders for quarantine/ Incoming work
dir/ SpamAssassin
Cache Database File etc  allow Postfix to write

 su to postfix and run mailScanner in Debug, you'll be able to find out
what it's trying to do in more detail to findout where you've not got the
permissions correct


-- 
Martin Hepworth
Oxford, UK


On 17 November 2011 08:52, Peter A.Nesterov <peter at pele.spb.ru> wrote:

>  Hi,
>
> I've just implemented MailScanner 4.84.3 on CentOS 5.7 x64_86 with Postfix
> 2.3.3, spamassassin 3.3.1, ClamAV 0.97.2, Perl 5.8.8.
>
> I followed this guide to setting it up
>
> http://www.linuxmail.info/how-to-install-mailscanner-centos-5/
>
> Everything works,  but I see some error messages in maillog:
>
> ...
> Nov 15 12:45:17 mail MailScanner[3227]: MailScanner E-Mail Virus Scanner
> version 4.84.3 starting...
> Nov 15 12:45:17 mail MailScanner[3227]: Could not use Custom Function code
> /usr/lib/MailScanner/MailScanner/CustomFunctions/Ruleset-from-Function.pm,
> it could not be "require"d. Make sure the last line is "1;" and the module
> is correct with perl -wc (Error: Error in tempfile() using
> MailScanner.XXXXXX: Parent directory (.) is not writable
> Nov 15 12:45:17 mail MailScanner[3227]: at
> /usr/lib/MailScanner/MailScanner/CustomFunctions/Ruleset-from-Function.pm
> line 34
> Nov 15 12:45:17 mail MailScanner[3227]: Compilation failed in require at
> /usr/lib/MailScanner/MailScanner/Config.pm line 760.
> Nov 15 12:45:17 mail MailScanner[3227]: )
> Nov 15 12:45:17 mail MailScanner[3227]: Reading configuration file
> /etc/MailScanner/MailScanner.conf
> ...
>
> Any suggestions?
>
> Cheers,
> Peter
>
>
> --
> This message has been scanned for viruses and
> dangerous content by *MailScanner* <http://www.mailscanner.info/>, and is
> believed to be clean.
>
> --
> MailScanner mailing list
> 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!
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.mailscanner.info/pipermail/mailscanner/attachments/20111117/67d850fc/attachment.html


More information about the MailScanner mailing list