Ruleset problem/question

Julian Field mailscanner at ecs.soton.ac.uk
Sun Mar 30 15:52:31 IST 2003


At 15:46 30/03/2003, you wrote:
>Hi,
>
>referencing to the ruleset example I set up a simple rule for MailScanner to
>use different files for the "Deleted Bad Filename Message" parameter. It
>looke like so in my config file:
>
>- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>Deleted Bad Filename Message Report =
>/opt/MailScanner/etc/rules/deleted_bad_filename_message_report.rules
>- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>
>There, some rules are defined for several domains:
>
>- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>To: *@all-about-shift.com
>/opt/MailScanner/etc/rules/messages/deleted_bad_filename_message_report.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.

>Two questions regarding this problem: How does M. distinguish in the config
>file between a rulefile and the final text file to use for this (and other
>parameters) as both versions take a file in the config file itself.

Most other settings are easy to distinguish (rules files have to be files
that exist). But in this case, they rely on the filename ending in ".rule"
or ".rules".

>The second question accompanies the "M. in mem" thread which goes on for
>some days: Will all the referenced text files be read upon start so they
>are in mem while a M.process is running?

No, they are read each time they are used.

>  If yes, does this also apply for
>customn rules as shown above?

The rules are read once at startup, and every time MailScanner restarts
itself (see "Restart Every" in MailScanner.conf).
--
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