Block ..rar files in amavisd
Dominic Raferd
dominic at timedicer.co.uk
Tue Jan 23 08:20:47 CET 2018
On 22 January 2018 at 22:28, @lbutlr <kremels at 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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.amavis.org/pipermail/amavis-users/attachments/20180123/4ca6ee93/attachment.html>
More information about the amavis-users
mailing list