Custom config error

Glenn Steen glenn.steen at gmail.com
Mon Jan 8 17:33:58 CET 2007


On 08/01/07, Martin <martin.lyberg at gmail.com> wrote:
> Hi,
>
> I'm setting up a secondary MS, MailWatch, Postfix box for backup.
> Installed on Debian and when everything was installed and alla
> config-files were copied from old box i'm getting this in the log:
>
> Jan  8 17:04:52 piratefish2 MailScanner[5651]: Config: calling custom
> init function SQLBlacklist
> Jan  8 17:04:52 piratefish2 MailScanner[5651]: Starting up SQL Blacklist
> Jan  8 17:04:52 piratefish2 MailScanner[5651]: Could not use Custom
> Function code MailScanner::CustomConfig::InitSQLBlacklist, it could not
> be "eval"ed. Make sure the module is correct with perl -wc
> Jan  8 17:04:52 piratefish2 MailScanner[5651]: Config: calling custom
> init function MailWatchLogging
> Jan  8 17:04:52 piratefish2 MailScanner[5653]: Could not use Custom
> Function code MailScanner::CustomConfig::InitMailWatchLogging, it could
> not be "eval"ed. Make sure the module is correct with perl -wc
> Jan  8 17:04:52 piratefish2 MailScanner[5653]: Config: calling custom
> init function SQLWhitelist
> Jan  8 17:04:52 piratefish2 MailScanner[5653]: Starting up SQL Whitelist
> Jan  8 17:04:52 piratefish2 MailScanner[5653]: Could not use Custom
> Function code MailScanner::CustomConfig::InitSQLWhitelist, it could not
> be "eval"ed. Make sure the module is correct with perl -wc
> Jan  8 17:04:52 piratefish2 MailScanner[5651]: Started SQL Logging child
> Jan  8 17:04:52 piratefish2 MailScanner[5651]: Config: calling custom
> init function SQLWhitelist
> Jan  8 17:04:52 piratefish2 MailScanner[5651]: Starting up SQL Whitelist
> Jan  8 17:04:52 piratefish2 MailScanner[5651]: Could not use Custom
> Function code MailScanner::CustomConfig::InitSQLWhitelist, it could not
> be "eval"ed. Make sure the module is correct with perl -wc
>
> I've tried perl -wc on the files but it says syntax ok. Anyone knows
> whats wrong?
>
> Thank you
>
> / Martin
>
Hej Martin,

This is might be due to the postfix user (that you run MailScanner as)
not being able to read the MailWatch SQLBlackWhiteList.pm file, so
check that it can do that... Also, did you remember to set it up
(MySQL user/password etc)?

-- 
-- Glenn
email: glenn < dot > steen < at > gmail < dot > com
work: glenn < dot > steen < at > ap1 < dot > se


More information about the MailScanner mailing list