Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-26-2010, 11:13 AM
Junior Member
 
Posts: 9
Default [SOLVED] Allow banned content in encrypted ZIP?

Greetings,

We recently upgraded to ZCS 6.0.7 NE. All seems to be well, with one big problem (for us anyway). The attachment filtering works a little too well.

Our organization needs to be able to send and receive otherwise banned content (exe,bat,dll, etc...) via a password encrypted ZIP archive. We have disabled the blocking of encrypted archives, but that does not allow us to send anything in the banned content list via an encrypted ZIP. It would appear that Zimbra (via Amavis?) is doing a regex search against the contents of the zip, and blocking the content, regardless of the password encrypted ZIP file. If I double ZIP the contents, with the outermost ZIP being password encrypted, we can pass the content through. Renaming a ZIP to .txt doesn't help since the filters seem to use file to determine the type, rather than the extension.

I understand why this is cool for most organizations, and we obviously want banned content to get blocked under other circumstances. How do we configure the system to allow encrypted ZIP files that contain otherwise banned content? Is there a configuration option or combination of options within Amavis or somewhere else that we should look?

Thanks for any assistance with this issue.

Colin

Last edited by colin_zcs; 08-27-2010 at 02:58 PM..
Reply With Quote
  #2 (permalink)  
Old 08-30-2010, 04:06 AM
Special Member
 
Posts: 113
Default

Maybe this will work.

Add the following before line 2010 in /opt/zimbra/conf/amavisd.conf.in

Code:
[ qr'^\.(zip|rar|arc|arj|zoo|7z|gz|bz2|rpm|cpio|tar)$'=> 0 ],  # allow any within these archives
Don't forget to run zmamavisdctl reload, to rewrite the amavisd configuration and reload amavisd.

Last edited by jummo; 08-30-2010 at 04:08 AM.. Reason: Typo
Reply With Quote
  #3 (permalink)  
Old 09-01-2010, 03:16 PM
Junior Member
 
Posts: 9
Default

Thanks for your help jummo,

Note: Not sure if your line#2010 is a typo, as our conf file only has 627 lines with the new content added at what seemed to be the appropriate line: #170

That change does allow us to send and receive password protected ZIPs with banned content. However, it also allows non-password protected ZIPs with banned content.

I hope there is a middle ground that allows protected ZIPs but blocks unprotected ZIPs with banned content. Any thoughts on that problem?

Regards,

Colin
Reply With Quote
  #4 (permalink)  
Old 09-02-2010, 12:42 AM
Special Member
 
Posts: 113
Default

Yes, a typo, but I have edited the line #204.

The context:
Code:
$banned_filename_re = new_RE(
  [ qr'^\.(zip|rar|arc|arj|zoo|7z|gz|bz2|rpm|cpio|tar)$'=> 0 ],  # allow any within these archives
  # banned extension - basic
  %%uncomment VAR:zimbraMtaBlockedExtension%%qr'.\.(%%list VAR:zimbraMtaBlockedExtension |%%)$'i,
);
To allow only password protected files, I think the configuration parameter
Code:
[ qr'^UNDECIPHERABLE$'=> 0 ],
should be enough, see KSLin: amavis - To allow only password protected archives .
Reply With Quote
  #5 (permalink)  
Old 09-03-2010, 11:47 AM
Junior Member
 
Posts: 9
Default

Thanks again for your assistance, jummo. That link was helpful and insightful to understanding the changes.

We have determined that this setting meets our needs of allowing banned content within a password protected archive, while blocking banned content within unprotected archives:

Code:
$banned_filename_re = new_RE(
  [ qr'^UNDECIPHERABLE$'=> 0 ],
  # banned extension - basic
  %%uncomment VAR:zimbraMtaBlockedExtension%%qr'.\.(%%list VAR:zimbraMtaBlockedExtension |%%)$'i, );
I appreciate all of your help!

Regards,

Colin
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.