How to Setup Zimbra Collaboration Suite Open Source Edition 8.0.2 in Ubuntu Server 12.04

This guide shown you how to installing and configure Zimbra Collaboration Suite (ZCS) Open Source Edition 8 as web mail server on Ubuntu Server 12.04 LTS machine. Zimbra Collaboration Suite an open source mail server is not just to send and receive emails but it’s a fully featured which includes easily manage and search large inboxes of emails using folders, tags, filters and conversation views in a rich, innovative user interface.  It also have feature-rich AJAX web interface and is compatible with clients such as Microsoft Outlook, Apple Mail, and Novell Evolution so that mail, contacts, and calendar items can be synchronised from these to the Zimbra Collaboration Suite open source edition.

Zimbra is my email server solution of choice, because it’s very easy to install and configure, and the features you get are unmatched by other open source email solutions.  Ubuntu Server 12.04 is the current Ubuntu Server Edition LTS, which will be supported for servers until 2017, so this is a great time to use it on a server you don’t want to have to take offline for frequent updates, like a mail server

Installing and Configure Zimbra Collaboration Suite (ZCS) Open Source Edition 8

Login into your server using SSH, Make sure your package repositories and installed programs are up to date:

sudo apt-get update
sudo apt-get upgrade --show-upgraded

Install some necessary packages

sudo apt-get install libgmp3c2 libperl5.14 sqlite3 sysstat -y

Install BIND9 dns server, it for Network Address translator (NAT)

sudo apt-get install bind9 -y

After install bind9 DNS Server reboot your server with following command

sudo init 6

After rebooting the server login again into your server then setup DNS records. edit file /etc/bind/named.conf.options

sudo nano /etc/bind/named.conf.options
options {
 directory "/var/cache/bind";

 // If there is a firewall between you and nameservers you want
 // to talk to, you may need to fix the firewall to allow multiple
 // ports to talk. See 
 // If your ISP provided one or more IP addresses for stable
 // nameservers, you probably want to use them as forwarders.
 // Uncomment the following block, and insert the addresses replacing
 // the all-0's placeholder. 
 forwarders {
    auth-nxdomain no; # conform to RFC1035
    listen-on-v6 { any; };
zone "" {
      type master;
      file "";

Save and exit. and Now, Create file /var/cache/bind/ don’t forget to change filename to match with zone file

sudo touch /var/cache/bind/
sudo nano /var/cache/bind/

Copy and paste following configuration into file /var/cache/bind/ :

$ttl 38400
@       IN   SOA (
                     38400 )
        IN     NS
        IN     NS
        IN     A
        IN     MX      10

@       A
ns1     A
ns2     A
webmail A

Edit file /etc/resolv.conf and change nameserver to

sudo nano /etc/resolv.conf

Restart bind9

sudo /etc/init.d/bind9 restart

Now the DNS server is set. To check DNS server works try with following command:

dig mx
; <<>> DiG 9.8.1-P1 <<>> mx
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 18531
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2
;; Query time: 4 msec
;; WHEN: Mon Jan 28 21:14:40 2013
;; MSG SIZE rcvd: 153

Download latest version ZCS Open Source Editon

tar -xzvf zcs*
cd zcs*

Install Zimbra Collaboration Suite Open Source Edition 8 by executing script

sudo ./
  • License Agree = Y
  • Install zimbra-ldap = Y
  • Install zimbra-logger = Y
  • Install zimbra-mta = Y
  • Install zimbra-snmp = Y
  • Install zimbra-store = Y
  • Install zimbra-apache = Y
  • Install zimbra-spell = Y
  • Install zimbra-memchached = N
  • Install zimbra-proxy = N
  • System will be modified? = Y
  • Change domain name = Y =
    Main menu
    1) Common Configuration: 
    2) zimbra-ldap: Enabled 
    3) zimbra-store: Enabled 
         +Create Admin User: yes 
         +Admin user to create:
         ******* +Admin Password UNSET 
         +Anti-virus quarantine user:
         +Enable automated spam training: yes 
         +Spam training user:
         +Non-spam(Ham) training user:
         +SMTP host:
         +Web server HTTP port: 80 
         +Web server HTTPS port: 443 
         +Web server mode: https 
         +IMAP server port: 7143 
         +IMAP server SSL port: 7993 
         +POP server port: 7110 
         +POP server SSL port: 7995 
         +Use spell check server: yes 
         +Spell server URL:
         +Enable version update checks: TRUE 
         +Enable version update notifications: TRUE 
         +Version update notification email: 
         +Version update source email:
    4) zimbra-mta: Enabled 
    5) zimbra-snmp: Enabled 
    6) zimbra-logger: Enabled 
    7) zimbra-spell: Enabled 
    8) zimbra-proxy: Enabled 
    9) Default Class of Service Configuration: 
    r) Start servers after configuration yes 
    s) Save config to file 
    x) Expand menu 
    q) Quit
    Address unconfigured (**) items (? - help)

    To change admin password enter number 3 then enter number 4,  r to return and put a to apply Zimbra configuration

  • 4 = Admin password set = ******
  • r for previous menu
  • a to apply
  • Save config = Y and Enter
  • System will be modified? = Y

