Block ..rar files in amavisd

@lbutlr kremels at
Tue Jan 23 10:24:19 CET 2018

On 23 Jan 2018, at 00:20, Dominic Raferd <dominic at> wrote:
> On 22 January 2018 at 22:28, @lbutlr <kremels at> 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 - is there a reason why yours is subtly different?

That config files is about 15 years old, so I have no idea why it's  different. However, basically no one ever sends those attachment type anymore anyway. 

Love is strange and you have to learn to take the crunchy with the
smooth I suppose

More information about the amavis-users mailing list