Permalink
Browse files

Merge pull request #252 from runout-at/mime-regex-bug

fix regex for filenames including .com domains
  • Loading branch information...
Udera committed Apr 1, 2018
2 parents 2f51492 + 1576941 commit 5ff5f37df58a707181107b1d1cdfdc89c63811d5
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 5ff5f37

Please sign in to comment.