<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Arial; font-size: 10pt; color: #000000'><hr id="zwchr"><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px; color: rgb(0, 0, 0); font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;"><b>From: </b>"Peter A.Nesterov" <peter@pele.spb.ru><br><b>To: </b>mailscanner@lists.mailscanner.info<br><b>Sent: </b>torsdag, 17 nov 2011 9:52:18<br><b>Subject: </b>MailScanner[nnnn]: Could not use Custom Function code /usr/lib/MailScanner/...<br><br>
<p style="margin-bottom: 0cm;">Hi,<br>
</p>
<p style="margin-bottom: 0cm;">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.</p>
<p style="margin-bottom: 0cm;">I followed this guide to setting
it up <br>
</p>
<p style="margin-bottom: 0cm;"><a class="moz-txt-link-freetext" href="http://www.linuxmail.info/how-to-install-mailscanner-centos-5/" target="_blank">http://www.linuxmail.info/how-to-install-mailscanner-centos-5/</a>
<br>
</p>
<p style="margin-bottom: 0cm;">Everything works, but I see some
error messages in maillog: <br>
</p>
<p id="DWT259" style="margin-bottom: 0cm;">...<br>
Nov 15 12:45:17 mail MailScanner[3227]:
MailScanner E-Mail Virus Scanner version 4.84.3 starting... <br>
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 <br>
Nov
15 12:45:17 mail MailScanner[3227]: at
/usr/lib/MailScanner/MailScanner/CustomFunctions/Ruleset-from-Function.pm
line
34 <br></p></blockquote>Hi!<br><br>Seems like there is a problem with a CustomFunction: <br><br>Ruleset-from-Function.pm<br><br>Have you written this yourself, or downloaded it from somewhere? (I don't immediately recognize it)<br><br>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().<br><br>/Markus<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px; color: rgb(0, 0, 0); font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;"><p style="margin-bottom: 0cm;">
Nov 15 12:45:17 mail MailScanner[3227]: Compilation
failed in require at /usr/lib/MailScanner/MailScanner/Config.pm
line
760. <br>
Nov 15 12:45:17 mail MailScanner[3227]: ) <br>
Nov 15
12:45:17 mail MailScanner[3227]: Reading configuration file
/etc/MailScanner/MailScanner.conf<br>
...<br>
</p>
<p style="margin-bottom: 0cm;">Any suggestions?<br>
</p>
<p style="margin-bottom: 0cm;">Cheers,<br>
Peter<br>
</p>
<title></title>
<style>
        <!--
                @page { size: 21cm 29.7cm; margin: 2cm }
                P { margin-bottom: 0.21cm }
        -->
        </style>
<pre class="moz-signature"></pre></blockquote></div></body></html>