BIP KB:
How To Install Zimbra 6.8.0 GA On Ubuntu 14.04

Article By srtjuthy93


BIP media KB Knowledge Base Community Author

Introduction Zimbra eMail server

Zimbra eMail server is a collaboration tool for email, calendaring, task and more. In this tutorial you will learn how to install Zimbra your BIP media VPS Server. Once you complete the steps outlined below you will have a fully functional Zimbra server. So lets get started!

Install Zimbra mail server and configuration

Prerequisites:


Evaluation and Testing Server
Intel/AMD 64-bit CPU 1.5 GHz

RAM requirements:
For single server installations, a minimum of 8GB of RAM is required.
For multi-server installations, contact BIP media sales for recommendations.

DISK requirements:
5 GB free disk space for software and logs
Temp file space for installs and upgrades*
Additional disk space for mail storage


Production environments
Intel/AMD 2.0 GHZ+ 64-bit CPU

RAM requirements:
For single server installations, a minimum of 8GB of RAM is required.
For multi-server installations, contact BIP media sales for recommendations.

DISK requirements:
Temp file space for installs and upgrades*
10 GB free disk space for software and logs (SATA or SCSI for performance, and RAID/Mirroring for redundancy)
Additional disk space for mail storage

*Temp files space: The zimbra-store requires 5GB for /opt/zimbra, plus additional space for mail storage. The other nodes require 100MB.

General Requirements
Firewall Configuration should be set to “No firewall”.
RAID-5 is not recommended for installations with more than 100 accounts.


The following operating systems are supported:


Red Hat® Enterprise Linux® 7 (64-bit)

CentOS Linux® 7 (64-bit)

Red Hat Enterprise Linux 6 (64-bit), patch level 4 or later is required

CentOS Linux 6 (64-bit), patch level 4 or later is required

Ubuntu 14.04 LTS Server Edition (64-bit)

Ubuntu 12.04.4 LTS Server Edition (64-bit) running the saucy (3.11) or later kernel is required.

Note: If the original install was done with Ubuntu 12.04.2 or earlier, manual intervention is required to switch to the saucy (3.11) or later kernel series. See https://wiki.ubuntu.com/Kernel/LTSEnablementStack for further information.

SUSE Linux Enterprise Server (SLES) 11, SP3
(64-bit) is required. Important! Zimbra Collaboration 8.6 is the last supported release of SLES 11.

For this tutorial we will be installing Zimbra with the following:

Ubuntu Server 14.04 64bit

Domain

Domain MX Record

My Setup info:

Hostname: mail

Domain: ubuntuserver.tk

Server IP: 192.168.11.19

Remember: You can use any domain you want and all the commands we will use below are for Ubuntu.

DNS Setup

Zimbra email server cannot be installed or will not work properly without a proper “A” and “MX” record or Mail Exchange record. I’m going to use bind9 as a DNS server and install it on the same server or you can also install it on separate server. It’s up to you.

It's recommend to setup 1 application per server so get several more small server from BIP media to run your own DNS servers or simply open a ticket at BIPmedia.com and they will host the DNS for you.

Step 1. Install bind9 dns server

Install bind9 on Ubuntu server

apt-get install bind9

Step 2. Create an “A” and “MX” record for our domain

Create forward zone file. We can copy the template from the bind folder.

cp /etc/bind/db.local /etc/bind/ubuntuserver.tk

Edit the ubuntuserver.tk file

nano –w /etc/bind/ubuntuserver.tk


Your forward zone file should look like this.

Install Zimbra forward zone file

  1. This should be your domain (Don’t forget the “dot” at the end)
  2. Server FQDN as name server (Don’t forget the “dot” at the end)
  3. “A” record for your domain ubuntuserver.tk
  4. “A” record for your FQDN mail.ubuntuserver.tk
  5. “MX” record for your FQDN mail.ubuntuserver.tk (Don’t forget the “dot” at the end)

NOTE: FQDN stands for Fully Qualified Domain Name

Press ctrl key + o to save
Press ctrl key + x to exit

Add the forward zone file to named.conf.local

nano –w /etc/bind/named.conf.local


Add this line
zone "ubuntuserver.tk" {
type master;
file "/etc/bind/ubuntuserver.tk";
};

Press ctrl key + o to save
Press ctrl key + x to exit