After done installing ZCS Open Source Editon 8. Access web admin panel ZCS Open Source Editon 8 by opening your favorite browser from computer on your network and navigate to [ ] and Enter the user admin with password.

Zimbra Administration - ubuntu server 12.04

Link reference:


Tags: #Ubuntu Server 12.04 #Web Mail #Zimbra

How to Upgrade Ubuntu Server 12.04 to Ubuntu Server 14.04 LTS
How to Upgrade Ubuntu Server 12.04 to Ubuntu Server 14.04 LTS
This tutorial will describes how to upgrade
How to Setup OwnCloud Server 5 with SSL Connection
How to Setup OwnCloud Server 5 with SSL Connection
Today ownCloud is the best cloud storage
  • Paulius

    Just for 64bit computers.

  • Vitor Hugo

    Gostei demais deste tutorial muito bem feito 😀

  • lyzzard

    Thanks. Great tutorial.
    I have installed the last version of Zimbra 8.0.3.
    You can have a look here how I did this:–5.html

  • Xahid

    The Only Guide which Works for me,
    Thank you 🙂

  • Mat

    Best guide on the net, had problems with setup and now following this guide it’s all up and running

  • Sylvere Juste Tchatchou T

    05090204# ./

    Operations logged to /tmp/install.log.2666
    Checking for existing installation…
    zimbra-ldap…NOT FOUND
    zimbra-logger…NOT FOUND
    zimbra-mta…NOT FOUND
    zimbra-snmp…NOT FOUND
    zimbra-store…NOT FOUND
    zimbra-apache…NOT FOUND
    zimbra-spell…NOT FOUND
    zimbra-convertd…NOT FOUND
    zimbra-memcached…NOT FOUND
    zimbra-proxy…NOT FOUND
    zimbra-archiving…NOT FOUND
    zimbra-cluster…NOT FOUND
    zimbra-core…NOT FOUND
    Error – zimbra user exists with incorrect home directory: /home/zimbra

    help me i don’t understand this message

    • Robot Chubby

      Assuming you’re referring to this error:

      “Error – zimbra user exists with incorrect home directory”

      It’s because you have created a user named “zimbra”. Zimbra needs to create a user with this name during the install. See:

  • Benjamin Garzon

    Excellent guide! But… I need change webmail port, no more SSL 443, use port 80, because always show ” There is a problem with the security certificate for this site.” You know how change it? Thank you! Best regards,

  • bbb

    what is ip address?

  • Riccardo Magrini

    I’ve tried to install ZCS’s package in /opt directory on a virtual Ubuntu server with a size of / of 30GB but after I run the installer (./install) receive this error:

    Checking required space for zimbra-core
    Checking space for zimbra-store
    /opt/zimbra requires at least 5GB of space to install.
    3GB is not enough space to install.

    Why this error if my HD size is of 30GB?
    thanks for your support

  • Ankit

    ERROR: Installation can not proceeed. Please fix your /etc/hosts file
    to contain:

    Where is the ip address of the host,
    is the FULLY QUALIFIED host name, and
    is the (optional) hostname-only portion
    I got this error ..please help

  • Martin Henning

    Installed Zimbra like a BOSS, after following this guide. Thank you!

    • Shamz

      Hi. can you help with zimbra instalation. i have few issues.

  • Jean Michel Yapo

    ca marche du tonnere merci beaucoup….. apres a voir changé un ptit truc dans le fichier /etc/hostname histoire de mettre mon_machine@nom_de_domaine… thank you very much

Must read×