How To Install Zimbra Server on Amazon Linux 2

Posted on 230 views

Zimbra is a collaborative software suite that provides you with an email server and a web client. It provides you with an open source server and client software for messaging and collaboration. With Zimbra you get a complete enterprise level collaboration suite with integrated file sharing and storage solution, email, calendar, documents sharing. The Zimbra Docs feature is based on LibreOffice.

Zimbra can be setup in a single server mode or multi-server setup for high availability. With the default single server installation you’ll get an antispam and antivirus capabilities. Follow below few steps to install and configure Zimbra Server on Amazon Linux 2.

Step 1: Update System

Ensure your system is updated to the latest release

sudo yum -y update

After system packages are updated to the latest releases reboot your server:

sudo systemctl reboot

Step 2: Configure DNS for Zimbra Server

The next step is the configuration of DNS for Zimbra Collaboration suite. We will add an A record and two MX records.

Record Type Name Value
A record mail.hirebestengineers.com 3.250.125.195
MX record hirebestengineers.com mail.hirebestengineers.com
MX record mail.hirebestengineers.com mail.hirebestengineers.com

Below is a screenshot of the DNS records as configured in my Cloudflare DNS server.

install-zimbra-amazon-linux-01-2048x574

Step 3: Install Zimbra on Amazon Linux 2

Install all dependencies required for running Zimbra on Amazon Linux 2.

sudo yum -y install unzip perl-core sysstat libaio nmap-ncat openssh-clients
sudo ln -s /usr/lib64/libstdc++.so.6 /usr/lib/libstdc++.so.6

Disable Postfix service:

$ sudo systemctl disable --now postfix
Removed symlink /etc/systemd/system/multi-user.target.wants/postfix.service.

Set the server hostname:

sudo hostnamectl set-hostname mail.hirebestengineers.com

Add the A record and hostname to /etc/hosts file.

$ sudo vim /etc/hosts
3.250.125.195 mail.hirebestengineers.com

Download Zimbra archive file.

wget https://files.zimbra.com/downloads/8.6.0_GA/zcs-8.6.0_GA_1153.RHEL7_64.20141215151110.tgz

Uncompress downloaded Zimbra file.

tar zxvf zcs-8.6.0_GA_1153.RHEL7_64.20141215151110.tgz

Change to the created directory.

cd zcs-8.6.0_GA_1153.RHEL7_64.20141215151110

Runt the installer bash script to deploy Zimbra Mail Server on Amazon Linux 2.

$ sudo ./install.sh --platform-override

Agree to the software terms.

----------------------------------------------------------------------
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:
https://www.zimbra.com/license/zimbra-public-eula-2-6.html
----------------------------------------------------------------------



Do you agree with the terms of the software license agreement? [N] y

Select the packages to install

Select the packages to install

Install zimbra-ldap [Y]
Install zimbra-logger [Y]
Install zimbra-mta [Y]
Install zimbra-dnscache [Y]
Install zimbra-snmp [Y]
Install zimbra-store [Y]
Install zimbra-apache [Y]
Install zimbra-spell [Y]
Install zimbra-memcached [Y]
Install zimbra-proxy [Y]

Agree for system to be modified.

Install anyway? [N] Y
The system will be modified.  Continue? [N] Y

Set correct Mail Server DNS name:

DNS ERROR - none of the MX records for mail.hirebestengineers.com
resolve to this host
Change domain name? [Yes]
Create domain: [mail.hirebestengineers.com] hirebestengineers.com

Set Zimbra Admin password:

....
 7) zimbra-store:                            Enabled
        +Create Admin User:                    yes
        +Admin user to create:                 [email protected]
******* +Admin Password                        UNSET

...
Address unconfigured (**) items  (? - help) 7
** 4) Admin Password                           UNSET
....
Select, or 'r' for previous menu [r] 4
Password for [email protected] (min 6 characters): [CehpR73OX]
Select, or 'r' for previous menu [r]

Confirm configurations are correct then apply the settings.

Main menu

   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
   8) zimbra-spell:                            Enabled
   9) zimbra-proxy:                            Enabled
  10) Default Class of Service Configuration:
   s) Save config to file
   x) Expand menu
   q) Quit

*** CONFIGURATION COMPLETE - press 'a' to apply
Select from menu, or press 'a' to apply config (? - help) a
Save configuration data to a file? [Yes]
Save config in file: [/opt/zimbra/config.14663]
Saving config in /opt/zimbra/config.14663...done.
The system will be modified - continue? [No] yes

Wait for the installation to complete then open required ports in AWS security group.

Security group firewall configurations

Below is a list of Zimbra Services ports.

https://wiki.zimbra.com/wiki/Ports

Allow required ports without exposing too much information. When done access the Zimbra Admin console.

https://(your server's hostname or IP address):7071/

From where you can administer your Zimbra Server.

install-zimbra-amazon-linux-02
coffee

Gravatar Image
A systems engineer with excellent skills in systems administration, cloud computing, systems deployment, virtualization, containers, and a certified ethical hacker.