\. in filename.rules.conf
Julian Field
mailscanner at ecs.soton.ac.uk
Mon Feb 9 21:11:23 GMT 2004
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 "."
>Also, I wanted to block any "doc.zip" attachments that come through, so
>added the following line:
>
>deny doc.zip$ - -
>
>This also blocks dp_doc.zip, or anything else that has .....doc.zip.
>The following appears to work properly, but just want to make sure:
>
>deny ^doc.zip$ - -
>
>Again, is a \. needed, rather than just the . ?
That will match filenames which are exactly "doc.zip" as ^ means the start
of the filename and $ means the end of the filename. Suggest you read up a
bit on regular expressions. "man perlre" will get you started. What I
suspect you mean is to block any filename ending in ".doc.zip" which is
deny \.doc\.zip$ - -
>Thanks,
>
>Dustin
>--
>Dustin Baer
>Unix Administrator/Postmaster
>Information Handling Services
>15 Inverness Way East
>Englewood, CO 80112
>303-397-2836
>
>--
>This email message is for the sole use of the intended recipient(s) and
>may contain confidential and privileged information. Any unauthorized
>review, use, disclosure or distribution is prohibited. If you are not
>the intended recipient, please contact the sender by reply email and
>destroy all copies of the original message. Thank you.
--
Julian Field
www.MailScanner.info
Professional Support Services at www.MailScanner.biz
MailScanner thanks transtec Computers for their support
PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
More information about the MailScanner
mailing list