banner



How To Install Zimbra On Centos

This guide will assist you with installation and get-go configuration of Zimbra mail service server on CentOS 7/RHEL 7 or CentOS 8/RHEL 8 for both production or test environs.

Before starting with this guide, it is important to draw your attention to 1 aspect:

You need root rights to requite most of the commands shown in this guide. Yous can simply add "sudo" before any command (eg. sudo yum update). There is also the possibility to log in as root using the control: " sudo su – " and then enter the root password and in this case, yous no longer accept to enter "sudo" before giving commands.
However, information technology is skillful practice to avoid performing more actions equally root than you need to. Sudo facilitates this by allowing you to run private commands as root without having to log in equally root and without needing an interactive root shell for tasks. If you feel too lazy you tin can go for "sudo su", but y'all have been warned.

Requirements

  • A clean minimal installation of CentOS/RHEL 7 or 8

It'due south better to accept a fresh new installation of Bone, but in any case is important to consider that there are some services that are running anyway that may be in conflict with Zimbra, such as MTA, webserver, and mainly postfix. Most this last one, in item, we demand to stop and uninstall it in order to have everything working fine:

          sudo systemctl stop postfix sudo systemctl disable postfix  sudo yum remove postfix        
  • 8 GB of RAM
  • At least 5 GB of disk infinite for software and logs
  • FQDN (Fully Qualified Domain Name), for example "mail.domain.com"
  • A & MX record for your Server

Step 1: Updating the Arrangement

In order to update the system, paying attention to the note above about SUDO, y'all need to type the post-obit command:

          sudo yum -y update        

Step 2: Security Checking

Substep 2a: SELinux

Sometimes Security-Enhanced Linux could cause some bug, and so it is meliorate to bank check if it is enabled on your machine, and if information technology and then, change the condition to " permissive ".

Outset of all we need to check the SELinux status:

          getenforce        

If yous find the response is "enforcing", and then type:

          sudo setenforce 0        

So again check the status

          getenforce        

Now y'all should come across the status changed from "enforcing" to "permissive"

NOTE: In some cases, you may want to completely disable SELinux. Refer to the post-obit article to encounter how to do it.

Substep 2b: Firewall

Yous will probably have your OS firewall running on your server. In this example, you should open some ports in society to let everything work. Here is how to do that:

          sudo firewall-cmd --permanent --add-port={25,80,110,143,443,465,587,993,995,9071,7071}/tcp  success        
          sudo firewall-cmd --reload  success        

Delight note that Ports 7071 and 9071 are used for Admin and proxyed Admin.

At present nosotros are ready for the next pace

Footstep 3: Configure Organization Hostname

The first affair we have to exercise is to ready hostname and FQDN to signal to your server IP Address.

To set the hostname, merely blazon:

          hostnamectl prepare-hostname <hostname>        

Where <hostname> is the name of your host (for instance "mail.domain.com")

And so nosotros need to add together the right IP in file hosts, so let's type:

          nano /etc/hosts        

And then add the following line, leaving the others untouched:

          <ip-address> <FQDN> <proper name>        

Where <ip-address> is the IP address of your mail service server and <FQDN> is the fully qualified domain name you want to use, for example:

          192.168.0.11 postal service.domain.com post        

Now salvage the changes yous made and exit.

To verify that everything is right, let'south brand a quick check on A and MX using the dig command (remember to supercede "domain.com" with your own 1:

          dig -t A "mail.domain.com"  dig -t MX "domain.com"        

Substep 3a: Add a Static IP Address

We need a static IP for our mail server, so if your server uses a DHCP dynamic IP Accost, so we demand to edit our network interface carte and configure it to utilize a static IP Accost.

There are dissimilar ways to do that. To see how information technology works, please refer to the following guide:

Different ways to set a Static IP Accost on CentOS / RHEL

Pace 4: Download and Install Zimbra

Now it's time to finally install Zimbra. First of all let'due south download the latest version, just typing the following control:

—————– For RHEL/CentOS eight —————–

          wget https://files.zimbra.com/downloads/8.eight.15_GA/zcs-eight.8.15_GA_3953.RHEL8_64.20200629025823.tgz        

 —————– For RHEL/CentOS 7 —————–

          wget https://files.zimbra.com/downloads/8.eight.15_GA/zcs-8.eight.15_GA_3869.RHEL7_64.20190918004220.tgz        

Extract the downloaded .tgz file using the tar command (the name of the file could vary depending on the ane you cull to download):

          tar xvf zcs-eight.viii.15_GA_3953.RHEL8_64.20200629025823.tgz        

Then go to the extracted binder:

          cd zcs-eight.8.15_GA_3953.RHEL8_64.20200629025823        

