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

Markus Nilsson markus at markusoft.se
Thu Nov 17 09:24:04 GMT 2011


----- Original Message -----

> From: "Peter A.Nesterov" <peter at pele.spb.ru>
> To: mailscanner at lists.mailscanner.info
> Sent: torsdag, 17 nov 2011 9:52:18
> Subject: MailScanner[nnnn]: Could not use Custom Function code
> /usr/lib/MailScanner/...

> 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

Hi! 

Seems like there is a problem with a CustomFunction: 

Ruleset-from-Function.pm 

Have you written this yourself, or downloaded it from somewhere? (I don't immediately recognize it) 

It complains about write permissions, start by checking the Custom Function .pm file on the problematic line to see where it tries to create the tempfile(). 

/Markus 

> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.mailscanner.info/pipermail/mailscanner/attachments/20111117/3f699680/attachment.html


More information about the MailScanner mailing list