Zimbra SkillZ: The Nextcloud Zimlet

Setting Up Zimbra’s Nextcloud Zimlet

Hi Zimbra Friends, Partners & Customers,

Today’s post is from Barry de Graaff, Channel Evangelist for Zimbra Synacor, and it shows you how to configure the Nextcloud Zimlet. Nextcloud is an open source file hosting service similar to Zimbra Briefcase, Google Drive and Dropbox, but it can be hosted on-premises. With the Nextcloud Zimlet installed, your users can use Nextcloud for file storage in Zimbra.

This Zimlet works in Zimbra Modern UI which is available for Zimbra 9 and above.

Barry uses these examples:

  • NextCloud Server – nextcloud.server.com
  • Zimbra Server – myzimbra.server.com
  • Domain – example.com
You can skip step #1 if you already have a Nextcloud server set up.
  1. Setup a Nextcloud server by following this video – https://www.youtube.com/watch?v=QXfsi0pwgYw
  2. Install the Nextcloud Zimlet and its dependencies on your Zimbra server:
    1. To install on Red Hat and CentOS, run:
      yum install zimbra-zimlet-nextcloud
    2. To install on Ubuntu, run:
      apt-get install zimbra-zimlet-nextcloud
    3. Restart zmmailbox server:
      su - zimbra
      zmmailboxdctl restart
  3. On the Nextcloud server, update the below configuration in /etc/httpd/conf.d/nextcloud-ssl.conf
    RewriteEngine On
    RewriteCond %{HTTP:Authorization} ^(.*)
    RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]
  4. Login to Nextcloud server URL https://nextcloud.server.com and navigate to Settings → Administration → Security.
    1. In Brute-force IP whitelist section, specify the Zimbra server’s IP Range.
    2. In OAuth 2.0 clients section, specify the Name and Redirection URL of the Zimbra server. For e.g.:

      Specify Name – My Zimbra Server

    3. Copy the Client Identifier and Client Secret fields for the above entered Client. This will be used to update LDAP related configuration in the next step.

To enable Nextcloud for domain example.com, add LDAP entries for it by executing the following commands:

zmprov md example.com zimbraOAuthConsumerCredentials 
<Client Identifier>:<Client Secret>:nextcloud 
zmprov md example.com zimbraOAuthConsumerRedirectUri 
https://myzimbra.server.com/service/extension/oauth2/authenticate/nextcloud:nextcloud 
zmprov md example.com zimbraOAuthConsumerAPIScope 
'https://nextcloud.server.com/nextcloud/index.php:nextcloud_noop'

When the Nextcloud Zimlet is set up and ready to go on your mail server, your users can …

Link to their Nextcloud account on the cloud tab.

Link to your Nextcloud account on the cloud tab

Add files from Nextcloud to emails as attachments, links and inline.

Add a Nextcloud file to an email as an attachment, link or inline

Save files to Nextcloud by clicking the attachment or using the More menu.

Save a file to Nextcloud by clicking the attachment or using the More menu

Thanks for checking out the Zimbra blog,
Your Zimbra Friends

, , , , , , ,

3 Responses to Zimbra SkillZ: The Nextcloud Zimlet

  1. Ahmad Imanudin December 3, 2020 at 3:12 AM #

    Hi,
    I already follow the instructions. However, the nextcloud tab does not appear. I already install/reinstall zimlet. I am using this version

    Release 9.0.0.GA.3924.UBUNTU16.64 UBUNTU16_64 NETWORK edition, Patch 9.0.0_P9.

    • Gayle Billat December 8, 2020 at 4:54 PM #

      Hi Ahmad – if you are still not seeing the Nexcloud tab, please ask this question in forums.zimbra.com. Thanks!

  2. seo uzmanı December 6, 2020 at 12:59 PM #

    Very good nes thank you . Google Drive and Dropbox, but it can be hosted on-premises. With the Nextcloud Zimlet installed, your users can use Nextcloud for file storage in Zimbra

Copyright © 2022 Zimbra, Inc. All rights reserved.

All information contained in this blog is intended for informational purposes only. Synacor, Inc. is not responsible or liable in any manner for the use or misuse of any technical content provided herein. No specific or implied warranty is provided in association with the information or application of the information provided herein, including, but not limited to, use, misuse or distribution of such information by any user. The user assumes any and all risk pertaining to the use or distribution in any form of any subject matter contained in this blog.

Legal Information | Privacy Policy | Do Not Sell My Personal Information | CCPA Disclosures