During the design of the implementation of Zimbra in the enterprise, the IT manager has to choose the operating system on which the Zimbra infrastructure nodes will work. Today, almost all Linux distributions are compatible with Zimbra, right up to the Russian RED OS and DEW. Usually, for the installation of Zimbra in enterprises, the choice falls either on Ubuntu or RHEL, since commercial companies are involved in the development of these distributions. However, the choice of IT managers often falls on Cent OS, which is designed to work in production and supported by the community fork of the commercial distribution of RHEL from Red Hat.

Zimbra's minimum system requirements include 8 GB of RAM on the server, at least 5 GB of free space in the / opt folder, as well as a full domain name and MX-record. As a rule, the newcomers have the greatest problems 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 during the installation of the operating system. This allows you to install the Zimbra Collaboration Suite without any problems even to 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, all that remains is to add a line like
192.168.0.61 mail.company.ru mail , where instead of 192.168.0.61 you need to enter 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 and
dig -t MX company.ru . Thus, our server will have a full domain name and now you can easily install Zimbra on it.
You can download the archive with the latest version of the Zimbra distribution 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

Immediately after that, the Zimbra Collaboration Suite installation program will start. First of all, you will have to accept the license agreement in order to continue installing ZCS. The next step is to select modules for installation. In that case, if you want to create one mail server, then it makes sense to install all the packages at once. If you intend to create a multiserver infrastructure with scalability, then you should choose only some of the proposed packages for installation, as described in one of our previous articles.
After the installation is complete, the Zimbra settings menu will open right in the terminal. If you selected a single-server installation, then you just need to set an administrator password. To do this, first select item number 7, and then item 4 to set an administrator password that must be at least 6 characters. After 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 firewall ports required for it to work with the
firewall-cmd --permanent --add-port = {25,80,110,143,443,465,587,993,995,5222,5223,9071,707171 / tcp command , and then reload the firewall using the command
firewall-cmd --reloadNow we just have to run Zimbra using the
service zimbra start command to get started. You can access the administration console in a browser by going to
company.ru : 7071 / zimbraAdmin / . Access to e-mail users will be carried out at
mail.company.ru . Note that in case of any problems or errors during the work of Zimbra, the answer should be found in the logs, which can be found in the
/ opt / zimbra / log folder.
After the Zimbra installation is completed, you can also install Zextras Suite extensions that can increase the reliability and cost-effectiveness of using Zimbra by adding business-like features to it. In order to do this, you need to download the archive with the latest version of Zextras Suite from the site
Zextras.com and unpack it. After that, go to the unpacked folder and run the installation script. The whole process in the console view is as follows:
wget download.zextras.com/zextras_suite-latest.tgz
tar xfz zextras_suite-latest.tgz
cd zextras_suite /
./install.sh all

After that, your Zimbra will be able to archive and deduplicate data in mail storages, connect secondary volumes, delegate administrator privileges to other users, use online chat directly in the Zimbra web client, and much more.