Problem with Custom Functions

Dennis Willson taz at TAZ-MANIA.COM
Sun Oct 2 08:16:30 IST 2005


    [ The following text is in the "ISO-8859-1" character set. ]
    [ Your display is set for the "US-ASCII" character set.  ]
    [ Some characters may be displayed incorrectly. ]

I'm have a problem with some custom functions. I'm extending MailWatch
and after adding a new perl module which works perfectly by itself. Seems
to cause the SQLBlackWhite.pm functions to fail with the error message:

Oct  2 00:10:07 smtp MailScanner[9596]: MailScanner E-Mail Virus Scanner
version 4.44.6 starting...
Oct  2 00:10:08 smtp MailScanner[9596]: Config: calling custom init
function SQLSpamScores
Oct  2 00:10:08 smtp MailScanner[9596]: Read 4 Spam entries
Oct  2 00:10:08 smtp MailScanner[9596]: Config: calling custom init
function SQLNoScan
Oct  2 00:10:08 smtp MailScanner[9596]: Read 6 No Spam Scan entries
Oct  2 00:10:08 smtp MailScanner[9596]: Config: calling custom init
function SQLBlacklist
Oct  2 00:10:08 smtp MailScanner[9596]: Starting up SQL Blacklist
Oct  2 00:10:08 smtp MailScanner[9596]: Could not use Custom Function
code MailScanner::CustomConfig::InitSQLBlacklist, it could not be
"eval"ed. Make sure the module is correct with perl -wc
Oct  2 00:10:08 smtp MailScanner[9596]: Config: calling custom init
function MailWatchLogging
Oct  2 00:10:08 smtp MailScanner[9596]: Started SQL Logging child
Oct  2 00:10:08 smtp MailScanner[9596]: Config: calling custom init
function SQLHighSpamScores
Oct  2 00:10:08 smtp MailScanner[9596]: Read 3 high Spam entries
Oct  2 00:10:08 smtp MailScanner[9596]: Config: calling custom init
function SQLWhitelist
Oct  2 00:10:08 smtp MailScanner[9596]: Starting up SQL Whitelist
Oct  2 00:10:08 smtp MailScanner[9596]: Could not use Custom Function
code MailScanner::CustomConfig::InitSQLWhitelist, it could not be
"eval"ed. Make sure the module is correct with perl -wc

When I run: perl -wc SQLBlackWhiteList.pm  I get: SQLBlackWhiteList.pm
syntax OK

I was running the SQLBlackWhiteList just fine prior to adding my module
(which again runs just fine itself). My module must be interfereing with
the SQLBlackWhiteList module somehow. I just don't know how.....

Thanks for any help
Dennis


------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the Wiki (http://wiki.mailscanner.info/)
and the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).

Support MailScanner development - buy the book off the website!




More information about the MailScanner mailing list