How to Integrate Onlyoffice with Zimbra

Posted by

When I installed Zimbra 10 NE, I forgot to add the onlyoffice repository. So, I can’t open or preview the doc files from Zimbra webmail.

Due to the above conditions, I had to install and integrate Onlyoffice manually. Below is what I did

In this article, I used Ubuntu 20.04

# Add Onlyoffice repository

cat > /etc/apt/sources.list.d/zimbra-onlyoffice.list << EOF
deb [arch=amd64] focal zimbra
deb-src [arch=amd64] focal zimbra

If using a different OS, please follow the instruction here:

# Update repo and install package

apt update
apt install zimbra-onlyoffice zimbra-rabbitmq-server

# Import Onlyoffice DB

su - zimbra
source ~/bin/zmshutil
/opt/zimbra/common/bin/mysql -S /opt/zimbra/data/tmp/mysql/mysql.sock -u root --password=$mysql_root_password < /opt/zimbra/onlyoffice/bin/createdb.sql

# Setup Document Server

zmprov ms $(zmhostname) zimbraDocumentServerHost $(zmhostname)

Note: If you are using Zimbra multi server, please adjust zimbraDocumentServerHost with the server where Onlyoffice is installed

# Enable services

zmprov ms $(zmhostname)  +zimbraServiceInstalled onlyoffice +zimbraServiceEnabled onlyoffice

# Configure Onlyoffice

Please run below command as ROOT


# Restart Zimbra

su - zimbra -c "zmcontrol restart"

Please test to open doc files from Zimbra webmail

Good Luck πŸ™‚


  1. apt install zimbra-onlyoffice zimbra-rabbitmq-server
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    E: Unable to locate package zimbra-rabbitmq-server

  2. HI
    I tried several times and now I’m in this situation

    HTTP ERROR 400 Format not supported
    URI: /service/home/~/
    STATUS: 400
    MESSAGE: Format not supported
    SERVLET: UserServlet

  3. Hi thank you for your step by step how to now editing works for me in modern look but I cant use in classic any idea how to resolve it?

  4. I already have πŸ™ zimbra-zimlet-classic-document-editor is already the newest version (
    And still not working.

  5. BTW I know its not Zimbra but I have similar situation with Carbonio its my second mail server, doc editor works only for a few hours after restart and turning off I supposes its some ngnix problem but I cant resolve it.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.