Filename Rules and double extensions

Paul Hamilton paul.hamilton at
Wed May 7 19:53:34 IST 2003


With reference to our recent question and your reply (see below
***********)we have implimented as shown directly below but
messages are still being caught by MS as unacceptable.

allow   customername\.com\.xls                 -       -
allow   customername\.com\.doc                 -       -
allow   customername\.com\.dbf                 -       -
allow   customername\.com\.mdx                 -       -
allow   customername\.com\.pdf                 -       -
allow   customername\.com\.gif                 -       -
allow   customername\.com\.jpg                 -       -
allow   customername\.com\.zip                 -       -

To read the above information we have set up a rule in the
filename.rules file to point off to the customers specific
filename rules:

FromTo * /opt/ms_bydomain/domainname/filename.rules.conf

Can you see the error of our ways?

Thanks in advance

Paul H


At 15:20 02/05/2003, you wrote:
>You could then use a rule that looked like
>Allow   customername\.com       -       -
>That would allow all filenames which contained "" anywhere
>in the filename, which might be enough. If you just want to allow
>"" where "xxx" is "doc" or "ppt" or something like
>that, then you could do
>allow   customername\.com\..{3,4}       -       -
>This would allow the "xxx" to be 3 or 4 characters long, which you really
>need to do as not all Windows filename extensions are 3 characters long
>(e.g. "html" is 4).
>Would it also work if we named the specific file endings? i.e.
>Just feel this ties it down a bit tighter.

Remember to put a '\' in front of each '.' as it is actually a regular
expression, and a '.' on its own means "any character".
And remember to add the 2 '-' signs on the end of the line so that there
are 4 fields on each line, which should be separated by tab characters and
not just spaces.

>Are we right in thinking that these attachments will still be scanned for
>known viruses by MS?

Yes, indeed. It only affects the filename matching.
Julian Field
MailScanner thanks transtec Computers for their support

More information about the MailScanner mailing list