rules help
Matt Kehler
mkehler at WRHA.MB.CA
Thu May 19 19:12:42 IST 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. ]
Excellent, NOW its perfectly clear! And yes, that will do just what I
want (being not having to duplicate my huge filename/type.conf files.
thankyou!
Matt
>>> MailScanner at ECS.SOTON.AC.UK 5/19/2005 1:08 PM >>>
The "Filename Rules" and "Filetype Rules" are "all matches" settings.
So in this example:
To: user at domain.com filename.allowexe.conf
To *@domain.com filename.normal.conf
FromOrTo: default filename.rules.conf
If a message arrives addressed to user at domain.com, the rules applied are
all those in filename.allowexe.conf followed by filename.normal.conf.
If a message arrives addressed to any-other-user at domain.com, the rules
applied are all those in filename.normal.conf.
Mail from or to anywhere else has the filename.rules.conf applied.
So you can have filename.allowexe.conf contain a single line
allow \.exe$ - -
and use the normal rules for filename.normal.conf.
The rulesets are strung together in the order they are specified in the
ruleset (as in the example above).
The "default" rules are only applied when no other rule in the ruleset
matches the email message.
I hope that clears it up a bit.
If you agree that the above does indeed do what you want, please can you
add this to the wiki (wiki.mailscanner.info) so other people can easily
find it.
Oh, and exactly the same above applies to the "Filetype Rules" as well.
Matt Kehler wrote:
> Drews response basically means that your filenames.conf is duplicated,
> with a one line modification for the exe's, is it not?
>
> I was looking for an actual EXCEPTION, where I basically say " let
> BobUser receive all files listed FILE1, and after that, use the rules
> as per FILE2'. And everyone else, just use FILE2
>
> What Drews says to me is that you can't really do a true
> exception...its more like "copy FILE2 that everyone uses to FILE1,
> change one line for exe's in FILE1, and then give BobUser FILE1.
>
> So Bobuser would never actually process the file2 rules.. So its not
> really an exception then. Its just an entirely separate ruleset, that
> happens to only have a one line difference...
>
> Or am I missing the boat again?
>
> Matt
>
> >>> MailScanner at ECS.SOTON.AC.UK 5/19/2005 12:36 PM >>>
> Ugo Bellavance wrote:
>
> > Matt Kehler wrote:
> >
> >> For some reason I just can't figure this out. We have our default
> >> filename blocking rules config, and want to allow ONE user to get
> >> .exe's, which NOBODY else gets. This part I can figure out. But
we
> >> also want the default blocking rules to apply to that user as well.
> >>
> >> So my question is, can I have an 'exceptions' rule for that user,
which
> >> only contains the one line allowing exe's, and then somehow also
have
> >> the default blocking rules ALSO get hit as a second rule? OR, for
this
> >> one user, do I basically have to have their own ENTIRE ruleset,
which
> >> will essentially will replicate our default ruleset, with the
exception
> >> of allowing one filename?
> >
> >
> > Yes, there is nothing like exceptions in MailScanner right now.
>
> Yes there is!
> Drew's response tells you how. It's what rulesets are for.
>
> --
> Julian Field
------------------------ 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