Installing Zimbra Open-Source Edition on CentOS 7

When designing a Zimbra implementation in an enterprise, the IT manager also has to choose the operating system on which the Zimbra infrastructure nodes will run. To date, almost all Linux distributions are compatible with Zimbra, up to domestic RED OS and ROSA. Typically, for enterprise installations of Zimbra, the choice falls on either Ubuntu or RHEL, since these distributions are developed by commercial companies. However, it is not uncommon for IT managers to choose Cent OS, which is a production-ready, community-supported fork of Red Hat's commercial distribution of RHEL.

Installing Zimbra Open-Source Edition on CentOS 7

The minimum system requirements for Zimbra include 8 GB of RAM on the server, at least 5 GB of free space in the /opt folder, as well as a fully qualified domain name and an MX record. As a rule, the greatest problems for beginners arise precisely with the last two points. The big advantage of CentOS 7 in this case is that it allows you to set the domain name of the server at the stage of installing the operating system. This allows you to install the Zimbra Collaboration Suite without any problems, even for those users who have not had any experience with Linux before.

In our case, the domain name of the server on which Zimbra will be installed will be mail.company.ru. After the installation is complete, it remains only to add a line like 192.168.0.61 mail.company.ru mail, where instead of 192.168.0.61 you need to register the static IP address of your server. After that, you need to install all package updates, as well as add A and MX records on the server using the commands dig -t A mail.company.ru ΠΈ dig -t MX company.ru. Thus, our server will have a full-fledged domain name and now you can install Zimbra on it without any problems.

You can download the archive with the current version of the Zimbra distribution kit from the official website zimbra.com. After the archive is unpacked, all that remains is to run the installation script with the name install.sh. The set of console commands you need for this is as follows:

mkdir zimbra && cd zimbra
wget files.zimbra.com/downloads/8.8.12_GA/zcs-8.8.12_GA_3794.RHEL7_64.20190329045002.tgz --no-check-certificate
tar zxpvf zcs-8.8.12_GA_3794.RHEL7_64.20190329045002.tgz
cd zcs-8.8.12_GA_3794.RHEL7_64.20190329045002
./install.sh

Installing Zimbra Open-Source Edition on CentOS 7

Immediately after that, the Zimbra Collaboration Suite installer will start. First of all, you will have to accept the license agreement in order to proceed with the installation of ZCS. The next step is to select the modules to install. In the event that you want to create one mail server, then it makes sense to install all packages at once. If you intend to create a multi-server infrastructure with the ability to scale, then you should choose only some of the packages offered for installation, as described in one of our previous articles.

After the installation is completed, the Zimbra setup menu will open right in the terminal. In the event that you have chosen a single-server installation, then it will be enough for you to simply set the administrator password. To do this, first select item number 7, and then item 4 to set the administrator password, which must be at least 6 characters long. Once the password has been set, press the R button to return to the previous menu and then the A button to accept the changes.

After the Zimbra installation is complete, open the ports necessary for it to work in the firewall using the command firewall-cmd --permanent --add-port={25,80,110,143,443,465,587,993,995,5222,5223,9071,7071}/tcp, and then restart the firewall with the command firewall-cmd --reload

Now we just have to start Zimbra using the command service zimbra startto get started. You can access the administration console in a browser by going to company.ru:7071/zimbraAdmin/. Access for e-mail users will be at mail.company.ru. Note that in case of any problems or errors during the operation of Zimbra, the answer should be sought in the logs that can be found in the folder /opt/zimbra/log.

After the Zimbra installation is complete, you can also install the Zextras Suite extensions, which can increase the reliability and cost-effectiveness of using Zimbra by adding business-demanded features to it. In order to do this, you need to download from the site Zextras.com archive with the latest version of Zextras Suite and unzip it. After that, you need to go to the unpacked folder and run the installation script. The whole process in console form looks like this:

wget download.zextras.com/zextras_suite-latest.tgz
tar xfz zextras_suite-latest.tgz
cd zextras_suite/
./install.sh all

Installing Zimbra Open-Source Edition on CentOS 7

After that, your Zimbra will be able to archive and dedupe data in mail stores, mount secondary volumes, delegate administrative rights to other users, use online chat directly in the Zimbra web client, and much more.

Source: habr.com

Add a comment