How To Install Zimbra 8.6 on Ubuntu 14.04 Part 1

Posted by

This part will explain about preparation install Zimbra on Ubuntu (Ubuntu 14.04 server especially). If you want to use CentOS 6 as Zimbra server, please refer into this guidance : How To Install Zimbra on CentOS 6. Or if you want to use CentOS 7 as Zimbra server, please refer into this guidance : How To Install Zimbra on CentOS 7

For easy understanding, this is my information system

Domain     :
Hostname   : mail
IP Address :
Gateway    :

# Configure Network

First, we must configure network on Ubuntu. Assuming name of your network interface is eth0

vim.tiny /etc/network/interfaces
# The loopback network interface
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static

Note :

The first dns-nameservers should refer into local IP of itself (ip of Zimbra). The second and third dns server could be configured to other dns server such as Google DNS.

Restart network service and setup for automatic boot

ifdown eth0 && ifup eth0

# Configure /etc/hosts, /etc/resolv.conf and hostname

Open file /etc/hosts and configure as follows     localhost mail

Open file /etc/resolv.conf and make sure configured as follows (same as configuration of network at above)


Do the following command as root to change hostname to the name

hostnamectl set-hostname

# Disable service sendmail or postfix (if any)

Do the following command as root

service sendmail stop
service postfix stop
update-rc.d sendmail disable
update-rc.d postfix disable

# Update repo and install packages dependencies required by Zimbra

apt-get update -y
apt-get install -y bind9 bind9utils netcat-openbsd sudo libidn11 libpcre3 libgmp10 libexpat1 libstdc++6 libperl5.18 libaio1 resolvconf unzip pax sysstat sqlite3

# Configure local DNS Server

Zimbra require lookup to MX records on domain that used. For that purpose, we can configure dns server on the same machine with Zimbra mail server

Open file /etc/bind/named.conf.local and create a zone at the bottom of file named.conf.local as follows

zone "" IN {
type master;
file "/etc/bind/";

Create database for a new zone who has been created in folder /etc/bind

touch /etc/bind/
chgrp bind /etc/bind/
vim.tiny /etc/bind/

fill as follows

@       IN SOA (
                                        0       ; serial
                                        1D      ; refresh
                                        1H      ; retry
                                        1W      ; expire
                                        3H )    ; minimum
@       IN      NS
@       IN      MX      0
ns1     IN      A
mail    IN      A

# Restart Service & Check results configuration of DNS Server

service bind9 restart
update-rc.d bind9 enable
dig mx

If results from above command like follows, your dns configuration has been success

[root@mail opt]# nslookup

Preparation for install Zimbra has been finished. Now we can install zimbra and will explained on part 2 😀

Good luck and hopefully useful 😀


  1. when installing defendencies there are error :
    E: Unable to locate package libperl15.18
    E: Couldn’t find any package by regex ‘libperl15.18’
    E: Unable to locate package libaiol
    how to resolve this?, many thanks..

  2. i’m sorry..wrong type syntax…it must be write libprel5.18 and libaio1…

    problem solve..thanks..

  3. Gan mau nanya, jika saya punya 2 domain apakah bisa?

    saya memiliki 2 domain, yaitu:

    lalu di /etc/hosts saya tambahkan dua domain tsb:

    (ip nya sama)

    tujuan saya adalah, jika kita kunjungi: dan hasilnya sama ke server mail zimbra tsb.

    1. Hi mas Denis,

      Sangat bisa mas. Untuk isian /etc/hosts cukup diarahkan saja pada nama hostname utama (misalnya Untuk domain tambahan dapat dilakukan setelah proses instalasi selesai

  4. Configuring package repository
    ERROR: Unable to install packages via apt-get
    Please fix system to allow normal package installation before proceeding

    solusi nya gmn ya mas?

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.