Odd error in logs
paddy
paddy at PANICI.NET
Tue Nov 8 19:10:44 GMT 2005
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
------------------------ 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