Zimbra collaboration suite, shortly ZCS, is a free, open source software suite that can be used for messaging and collaboration. It comes with two editions, open source edition which is free to use, and network edition which is commercial version, consists of some closed-source components. Zimbra supports Emails, Calendar, and contacts, and document sharing. For ore details, visit the official website, link given at the end of this article, to know more about Zimbra.
This tutorial describes how to install Zimbra collaboration suite in Ubuntu 14.04 LTS server. For the purpose of this guide, I will be using the two test boxes, running with Ubuntu 16.04 LTS and Ubuntu 14.04 LTS. Here is the details of each test box.
Operating System : Ubuntu 14.04 LTS
Hostname : zimbra.ostechnix.lan
IP address : 192.168.1.105/24
Operating system : Ubuntu 16.04 LTS
Hostname : pri.ostechnix.lan
IP address : 192.168.1.200/24
You should use separate systems for Zimbra and DNS servers. Here is the minimum requirement for Zimbra deployment.
Quad core or higher configuration CPU
8GB RAM or more
50GB hard disk
Fast Internet connectivity
A perfect DNS configuration
Firewall should be disabled
Let us get started.
First things first
Before installing Zimbra, you need to do the following prerequisites steps.
First of all, update the Ubuntu server:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
Install necessary dependencies:
sudo apt-get install build-essential
Edit /etc/hosts/ file, and add FQDN (fully qualified domain name) of your Ubuntu server as shown below.
sudo nano /etc/hosts
192.168.1.105 zimbra.ostechnix.lan zimbra
Save and close the file.
Then, we must add the DNS server IP address in your Ubuntu server’s network configuration file.
To do so, edit /etc/network/interfaces file:
sudo nano /etc/network/interfaces
Add DNS server IP address as shown below.
Then, edit /etc/resolv.conf file, and add DNS server IP address.
sudo nano /etc/resolv.conf
Then, add the proper MX records in your DNS server. Go to your DNS server and add the Ubuntu server details as shown below. Please note that a separate DNS server is mandatory. You shouldn’t use single system for both DNS and Zimbra servers.
If you haven’t setup DNS server, refer the below link.
If you an output something like above, it’s good to go.
Go to the Zimbra download page and download the latest version using command:
As of writing this, Zimbra 8.7.0 stable version is not yet available for Ubuntu 16.04 LTS. Installing beta version in production would be a bad idea. If you still want to deploy Zimbra in Ubuntu 16.04 LTS, you can go ahead. The installation instructions are same for all versions.
Download the latest ZCS from the following location depending upon the distribution you use. As of writing this guide, the latest stable version was 8.7.
Now, start the deploying Zimbra collaboration suite using command:
Type “Y” and press ENTER to accept the license agreement.
Operations logged to /tmp/install.log.2JeUNWmH
Checking for existing installation...
PLEASE READ THIS AGREEMENT CAREFULLY BEFORE USING THE SOFTWARE.
SYNACOR, INC. ("SYNACOR") WILL ONLY LICENSE THIS SOFTWARE TO YOU IF YOU
FIRST ACCEPT THE TERMS OF THIS AGREEMENT. BY DOWNLOADING OR INSTALLING
THE SOFTWARE, OR USING THE PRODUCT, YOU ARE CONSENTING TO BE BOUND BY
THIS AGREEMENT. IF YOU DO NOT AGREE TO ALL OF THE TERMS OF THIS
AGREEMENT, THEN DO NOT DOWNLOAD, INSTALL OR USE THE PRODUCT.
License Terms for this Zimbra Collaboration Suite Software:
Do you agree with the terms of the software license agreement? [N]
Zimbra installer will ask you a series of yes or no type questions throughout the installation. Just read and answer them accordingly.
Press Y to add Zimbra package repository.
Checking for installable packages
Use Zimbra's package repository [Y] ## Press ENTER
Next, you need to select Zimbra Packages you want to install. The installer will display the packages one by one. Just press ENTER to install the package of your choice.
For the purpose of this tutorial, I am going to install all components.
Type “Y” and press ENTER to install the selected packages.
The system will be modified. Continue? [N] Y ##Type Y to install the selected packages
The installer will start to download and install the packages .
After few minutes, the Zimbra main menu will appear.
1) Common Configuration:
2) zimbra-ldap: Enabled
3) zimbra-logger: Enabled
4) zimbra-mta: Enabled
5) zimbra-dnscache: Enabled
6) zimbra-snmp: Enabled
7) zimbra-store: Enabled
+Create Admin User: yes
+Admin user to create: firstname.lastname@example.org
******* +Admin Password UNSET
+Anti-virus quarantine user: email@example.com
+Enable automated spam training: yes
+Spam training user: firstname.lastname@example.org
+Non-spam(Ham) training user: email@example.com
+SMTP host: zimbra.ostechnix.lan
+Web server HTTP port: 8080
+Web server HTTPS port: 8443
+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://zimbra.ostechnix.lan:7780/aspell.php
+Enable version update checks: TRUE
+Enable version update notifications: TRUE
+Version update notification email: firstname.lastname@example.org
+Version update source email: email@example.com
+Install mailstore (service webapp): yes
+Install UI (zimbra,zimbraAdmin webapps): yes
8) zimbra-spell: Enabled
9) zimbra-proxy: Enabled
10) Default Class of Service Configuration:
s) Save config to file
x) Expand menu
Address unconfigured (**) items (? - help)
As you can see in the above output, It is obvious that I didn’t set password for the Zimbra admin account. So let us configure the unconfigured items. In this case, the unconfigured item (Admin password) is available under 7th section, i.e under Zimbra Store section. So just type number 7 to configure this item.
Address unconfigured (**) items (? - help) 7
A sub-menu will appear which shows the unconfigured item. As you see here, the unconfigured item no is 4. So, let us 4 to address this item.
1) Status: Enabled
2) Create Admin User: yes
3) Admin user to create: firstname.lastname@example.org
** 4) Admin Password UNSET
5) Anti-virus quarantine user: email@example.com
6) Enable automated spam training: yes
7) Spam training user: firstname.lastname@example.org
8) Non-spam(Ham) training user: email@example.com
9) SMTP host: zimbra.ostechnix.lan
10) Web server HTTP port: 8080
11) Web server HTTPS port: 8443
12) Web server mode: https
13) IMAP server port: 7143
14) IMAP server SSL port: 7993
15) POP server port: 7110
16) POP server SSL port: 7995
17) Use spell check server: yes
18) Spell server URL: http://zimbra.ostechnix.lan:7780/aspell.php
19) Enable version update checks: TRUE
20) Enable version update notifications: TRUE
21) Version update notification email: firstname.lastname@example.org
22) Version update source email: email@example.com
23) Install mailstore (service webapp): yes
24) Install UI (zimbra,zimbraAdmin webapps): yes
Select, or 'r' for previous menu [r] 4
Next, enter a password to the Zimbra admin account. Make sure the password is very strong.
Set password for the admin user. Use any strong password. Press enter to update the password.
Password for firstname.lastname@example.org (min 6 characters): [vduf1n6p]
Then, type “r” to return back to main menu.
Select, or 'r' for previous menu [r] r
The unconfigured item is addressed and configured now.
Type a to apply the changes, and press ENTER to save the configuration file. Finally, type yes to continue and finish the installation.
*** CONFIGURATION COMPLETE - press 'a' to apply
Select from menu, or press 'a' to apply config (? - help) a ##Type 'a' and press ENTER
Save configuration data to a file? [Yes] ## Press ENTER
Save config in file: [/opt/zimbra/config.15814]
Saving config in /opt/zimbra/config.15814...done.
The system will be modified - continue? [No] yes ##Type yes and press ENTER.
At this stage, you will have a working Zimbra collaboration suite in your Ubuntu server.
Log in to Zimbra Admin dashboard
Open your web browser and the URL: https://IP-Address:7071/ or https://domain-name:7071
Enter the user name and password. The default username is admin, and the password is the one that you created earlier while installing Zimbra.
Here it is how Zimbra admin dashboard looks like.
From here, you can do all kind of administration tasks, such as creating, editing and deleting users, domains, monitoring the zimbra server, managing Email accounts, and so on.
Creating new domain
Let us create a new domain. To do so, click on the Configure -> Domain button on the left menu bar. The list of available domains, including the default domain, will be found in this section.
To create a new domain, just click on the gear button on the top right side and click New.
Fill up the domain details and click Finish.
Creating new users
Click Manage button on the left menu bar. Then, click on the gear button on the top right corner and select New.
In the next screen, Enter the user details, such as first name, last name, and click Finish.
Similarly, you can create as many users as you want. Also, you can edit the user details, or delete them from here.
Log in to Zimbra Web client
Zimbra web client is the user’s personal mailbox where users can send, receive, delete mails, organize taks, manage their calendars etc.
To access, the Zimbra web console, just type https://IP-address or https://domain-name in the address bar.
The following screen should appear. Enter the user name and its password that we created earlier from the Admin console.
Here it is how each user’s mailbox looks like.
From here, the user can send, receive mails to the other users.
Remove Zimbra Collaboration Suite
Not happy with ZCS? I hope you will like it. In case you don’t want to use ZCS remove it from your Ubuntu server as shown below.
Go the Zimbra directory:
Enter the following command to completely remove it:
sudo ./install.sh -u
Finally, delete Zimbra directory:
sudo rm -rf zcs-*
That’s all for now guys. ZCS is one of the cool and worthy collaboration platform ever I have I tested. ZCS installation, configuration, and usage is absolutely easy. Anyone can easily install it with little Linux knowledge. If you ever wanted to setup a messaging and collaboration platform for your office, give ZCS a try. You will find it worth.