wmf are blocked by the following rule in amavis.conf
Code:
$banned_filename_re = new_RE(
# banned extension - basic
qr'.\.(asd|bat|chm|cmd|com|dll|do|exe|hlp|hta|js|jse|lnk|mov|ocx|pif|reg|rm|scr|shb|shm|shs|vbe|vbs|vbx|vxd|wav|wmf|wsf|wsh|xl)$'i,
);
the modified rule should be
Code:
$banned_filename_re = new_RE(
# banned extension - basic
qr'.\.(asd|bat|chm|cmd|com|dll|do|exe|hlp|hta|js|jse|lnk|mov|ocx|pif|reg|rm|scr|shb|shm|shs|vbe|vbs|vbx|vxd|wav|wsf|wsh|xl)$'i,
[ qr'.\.(docx|pptx)$'=> 0 ], # allow docx and pptx
qr'.\.wmf$'i, # ban wmf
);
So wmf are checked after allowing docx or pptx.
You can do that in 3 steps:
1) from admin panel remove wmf from attachment ban
2) edit /opt/zimbra/conf/amavis.conf.in and change the following lines
Code:
$banned_filename_re = new_RE(
# banned extension - basic
%%uncomment VAR:zimbraMtaBlockedExtension%%qr'.\.(%%list VAR:zimbraMtaBlockedExtension |%%)$'i,
);
to
Code:
$banned_filename_re = new_RE(
# banned extension - basic
%%uncomment VAR:zimbraMtaBlockedExtension%%qr'.\.(%%list VAR:zimbraMtaBlockedExtension |%%)$'i,
xtension |%%)$'i,
[ qr'.\.(docx|pptx)$'=> 0 ], # allow docx and pptx
qr'.\.wmf$'i, # ban wmf
);
3) as zimbra execute zmamavisdctl reload to reload amavis
Done.
Now if a docx or a pptx has inside a wmf it is allowed.
Remember to check after upgrade if the rule has been overwritten.
A special thanks to Samuele Tognini ( not a forum member ) for support and suggestions.
Mario