Yet another rules question
Brent Strignano
brent at MIRABITO.COM
Wed Sep 29 20:20:17 IST 2004
Thank you, That worked.
I assume that because I didn't have to change anything in the files that
their location (rules-dir vs. etc-dir) is also specific to whether they
are "rules" or "configuration" files? Or was it that my original
"rules" file ended in ".conf"?
Thanks again,
Brent Strignano
-----Original Message-----
From: MailScanner mailing list [mailto:MAILSCANNER at JISCMAIL.AC.UK] On
Behalf Of Julian Field
Sent: Wednesday, September 29, 2004 1:13 PM
To: MAILSCANNER at JISCMAIL.AC.UK
Subject: Re: Yet another rules question
At 18:02 29/09/2004, you wrote:
>Hello,
>
>I'm trying to follow the FAQ and specify a different filename rules
>file for outgoing and incoming mail. Here is what I did so far.
>Copied the original 'filename.rules.conf' file to
>'inbound.filename.rules.conf' and 'outbound.filname.rules.conf' and put
>them in my rules directory.
>Created a new filename.rules.conf file that contains the following:
>From: 192.168.0
>%rules-dir%/outbound.filename.rules.conf
>FromOrTo: default %rules-dir%/inbound.filename.rules.conf
>
>When I start MailScanner I get these errors in the maillog:
>
>Sep 29 12:11:03 mailscan MailScanner[3181]: Possible syntax error on
>line 1 of /etc/MailScanner/rules/filename.rules.conf
>Sep 29 12:11:03 mailscan MailScanner[3181]: Remember to separate fields
>with tab characters! Sep 29 12:11:03 mailscan MailScanner[3181]:
>Possible syntax error on line 2 of
>/etc/MailScanner/rules/filename.rules.conf
>Sep 29 12:11:03 mailscan MailScanner[3181]: Remember to separate fields
>with tab characters!
>
>And the rules are not applied. I definitely used tabs to delimit the
>fields of that file. If I change the setting for the filename rules
>file in MailScanner.conf to use either the inbound or outbound file it
>works with no syntax error.
What you should have done is this:
1. Copy original filenames.rules.conf file to
inbound.filename.rules.conf and outbound.filename.rules.conf (let's just
leave them in /etc/MailScanner for this example, they are conf files
more than rules files, sorry for the filenames I came up with, they
weren't a good choice). 2. Create a file %rules-dir%/filename.rules. In
it put these 2 lines:
From: 192.168.0 %etc-dir%/outbound.filename.rules.conf
FromOrTo: default %etc-dir%/inbound.filename.rules.conf
It doesn't matter what mix of spaces or tabs you use in real rules files
(which this is). 3. In MailScanner.conf, put this line: Filename Rules =
%rules-dir%/filename.rules
The files in which tab characters matter are filename.rules.conf and
filetype.rules.conf. From/To rules files (which are normally put in
%rules-dir%) don't mind what sort of white space you use.
--
Julian Field
www.MailScanner.info
Professional Support Services at www.MailScanner.biz MailScanner thanks
transtec Computers for their support Buy the MailScanner book at
www.MailScanner.info/store
PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
------------------------ 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 MAQ
(http://www.mailscanner.biz/maq/) and the archives
(http://www.jiscmail.ac.uk/lists/mailscanner.html).
------------------------ 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 MAQ (http://www.mailscanner.biz/maq/) and
the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).
More information about the MailScanner
mailing list