And now run the install script:

          sudo screen ./install.sh        

Notation: To assist prevent an upgrade (or install) session from terminating before it is completed, information technology is suggested and recommended to use the "screen" command. It is important when the upgrade includes restoring a configuration that has a large number of accounts. The syntax is very simple. Just type : < screen ./install.sh >

          Once nosotros run above install script then we will get text-based installation sorcerer: Operations logged to /tmp/install.log.92OcKO6s Checking for existing installation...     zimbra-drive...NOT Plant     zimbra-imapd...NOT Establish     zimbra-patch...NOT Found     zimbra-mta-patch...NOT Establish     zimbra-proxy-patch...NOT Constitute     zimbra-license-tools...NOT FOUND     zimbra-license-extension...Non FOUND     zimbra-network-store...Not FOUND     zimbra-network-modules-ng...Non Institute     zimbra-chat...NOT Constitute     zimbra-talk...Not FOUND     zimbra-ldap...Not Institute     zimbra-logger...NOT Establish     zimbra-mta...Non Establish     zimbra-dnscache...Not FOUND     zimbra-snmp...NOT Institute     zimbra-store...Non Found     zimbra-apache...Non FOUND     zimbra-spell...NOT FOUND     zimbra-convertd...NOT Institute     zimbra-memcached...NOT Establish     zimbra-proxy...NOT FOUND     zimbra-archiving...Not Constitute     zimbra-core...NOT FOUND ---------------------------------------------------------------------- PLEASE READ THIS AGREEMENT CAREFULLY BEFORE USING THE SOFTWARE. SYNACOR, INC. ("SYNACOR") WILL ONLY LICENSE THIS SOFTWARE TO YOU IF Y'all Start ACCEPT THE TERMS OF THIS AGREEMENT. By DOWNLOADING OR INSTALLING THE SOFTWARE, OR USING THE PRODUCT, You ARE CONSENTING TO Be BOUND By THIS Understanding. IF You lot DO NOT Concur TO ALL OF THE TERMS OF THIS Understanding, THEN Do Not DOWNLOAD, INSTALL OR Utilise THE Product. License Terms for this Zimbra Collaboration Suite Software: https://www.zimbra.com/license/zimbra-public-eula-two-6.html  ---------------------------------------------------------------------- Do y'all agree with the terms of the software license agreement? [N] Y                  

Printing "Y" to accept the license, then configure the Zimbra package repository and select all the Zimbra Components to install.

Zimbra Packages

Before installing them, here is a brief description of Zimbra packages:

  • Zimbra Core : This package includes the libraries, utilities, monitoring tools, and basic configuration files. Zimbra Core is automatically installed on each server.
  • Zimbra LDAP : User authentication is provided through OpenLDAP® software. Each account on the Zimbra server has a unique mailbox ID that is the principal point of reference to identify the business relationship. The OpenLDAP schema has been customized for the Zimbra Collaboration Suite. The Zimbra LDAP server must be configured before the other servers. You tin set upward LDAP replication, configuring a primary LDAP server and replica LDAP servers
  • Zimbra MTA: Postfix is the open source mail transfer agent (MTA) that receives email via SMTP and routes each message to the appropriate Zimbra mailbox server using Local Mail Transfer Protocol (LMTP). The Zimbra MTA also includes the anti-virus and anti-spam components.
  • Zimbra Store : The Zimbra store includes the components for the mailbox server, including Jetty, which is the servlet container the Zimbra software runs within. The Zimbra mailbox server includes the post-obit components:
    • Information shop. The data store is a MySQL® database.
    • Message store. The bulletin store is where all e-mail messages and file attachments reside.
    • Index shop. Alphabetize and search technology is provided through Lucene. Index files are maintained for each mailbox.
  • Zimbra SNMP : Installing the Zimbra SNMP parcel is optional. If you choose to install zimbra-SNMP for monitoring, this parcel should be installed on every Zimbra server.
  • Zimbra Logger : Installing the Zimbra Logger parcel is optional and is installed on one mailbox server. The Zimbra Logger installs tools for syslog aggregation and reporting. If you practise not install Logger, the server statistics the server statistics section of the administration panel will not display.
    Note: The Logger package must be installed at the same fourth dimension every bit the mailbox server.
  • Zimbra Spell : Installing the Zimbra Spell package is optional. Aspell is the open source spell checker used on the Zimbra Web Client.
  • Zimbra Apache : This parcel is installed automatically when Zimbra Spell or Zimbra Convertd is installed.
  • Zimbra Proxy : Zimbra proxy can exist configured as a POP and IMAP proxy server and for reverse proxy HTTP requests. This bundle is commonly installed on the MTA server or on its ain independent server. Zimbra proxy tin exist installed on more i server. When the zimbra-proxy bundle is installed, the proxy feature is enabled. Installing the Zimbra Proxy is optional.
  • Zimbra-memcached : Memcached is automatically selected when the zimbra-proxy is installed. At to the lowest degree one server must run zimbra-memcached due westhen the proxy is in use. All installed zimbra-proxies tin can use a single memcached server.

