How to Install Zimbra 8.6 on Ubuntu 14.04 Server

The Zimbra Collaboration Server is a mail server, collaborative web application and a web based mail server admin console in a single application. It provides LDAP, antivirus, antispam, collaboration features and a ajax webmail client. Zimbra is easy to use for administrators as well as end users due to its fast Ajax based web interface.


  • Ubuntu Server 14.04 - 64bit
  • root privileges
  • Free space 25 GB
  • RAM 4 GB

My zimbra Server profile used in this tutorial:

Domain : sendaljepit.local
IP     :
Mail   : mail.sendaljepit.local

What we will do in this tutorial:

  • Install the prerequisite packages
  • Configure hostname and DNS Server
  • Download and Install Zimbra
  • Test the installation

Installation of prerequisites

Step 1 - connect to your server, get root privileges and install this package.

apt-get install libgmp10 libperl5.18 unzip pax sysstat sqlite3 dnsmasq wget

Configure hostname and DNS Server

In this tutorial will use the 'dnsmasq' resolving nameserver to speedup DNS lookups in Zimbra. Dnsmask has been installed as prerequisite in the first chapter, so we just have to configure it now:

Step 1 - Edit hostname and hosts

vim /etc/hostname

change your hostname with this 'mail.sendaljepit.local'.

Setting hostname

vim /etc/hosts

add this line:   mail.sendaljepit.local  mail

Setting host

Step 2 - Edit dnsmasq configuration

vim /etc/dnsmasq.conf

server= domain=sendaljepit.local mx-host=sendaljepit.local, mail.sendaljepit.local, 5 mx-host=mail.sendaljepit.local, mail.sendaljepit.local, 5 listen-address=

Step 3 - Reboot

sudo reboot

Installing Zimbra

Step 1 - Download Zimbra and extract it

tar -xvf zcs-8.6.0_GA_1153.UBUNTU14_64.20141215151116.tgz
cd zcs*

Step 2 - Run the Installer


At this step, zimbra will check the required packages and will ask you to agree to their installation.

Agreement Zimbra

and then choose the zimbra package :

Choose Zimbra Installation

