Installing and configuring Zimbra on your VPS

Zimbra, commonly known as Zimbra Collaboration Suite or ZCS is a collaborative software suite that consists of an email server and web client. It was first released 11 years ago, on July 11th 2005, by LiquidSys, which changed their name to Zimbra, Inc. There are two main versions of Zimbra currently available: an open-source version, and a commercially supported version (or Network Edition).

This tutorial will guide you through the process of installing Zimbra Collaboration software on your VPS. Before you get started, make sure to check the system requirements listed below:

Prerequisites

Evaluation and Testing

Intel/AMD 64-bit CPU 1.5 GHz
For single server installations, a minimum of 8GB of RAM is required.
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
For single server installations, a minimum of 8GB of RAM is required.
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.

Operating Systems:

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.

 

Installation

1. The first step is to open a SSH session to the Zimbra server.

2. Once you’ve done that, login as root and navigate to the directory where the Zimbra Collaboration archive tar file is stored:

cd /var/<tmp>

3. Next, you’ll need to unpack the file:

tar xzvf [zcsfullfilename.tgz]

4. Change to the correct directory:

cd [zcsfullfilename]

5. And finally, begin the installation:

./install.sh

6. The installation will check if Sendmail, Postfix and MySQL software are running. If that is the case, you will be asked to disable them.

7. Once the installation process is finished, the Zimbra software agreement will appear. Read the agreement carefully and once the “Do you agree with the terms of the software license agreement? [N]” message appears, enter Y to continue.

8. Next, you will be asked to select Zimbra’s packaging server, so press Enter to continue. This is will enable your server to be configured so as to add the Zimbra packaging repository for yum so that it can install Zimbra 3rd party packages. Here is also where you can select what individual packages to install. To install Zimbra Collaboration on a single server, enter Y for the ldap, logger, mta, snmp, store, and spell packages.

9. Next, the installer will verify if there is enough space to install Zimbra. Type Y and then press Enter to modify the system. The selected packages will be installed on the server. The installer will also check if MX record is configured in DNS, and if the hostname is resolvable via DNS.

10. Once it has verified also the necessary settings, the Main menu will be displayed, showing the default entries for the Zibra component you are currently installing. You will need to modify a few things.

11. If your time zone is not Pacific time, enter 1 to select Main menu 1, Common Configuration and then enter 6 for TimeZone. Set the correct time zone. Once you’ve done that, type r to return to the Main menu.

12. Also, enter 5 to select zimbra-dnscache from the Main menu. Select 1 to disable and then select 2 to configure the master DNS IP address(es). Finally, type r to return to the Main menu.

13. Next, enter 7 t to select zimbra-store from the Main menu. The store configuration menu will pop up.

14. In the store configuration menu, type 4 to set the Admin Password. The password must be six or more characters. Press Enter.

15. Type 25 for License filename and type the directory and file name for the Zimbra license.

16. Also, make sure to enable version update checks and version update notifications. Type r to return to the Main menu. If there are no settings that need changing, type a to apply the configuration changes. Then press Enter.

19. You will be asked whether you want to save the configuration data to a file. Type Yes and then press Enter. Next, you will asked where to save the file. Press Enter to accept the default.

20. The basic installation process is now completed. Installing all the components and configuring the server can take several minutes.

21. A few functions need to be configured post-installation so that Zimbra Collaboration operates properly. First, you need to set up the ssh keys. Zimbra Collaboration comes with a default zimbra user with a disabled password. It requires access to this account via ssh public key authentication.

22. Also, in order for the server statistics to display on the administration console, you must modify the syslog configuration files. To do that as root, type /opt/zimbra/libexec/zmsyslogsetup. This will enable the server to display statistics.

23. You must enable syslog to log statistics from remote machines.

Edit the /etc/sysconfig/syslog file, add -r to the SYSLOGD_OPTIONS
setting, SYSLOGD_options=”-r -m 0”

Stop the syslog daemon. Type /etc/init.d/syslog stop
Start the syslog daemon. Type /etc/init.d/syslog start

Note: On Debian and Ubuntu, step 2 is as follows:

Edit the /etc/default/syslogd file, add -r to the SYSLOGD_OPTIONS
setting, SYSLOGD_options=”-r -m 0”

Stop the syslog daemon. Type /etc/init.d/sysklogd stop
Start the syslog daemon. Type /etc/init.d/sysklogd start

And that’s it! You’ve successfully installed and configured Zimbra on VPS!

Leave a Reply