Ruleset problem/question
Julian Field
mailscanner at ecs.soton.ac.uk
Sun Mar 30 18:10:39 IST 2003
At 17:55 30/03/2003, you wrote:
>Am Sonntag, 30. März 2003 18:35 schrieben Sie:
> > At 16:08 30/03/2003, you wrote:
> > >---------- Weitergeleitete Nachricht ----------
> > >
> > > > >There, some rules are defined for several domains:
> > > > >
> > > > >- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> > > > >To: *@all-about-shift.com
> > > > >/opt/MailScanner/etc/rules/messages/deleted_bad_filename_message_rep
> > > > >ort. all-about-shift.com.txt To: *@all-about-shift.de
> > > > >/opt/MailScanner/etc/reports/de/deleted.filename.message.txt
> > > > >- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> > > > >
> > > > >
> > > > >The file for the first domain exists and is a customized version of
> > > > > the general version used as default in MailScanner. But when
> > > > > starting MailScanner, it reports the following error via Syslog:
> > > > >
> > > > >- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> > > > >Syntax error in line 1 of ruleset file
> > > > >/opt/MailScanner/etc/rules/deleted_bad_filename_message_report.rules
> > > > > for keyword deletedfilenamemessage
> > > > >- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> > > > >
> > > > >What am I missing? It looks quite perfect to me (at least....) ,-))
> > > >
> > > > My guess would be that your text editor split it over 2 lines. So it
> > > > is complaining that there is no filename on the first line.
> > >
> > >No, this is not the case. It is created via a script but I checked it
> > > too after your answer with a very wide terminal ,-) Can it be that the
> > > filename is too long or the overall line lenght is too long? I attached
> > > the file to this mail so you can check.
> >
> > It's a DOS text file, not a Unix text file.
>
>Sorry, I have to insist that it's a Unix file <gg>. It's created using Perl
>with "\n" linefeed (nothing else) and Linux (and I've checked the file from
>the mailing list too ,-)). Anyhow: I've a couple of other rule files which
>are created the same way and which work quite well, only the rule files
>with the file references don't work, so I think, it *might* be something
>regarding this file reference.
I just managed to reproduce your error by not creating the report file
referred to in the rules file. Are you sure the report files you referenced
all exist and are spelt correctly?
--
Julian Field
www.MailScanner.info
Professional Support Services at www.MailScanner.biz
MailScanner thanks transtec Computers for their support
More information about the MailScanner
mailing list