Skip to content
Permalink
Browse files

fix regex for filenames including .com domains

add a $ to regex to not filter filenames including a domainname like used in dmarc reports.
fixes #251
  • Loading branch information...
runout-at committed Mar 28, 2018
1 parent 2f51492 commit 1576941f5e652658599fb1b9bc75fef9fa5b39fe
Showing with 1 addition and 1 deletion.
  1. +1 −1 docs/vexim-acl-check-mime.conf
@@ -10,7 +10,7 @@
deny
condition = ${if match \
{${lc:$mime_filename}} \
{\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} \
{\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} \
{1}{0}}
message = Blacklisted file extension detected in "$mime_filename". If you legitimately need to send these files please use a compressed archive or a file exchange provider.
log_message = DENY: Blacklisted extension ("$mime_filename")

0 comments on commit 1576941

Please sign in to comment.
You can’t perform that action at this time.