Andrew Colin Kissa <andrew@...> writes: > > > On 08 Nov 2011, at 10:07 AM, Michal Weinfurtner wrote: > > > I meant, even though i ran baruwa-admin initconfig, MailScanner won't start due > > to SQL Quick Peek query defined in baruwa.conf file returns empty result > > due > > scanner_config table is empty. > > > > Does it means that i have to fill up scanner_config table manualy ? > > > > MailScanner error message looks like this: > > # MailScanner --lint --debug > > Trying to setlogsock(unix) > > > > Reading configuration file /etc/MailScanner/MailScanner.conf > > Reading configuration file /etc/MailScanner/conf.d/baruwa.conf > > Reading ruleset htmlsigs for keyword inlinehtmlsig > > Can't use an undefined value as an ARRAY reference at > > /usr/share/MailScanner//MailScanner/Config.pm line 2588, <DATA> line 502. > > Seems like you did not run the migration commands. htmlsigs is a database > view that is created when you run the migrations for the config module.
I ran migration and i see that database view defined and it returns one line. The problem, why MysqlScanner won't start is, that this line in Config.pm file my($rows) = MailScanner::ConfigSQL::ReadRuleset($rulesetname); returns undef value In function ReadRuleset defined in ConfigSQL.pm i see this return undef if $disabled; and $disabled is 1 which means that ReadRuleset returns undef value. It is due QuickPeek function from ConfigSQL.pm returns undef too and sets $disabled to 1, due MailScanner::Config::QuickPeek($file,'SQLQuickPeek') returns undef too. It looks like loop ? Well, I see no light at the end of the tunnel :-( Maybe it is a problem of MailScanner code ? Thank you for patience _______________________________________________ Keep Baruwa FREE - http://pledgie.com/campaigns/12056

