View Single Post

  #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