On 25-Feb-2009, at 15:59, Voytek Eymont wrote:
[1]# grep hc2 *
header_checks:/^Content-(Disposition|Type):\s+.+?(file)?name="?.+? \.com(\.\S{2,4})?(\?=)?"?(;|$)/
     REJECT hc2 ".com" file attachment types not allowed


First off, i think you want mime_header_checks

main.cf:
mime_header_checks = pcre:$config_directory/mime_headers.pcre

mime_headers.pcre:

/^\s*Content-(Disposition|Type).*name\s*=\s*"?(.*\.(ade|adp|bas|bat| chm|cmd|com|cpl|crt|dll|exe|hlp|hta|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[esx]?|vxd|wsc|wsf|wsh))(\?=)?"?\s*(;|$)/x REJECT Attachment name "$2" may not end with ".$3"


--
One by one the bulbs burned out, like long lives come to their
        expected ends.

Reply via email to