\. in filename.rules.conf

Dustin Baer dustin.baer at IHS.COM
Mon Feb 9 21:22:08 GMT 2004

Julian Field wrote:
> At 20:58 09/02/2004, you wrote:
> >I see the following in filename.rules.conf:
> >
> >deny    pretty\s+park\.exe$
> >deny    happy99.exe$
> >deny    webpage\.rar$
> >
> >Is the \ required before . ?
> Yes, otherwise it wouldn't be there. They are regular expressions. "."
> means any character. "\." means the literal character "."

So, since it isn't there, I will assume it is not a typo when you have
"happy99.exe$" in filename.rules.conf, rather than "happy99\.exe$"?  :-)

> >deny    ^doc.zip$       -       -
> >
> That will match filenames which are exactly "doc.zip" as ^ means the start
> of the filename and $ means the end of the filename.

I know, but...

> Suggest you read up a
> bit on regular expressions. "man perlre" will get you started.

I felt pretty comfortable with regular expressions, but not seeing the \
in "happy99.exe$" made me think twice and though you might be doing
something else.

> What I
> suspect you mean is to block any filename ending in ".doc.zip" which is
> deny    \.doc\.zip$     -       -

Nope, just wanted "doc.zip" to be blocked...along with message.zip,
document.zip, data.zip, text.zip, file.zip and test.zip, since these
sometimes get past MailScanner/Sophos.

Thanks for the answer!

Dustin Baer
Unix Administrator/Postmaster
Information Handling Services
15 Inverness Way East
Englewood, CO 80112

More information about the MailScanner mailing list