Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...your web site's great! I've been using this system for almost a year now and find it really, really helpful. The people have been helpful in answering just about any question you post in the forums..."

Geography

Where in the world do Tek-Tips members come from?
twinkygruffs (IS/IT--Management)
7 Dec 11 9:17
Hi,

Could someone tell me the best way to allow postfix to reject a specific file attachment i.e. 'delivery_information.zip' and not just a wildcard extension ?

Thanks Simon.
Noway2 (Programmer)
8 Dec 11 9:03
See the following link: http://www.cyberciti.biz/tips/postfix-block-mime-attachment-files.html

Note in the instructions, the line that says: /name=[^>]*\.(bat|com|exe|dll|vbs)/ REJECT

In case you are not familiar with the concept, this is what is called a regular expression which is a pattern matching language.  If I remember my regex syntax correctly it says to match "name equals zero or more characters that are not > followed by a . followed by bat or com or exe or dll or vbs.  On a match, the rule is to reject the file.

In your case, you should be able to substitute the wild card match for the explicit file name.  In other words, use
/name=delivery_information.zip/ REJECT  

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close