here doesn`t need zimbra-dnscache, because in this tutorial use dnsmasq.

You need to wait, because this installation takes some time.

next step is configure "zimbra-store" for getting admin password. See the picture:

Configure Admin Pasword

Choose number "4" and enter. and then type your password:

Changing Password

Apply all Configuration:

Apply all configuration

and wait for Zimbra configuration finished.

Testing Zimbra

to test your zimbra server is running, you can type a command :

su - zimbra
zmcontrol status

try to access zimbra from web browser.

Access Zimbra

or try admin page " ".


Zimbra is an Open Source mail server application which provides many features and is easy to use for admin and client. Zimbra requires a lot of server ressources, so dont use it on servers that do not match the base requirements outlines in the first chapter.

Share this page:

Suggested articles

22 Comment(s)

Add comment


By: Jorge


I'm really happy to see a tutorial about how to install Zimbra Collaboration 8.6 in Ubuntu Server 14.04. To add to this amazing tutorial: Don't use ever, for a real production environment, a domaint that is not a valid TLD, as when need to install a SSL Certificate you will obtain an error, because any SSL vendor offer anymore the option to add .local, .lab, etc.

Amazing tutorial step-by-step.

Best regards.

By: Marcelino Brizon

Cada dia mas facil el proceso de instalacion. Excelente aporte. Salute

By: JohnP

So I've been running Zimbra for the last 8 yrs. A few key things to making this work.

* Any /etc/hosts file with more than 2 lines will fail.  Zimbra installer will freak out. Don't know why, just that a non-trivial file won't work.

* A DNS MX record is mandatory. If you don't have DNS setup where Zimbra can see the MX record - don't bother starting.

* If running multiple email domains, ensure the hostname maps to the primary domain.

By: Mike Hammett

My hosts file had mroe than two lines and it was fine, but it did have v4 and v6, so maybe I only had two lines per protocol.The MX record doesn't have to point to your cluster for the installer to proceed, it just needs to have one.

By: Engr. Sharif Masud

Hello, This is awesome article and it works very nice for me, I'm really happy first time, when i'm creating Zimbra Server.

Thank you so much and long live.

By: Nawfal


je viens de suivre votre tutorial pour installer mon serveur zimbra. L'installation est bonne. Cependant, je peux envoyer des mails depuis zimbra vers l'extérieur (vers mon gmail par exemple et ça part en spam), mais je ne peux pas recevoir de sais que ça a rapport avec le dns mais je ne sais pas exactement quoi faire.

j'ai mon nom de domaine chez ovh, j'ai crée un MX record depuis vers mail, et j'ai redirigé vers l'adresse IP de mon serveur zimbra.qu'est ce qui ne va pas ... Un peu d'aide svp ?

By: nawfal

I'm sorry, I didn't know I was writing in french.What I said is that I've installed my zimbra server with this tutorial, and everything seems to work just fine.But problem is that I can send email from zimbra ( that goes to spam) but I cannot receive emails. I know that it has something to do with DNS but I don't know what exactly.I have amy domain. And I added a MX record from to mail . And I added a redirection from to IP adress of my zimbra server.Can someone help me, i don't know exactly what's wrong with the dns ( or something else I don't know).thank you !!

By: maham

What about checking your PTR records, DKIM records and SPF records. And check if they blacklisted your ip too.

By: chittibabu

Thanks for your document. I am new for the zimbra. I used your steps to install the zimbra in ubuntu14.04 server. I can use the zimbra client. But I unable to send mail to other server. Ex: [email protected] to [email protected] I think I have missed somthing while configuring the hostname. Please help me solve this issues.


Thanks in advance.

By: Ahmed


Great Tutorial. But I need to make it [email protected] not [email protected] Can anyone help me?

I'm tired of trying to avoid MX record issue in Amazon AWS and I tried : with no success.


By: Shawn

Did you ever get this fixed? Im having the same issue :<

By: Santosh Yadav

Great How-to, I'm really happy to see a tutorial about how to install Zimbra Collaboration 8.6 in Ubuntu Server 14.04.

By: Wojtek

i have some problem, can anybody help me to fix it?


[email protected]:~$ zmcontrol statusConnect: Unable to determine enabled services from ldap.Enabled services read from cache. Service list may be inaccurate.Host    amavis                  Running    antispam                Running    antivirus               Stopped        zmfreshclamctl is not running    dnscache                Stopped        dnscache is not running.    ldap                    Stopped    mailbox                 Stopped        mysql.server is not running.        zmmailboxdctl is not running.    memcached               Stopped        memcached is not running.    mta                     Stopped        zmsaslauthdctl is not running        postfix is not running    opendkim                Stopped        zmopendkimctl is not running.    proxy                   Stopped        zmnginxctl is not running    service webapp          Stopped        mysql.server is not running.        zmmailboxdctl is not running.    snmp                    Stopped        zmswatch is not running.    spell                   Stopped        zmapachectl is not running    stats                   Stopped    zimbra webapp           Stopped        mysql.server is not running.        zmmailboxdctl is not running.    zimbraAdmin webapp      Stopped        mysql.server is not running.        zmmailboxdctl is not running.    zimlet webapp           Stopped        mysql.server is not running.        zmmailboxdctl is not running.    zmconfigd               Stopped        zmconfigd is not running.

By: Doug Hall

You also need aptitude install libaio1

By: Mike Hammett

Yes, you need that as well.

By: misa

apt-get install wget gcc g++ make flex bison openssl libssl-dev perl perl-base perl-modules libperl-dev libperl4-corelibs-perl libaio1 libaio-dev

By: mika


Vous avez pu résoudre votre probleme, car j'ai le même probleme. si oui, merci de partager la solution.


By: Mike Hammett

NO! Do not install dnsmasq. Someone please remove this from the tutorial.

By: Elmer

Can you help me?.   I have a VM Zentyal server with this configuration:   dns:  IP: When I tried to configure zimbra what is the best configuration.    ZimbraIP:   dns:What value put here??  Host: zimbra.local

By: kamall


i install zcs server with zimbra-proxy. My problem is this thing: When i try to log zimbra from internet i must use url https://domainorip:8443. How to change it to https://domainorip?

By: Harauld

Hello.please should i install dnsmasq when my ubuntu server is not the dns server?in my case the dns server is configured on windows server 2012 and ubuntu is supposed to be just the mail server

By: Pabitra Chakravarty

Thanks for sharing this greate tutorial. I've successfully install zimbra in my Ubuntu 14.04 (Vmware) server.