Edit Forwarders
nano  -w /etc/bind/named.conf.options


remove // from this lines
//forwarders {
// 0.0.0.0;
//};


It should look like this and replace 0.0.0.0 to any external domain you want like Google DNS 8.8.8.8
forwarders {
8.8.8.8;
};


Press ctrl key + o to save
Press ctrl key + x to exit

Step 3. Change domain server to your local ip.


nano –w /etc/network/interfaces

Use your internal ip in this line.
dns-nameservers 192.168.11.19

Press ctrl key + o to save
Press ctrl key + x to exit

Step 4. Edit your hosts file


nano –w /etc/hosts

You should have this line
192.168.11.19 mail.ubuntuserver.tk mail
or


Press ctrl key + o to save
Press ctrl key + x to exit

Restart your server to take effect all the changes
reboot


Step 5. Test the domain to see if it can resolve the mx record.


dig ubuntuserver.tk mx


We use the domain name ubuntuserver.tk because we need to check the mx record to see if it resolves correctly not the server FQDN which is mail.ubuntuserver.tk, they are different.

Check my dig result

Install Zimbra dig result

  1. MX is pointed to mail.ubuntuserver.tk
  2. NS or nameserver is mail.ubuntuserver.tk
  3. A record of mail.ubuntuserver.tk pointed to 192.168.11.19

As you can see all our records are correct and we can now proceed to Zimbra installation.

Zimbra Installation


Access the Ubuntu server using putty or any ssh client and login as root.
You can download putty here http://www.putty.org/

Step 1. Install Zimbra prerequisites

apt-get update 

apt-get install libgmp10 libperl5.18 libaio1 pax sysstat sqlite3

Step 2. Download Zimbra Email Server

wget https://files.zimbra.com/downloads/8.6.0_GA/zcs8.6.0_GA_1153.UBUNTU14_64.20141215151116.tgz

Step 3. Unpack the file

tar xzvf zcs-8.6.0_GA_1153.UBUNTU14_64.20141215151116.tgz

Step 4. Go to Zimbra forder

cd zcs-8.6.0_GA_1153.UBUNTU14_64.20141215151116

Step 5. Begin installation

./install.sh


NOTE : While running the install.sh command you will be prompted with the following questions.

Do you agree with the terms of the software license agreements? [N] Y
Install zimbra-ldap [Y] Enter
Install zimbra-logger [Y] Enter
Install zimbra-mta [Y] Enter
Install zimbra-dnscache [Y] N Enter
Install zimbra-snmp [Y] Enter
Install zimbra-store [Y] Enter
Install zimbra-apache [Y] Enter
Install zimbra-spell [Y] Enter
Install zimbra-memcached [Y] Enter
Install zimbra-proxy [Y] Enter
The System will be modified. Continue? [N] Y Enter

NOTE: Do not install dnscache because we already installed bind9.
Sometimes it takes for a while to install some packages.

You will receive this error:
DNS ERROR resolving mail.ubuntuserver.tk

Change hostname [Yes] Enter
Please enter the logical hostname for this host [mail.ubuntuserver.tk] ubuntuserver.tk
Ports conflicts detected! – Press Enter /Return key to continue Enter

Setup a password for admin account.

Install Zimbra password admin account

Address unconfigured (**) items (? – help) 6 Enter
Select, or ‘r’ for previous menu [r] 4 Enter
Type Enter
Type r Enter (To back to previous menu)
Type a Enter (To apply the configuration)
The system will be modified – continue? [No] Yes Enterinstallation and
Notify Zimbra of you installation? [Yes] No Enter

CONGRATULATION! You are now finished installing the Zimbra server!

You can now access your Zimbra Page


Point your Desktop/Laptop DNS server to Zimbra Server Local IP to Access Zimbra Admin Page
https://:7071 or https://mail.ubuntuserver.tk:7071
User: Admin
Pass:

To Access Zimbra User page point your browser to:
https://mail.ubuntuserver.tk

This concludes this tutorial on how to install Zimbra 6.8.0 GA on Ubuntu 14.04. I hope it was helpful! If you have any questions or comments simply fill out the form below and I will be happy to answer any questions or comment you may have.




Tags: , , , , , , ,

Spin up a VPS server in no time flat

Simple setup. Full root access. Straightforward pricing.

DEPLOY VPS SERVER

Leave a Reply



Feedbacks