Odd error in logs
Glenn Steen
glenn.steen at GMAIL.COM
Wed Nov 9 08:52:55 GMT 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. ]
On 08/11/05, paddy <paddy at panici.net> wrote:
> On Tue, Nov 08, 2005 at 09:26:07AM -0500, Dave Filchak wrote:
> > Hello all,
> >
> > Over the past two weeks or so, after an update to almost the latest (
> > have not installed the very last release yet ) I have started to see the
> > following in my log reports:
> >
> > Your spam actions "/etc/mailscanner/rules/spamoptions.rules" looks
> > like a filename. If this is a ruleset filename, it must end in .rule or
> > .rules : 16 Time(s)
> >
> > This is odd because my rules file is named properly and in the right
> > place. Can anyone shed some light on this?
>
> Not sure that I can, but I'll try ...
>
> The relevant code reads something like:
>
> $actions = MailScanner::Config::Value(CONFIG_OPTION, $this);
>
> (where CONFIG_OPTION is one of hamactions highscorespamactions spamactions)
>
> .
> .
> .
>
> @actions = split(" ", $actions);
>
> return unless @actions;
>
> # If they have just specified a filename, then something is wrong
> if ($#actions==0 && $actions[0] =~ /\//) {
> MailScanner::Log::WarnLog('Your spam actions "%s" looks like a filename.' .
> ' If this is a ruleset filename, it must end in .rule or .rules',
> $actions[0]);
> $actions[0] = 'deliver';
> }
>
> So my wild guess is that Config::Value returns something like
> '/etc/mailscanner/rules/spamoptions.rules' (when what you wanted returned was inside there)
>
> At which point I'm wondering:
>
> grep -i ^[^#]*actions MailScanner.conf
>
> An example of ruleset configuration might look like:
>
> Virus Scanning = %rules-dir%/Virus.Scanning.rules
>
> I even wonder whether you have a '/etc/mailscanner/' instead of '/etc/Mailscanner/' ?
>
> If its failing to load you might see WarnLog("Cannot open filename-rules file %s, skipping"
>
> I get kind of dizzy when I grep "\$isrules =" Config.pm
>
> But that's all I got right now.
>
> Any help ?
>
> Regards,
> Paddy
> --
> Perl 6 will give you the big knob. -- Larry Wall
I haven't checked *anything*, just thinking along... Might the
spamoptions.rules filename contain "embedded non-printable chars"? Or
might it lack read perms for the user MS is running as?
--
-- Glenn
email: glenn < dot > steen < at > gmail < dot > com
work: glenn < dot > steen < at > ap1 < dot > se
------------------------ 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