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|...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
![]() |
| Thread Tools | |
| Display Modes | |
|
|