vexim / vexim2

Virtual Exim 2
Other
71 stars 47 forks source link

MIME filter triggers on legitim files #251

Closed runout-at closed 6 years ago

runout-at commented 6 years ago

Files with names like yahoo.com!xxx.xx!1522108800!1522195199.gzip will trigger the MIME filter because of the '.com' domain in the name. These are DMARC reports.

I think a '$' could help.

/etc/exim4/vexim-acl-check-mime.conf

{\N(?i)\.(exe|com|ade|adep|adp|bas|bat|chm|cmd|cnf|com|cpl|crt|dll|hlp|hta|inf|ins|isp|js|jse|lnk|mad|maf|mag|mam|maq|mar|mas|matmav|maw|ocx|pcd|pif|reg|scf|scr|sct|vbe|vbs|wsc|wsf|wsh|url|xnk)$\N}
rimas-kudelis commented 6 years ago

Could you provide a PR for this?

runout-at commented 6 years ago

I'm just not sure about the last \N Should the $ go before that?