ClearFoundation Tracker - ClearOS
View Issue Details
0000122ClearOSapp-mail-antivirus - Mail Antiviruspublic2010-08-11 06:052019-03-11 07:06
timb80 
 
normalfeaturealways
closedsuspended 
5.2 
 
0000122: Office 2007 files get caught by amavisd as multipart with binary attachments
See the forum threads for details
http://www.clearfoundation.com/component/option,com_kunena/Itemid,232/catid,14/func,view/id,15627/#15633 [^]
http://ccforums.clearfoundation.com/showflat.php?Cat=0&Board=email&Number=121623&Searchpage=1&Main=121623&Words=%26quot%3Boffice+2007%26quot%3B&topic=&Search=true#Post121623 [^]

you can also prevent this by removing the block for binary extensions but this opens up a bit of a security hole so opted to pass extensions with xlsx, docx and pptx (formats which don't contain macros)
Work around is

Create a file called /etc/amavisd/override.conf containing:-

$banned_filename_re = new_RE(
  [ qr'(\.xlsx|\.docx|\.pptx)$' => 0 ], # allow MS Office 2007 plain files
);

Then run 'service amavisd restart'
No tags attached.
Issue History
2010-08-11 06:05timb80New Issue
2010-08-16 16:12user2Statusnew => confirmed
2010-08-25 09:34user2Severityminor => feature
2019-03-11 07:06NickHNote Added: 0010621
2019-03-11 07:06NickHStatusconfirmed => closed
2019-03-11 07:06NickHResolutionopen => suspended

Notes
(0010621)
NickH   
2019-03-11 07:06   
Migrated to: https://gitlab.com/clearos/clearfoundation/app-mail-antivirus/issues/2 [^]