What is wrong with this line?

This is a discussion on What is wrong with this line? within the alt.comp.mail.postfix forums, part of the Mail Servers and Related category; I can't get it to work. Thanks. /^(.*)name\=\"?(.*)\.(exe|shm|pif|vbe|vbs|js|jse|co m|bat|...


Go Back   Usenet Forums > Mail Servers and Related > alt.comp.mail.postfix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-12-2003
Cyberfarer
 
Posts: n/a
Default What is wrong with this line?

I can't get it to work. Thanks.

/^(.*)name\=\"?(.*)\.(exe|shm|pif|vbe|vbs|js|jse|co m|bat|hta|cmd|vxd|scr|chm)\"$?/
REJECT

Reply With Quote
  #2 (permalink)  
Old 08-12-2003
Cyberfarer
 
Posts: n/a
Default Re: What is wrong with this line?



Cyberfarer wrote:
> I can't get it to work. Thanks.
>
> /^(.*)name\=\"?(.*)\.(exe|shm|pif|vbe|vbs|js|jse|co m|bat|hta|cmd|vxd|scr|chm)\"$?/
> REJECT
>


Okay, having upgraded, apparently body_checks no longer works.
So, you need to add the line, mime_header_checks =
pcre:/etc/postfix/mime_header_checks, to main.cf and you need a file
mime_header_checks within /etc/postfix with something like this:

/^\s*Content-(Disposition|Type).*name\s*=\s*"?(.*\.(
ade|adp|bas|bat|chm|cmd|com|cpl|crt|dll|exe|hlp|ht a|
inf|ins|isp|js|jse|lnk|mdb|mde|mdt|mdw|msc|msi|msp |mst|nws|
ops|pcd|pif|prf|reg|scf|scr\??|sct|shb|shs|shm|swf |
vb|vbe|vbs|vbx|vxd|wsc|wsf|wsh))(\?=)?"?\s*(;|$)/x
REJECT Attachments with executables are not accepted

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 02:46 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0