On 22 January 2018 at 22:28, @lbutlr <krem...@kreme.com> wrote: > I have a file mime_headers.pcre in postfix: > /^\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” >
I do this too, but I use the exact example at http://www.postfix.org/header_checks.5.html - is there a reason why yours is subtly different?