Select the packages to install

In the cease, type "Y" to alter the System. Now it will start downloading the Zimbra-related packages and it tin take time depending upon your net speed.

          The arrangement will be modified.  Continue? [N] Y        

Once all the Zimbra packages are installed in the backend we are almost done.

First of all, we need to set the correct domain after getting DNS mistake to the primary domain that you added DNS entry for:

          DNS ERROR resolving MX for mail.domain.com        

It is suggested that the domain proper name has an MX record configured in DNS

          Alter domain name? [Yep]        

Create domain: [mail.domain.com] domain.com

                      MX: mail.domain.com (<ip-address>)        

After that, we demand to gear up the admin password. To do so, in main menu enter "7" then "4" in the side by side 1. After that, press "r" to get to previous menu and then press "a" to utilise the changes.

          1) Status:                                  Enabled    2) Create Admin User:                       yes    3) Admin user to create:                    admin@domain.com ** four) Admin Countersign                           UNSET    5) Anti-virus quarantine user:              virus-quarantine.7xi47__k@domain.com    6) Enable automatic spam training:          yes    7) Spam grooming user:                      spam.wasleuiv@domain.com    viii) Non-spam(Ham) training user:             ham.wzmkmrkq@domain.com    9) SMTP host:                               mail.domain.com   10) Web server HTTP port:                    8080   11) Web server HTTPS port:                   8443   12) Web server mode:                         https   13) IMAP server port:                        7143   xiv) IMAP server SSL port:                    7993   15) POP server port:                         7110   xvi) POP server SSL port:                     7995   17) Use spell bank check server:                  yeah   18) Spell server URL:                        http://domain.com:7780/aspell.php   19) Enable version update checks:            TRUE   20) Enable version update notifications:     Truthful   21) Version update notification e-mail:       admin@domain.com   22) Version update source email:             admin@domain.com   23) Install mailstore (service webapp):      yes   24) Install UI (zimbra,zimbraAdmin webapps): yes Select, or 'r' for previous menu [r] 4 Password for admin@domain.com (min 6 characters): [54mE0RmqN] enter admin password here        

After that get dorsum to the main menu (press "r")

          Principal menu    1) Common Configuration:    ii) zimbra-ldap:                             Enabled    iii) zimbra-logger:                           Enabled    4) zimbra-mta:                              Enabled    five) zimbra-dnscache:                         Enabled    6) zimbra-snmp:                             Enabled    7) zimbra-store:                            Enabled    eight) zimbra-spell:                            Enabled    9) zimbra-proxy:                            Enabled   10) Default Class of Service Configuration:    due south) Save config to file    10) Expand carte    q) Quit *** CONFIGURATION COMPLETE - press 'a' to utilize Select from menu, or press 'a' to utilise config (? - assist) a                  

Installation is at present complete.

Last Check

One last pace will be to check if Zimbra services are running. To practice so, you have to go on this fashion:

First of all, let'due south go out from the package folder:

          cd ..        

Now we have to admission the Zimbra server by typing:

          sudo su - zimbra        

We tin now brand a check of Zimbra services to see if they are all running:

          zmcontrol status        

NOTE: If yous were to reboot the system and practice the same matter a few of these services may non be working, due to DNSMasq that might be nonetheless to start to work completely when yous send the command afterwards the reboot. In this case simply type:

          zmcontrol restart        

To stop then restart all the services.

You could eventually get-go directly the ones that are not working, but stopping and restarting all of them is a faster way and gives also a more reliable result.

Step 5: Admission Zimbra Admin Portal & Web Mail Client

In order to access the Zimbra Admin Portal, type the below URL in Spider web Browser:

https://<mail.domain.com>:7071/ or https://<ip-address>:7071

zimbra-admin-panel

To access the Zimbra Postal service Spider web Client, type the following URL in the browser

https://<mail service.domain.com>

zimbra-webmail

Note: For both URLs, we can utilise the user name as "admin" and the countersign that nosotros set during the installation.

Download Zextras Suite for Zimbra OSE

Source: https://community.zextras.com/how-to-install-zimbra-on-centos-rhel/

Posted by: martinantrader.blogspot.com

0 Response to "How To Install Zimbra On Centos"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel