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 http://www.kb.cert.org/vuls/id/800113 
 // 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 {
            8.8.8.8;
    }; 
    auth-nxdomain no; # conform to RFC1035
    listen-on-v6 { any; };
}; 
zone "zimbra.ubuntuprecise.net" {
      type master;
      file "db.zimbra.ubuntuprecise.net";
};

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

sudo touch /var/cache/bind/db.zimbra.ubuntuprecise.net
sudo nano /var/cache/bind/db.zimbra.ubuntuprecise.net

Copy and paste following configuration into file /var/cache/bind/db.zimbra.ubuntuprecise.net :

$ttl 38400
@       IN   SOA     webmail.zimbra.ubuntuprecise.net. webmail.zimbra.ubuntuprecise.net. (
                     2013012011
                     10800
                     3600
                     604800
                     38400 )
        IN     NS      ns1.zimbra.ubuntuprecise.net.
        IN     NS      ns2.zimbra.ubuntuprecise.net.
        IN     A       192.168.40.2
        IN     MX      10 webmail.zimbra.ubuntuprecise.net.

@       A      192.168.40.2
ns1     A      192.168.40.2
ns2     A      192.168.40.2
webmail A      192.168.40.2

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

sudo nano /etc/resolv.conf
search zimbra.ubuntuprecise.net
nameserver 127.0.0.1

Restart bind9

sudo /etc/init.d/bind9 restart

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

nslookup zimbra.ubuntuprecise.net
Server: 127.0.0.1
Address: 127.0.0.1#53
Name: zimbra.ubuntuprecise.net
Address: 192.168.40.2
nslookup webmail.zimbra.ubuntuprecise.net
Server: 127.0.0.1
Address: 127.0.0.1#53
Name: webmail.zimbra.ubuntuprecise.net
Address: 192.168.40.2
dig zimbra.ubuntuprecise.net mx
; <<>> DiG 9.8.1-P1 <<>> zimbra.ubuntuprecise.net 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
;;
;; QUESTION SECTION:
;zimbra.ubuntuprecise.net. IN MX
;;
;; ANSWER SECTION:
zimbra.ubuntuprecise.net. 38400 IN MX 10 webmail.zimbra.wingfoss.com.
;;
;; AUTHORITY SECTION:
zimbra.ubuntuprecise.net. 38400 IN NS ns1.zimbra.ubuntuprecise.net.
zimbra.ubuntuprecise.net. 38400 IN NS ns2.zimbra.ubuntuprecise.net.
;;
;; ADDITIONAL SECTION:
ns1.zimbra.ubuntuprecise.net. 38400 IN A 192.168.40.2
ns2.zimbra.ubuntuprecise.net. 38400 IN A 192.168.40.2
;;
;; Query time: 4 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Mon Jan 28 21:14:40 2013
;; MSG SIZE rcvd: 153

Download latest version ZCS Open Source Editon

wget http://files2.zimbra.com/downloads/8.0.2_GA/zcs-8.0.2_GA_5569.UBUNTU12_64.20121210115059.tgz
tar -xzvf zcs*
cd zcs*

Install Zimbra Collaboration Suite Open Source Edition 8 by executing script install.sh

sudo ./install.sh
  • 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 = webmail.zimbra.ubuntuprecise.net
    Main menu
    1) Common Configuration: 
    2) zimbra-ldap: Enabled 
    3) zimbra-store: Enabled 
         +Create Admin User: yes 
         +Admin user to create: admin@zimbra.ubuntuprecise.net
         ******* +Admin Password UNSET 
         +Anti-virus quarantine user: virus-quarantine.rfi7ocq4@zimbra.ubuntuprecise.net
         +Enable automated spam training: yes 
         +Spam training user: spam.fr5ekeowkp@zimbra.ubuntuprecise.net
         +Non-spam(Ham) training user: ham.ubskg1jvt@zimbra.ubuntuprecise.net
         +SMTP host: webmail.zimbra.ubuntuprecise.net
         +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: http://webmail.zimbra.ubuntuprecise.net:7780/aspell.php
         +Enable version update checks: TRUE 
         +Enable version update notifications: TRUE 
         +Version update notification email: admin@ubuntuprecise.net 
         +Version update source email: admin@ubuntuprecise.net
    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 [ https://192.168.40.2:7071 ] and Enter the user admin with password.

Zimbra Administration How to Setup Zimbra Collaboration Suite Open Source Edition 8.0.2 in 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 :D

  • 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: http://webdevnote.com/article/tutorial-install-zimbra-8-0-3-on-ubuntu-12-04-lts–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

    root@zimb-Vbox:/home/zimbra/Téléchargements/zcs-8.0.3_GA_5664.UBUNTU12_64.201303
    05090204# ./install.sh

    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
    Exiting
    root@zimb-Vbox:/home/zimbra/Téléchargements/zcs-8.0.3_GA_5664.UBUNTU12_64.201303
    05090204#

    help me i don’t understand this message

  • 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 192.168.40.2 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.

Must read×

Top