Email server
Now Reading
How to install and configure Zimbra mail server
0

How to install and configure Zimbra mail server

Installation and configuration of Zimbra mail server

Zimbra is an open source mail server to send and receive mails. This setup is handled by main agent called Mail Transfer Agent(MTA). Installation and configuration of Zimbra mail server is explained in this tutorial.

Mail server categories

SMTP – handles all the outgoing mails
POP3 / IMAP – handles all the incoming mails
Mail filtering – handles processing the email to organise according to specific criteria ( i.e for filtering mails )

To install Zimbra Mail server

Zimbra Mail server handles all the incoming and the outgoing mails. It uses SMTP and POP3 / IMAP protocols. It supports all the linux distribution. Here, we are going to install zimbra in CentOS.

Now create an entry in /etc/hosts file with the IP and the domian name. Here, we are setting the IP as 192.168.7.19 and hostname as mail.linuxhelp.com

[root@mail ~]# vim /etc/hosts
192.168.7.19   mail.linuxhelp.com  mail

2
Note: The domain name must start only with ‘mail’.

Once the basic setups are completed, download the zimbra tar file from its official website,
https://www.zimbra.com/downloads/zimbra-collaboration-open-source/
3

Choose the respective distribution and download the file.

4
The tar package will be downloaded to Downloads directory.

[root@mail  Downloads]# cd Downloads
[root@mail  Downloads]#  ls –l
total 873584
-rw-r—r--  1  root  root 894543081  May 24 13.35  zcs-8.6.0_GA_1153.RHEL_64.20141215151155.tgz

By default, zimbra will be installed in /opt location. So move the tar package to /opt location and extract over there.

[root@mail  Downloads]#  mv  zcs-8.6.0_GA_1153.RHEL_64.20141215151155.tgz  /opt
[root@mail  Downloads]#  cd  /opt
[root@mail  opt]#  tar  -xvf   zcs-8.6.0_GA_1153.RHEL_64.20141215151155.tgz
[root@mail  opt]#  cd  zcs-8.6.0_GA_1153.RHEL_64.20141215151155
[root@mail  zcs-8.6.0_GA_1153.RHEL_64.20141215151155]#  ls  -l

drwxr-xr-x  2  root  root 8020  Dec  16  2014  docs
-rwxr-xr-x  1  root  root 8020  Dec  16  2014  install.sh
drwxr-xr-x  2  root  root 8020  Dec  16  2014  packages
.
.
.

Run the installation script ./install.sh to install the zimbra.

[root@mail  zcs-8.6.0_GA_1153.RHEL_64.20141215151155]#  ./install.sh

Once the installation process is started, it ask for the License Agreement. Give yes and continue.
The packages mentioned in the below image will be downloaded in your system which is necessary for zimbra. Give yes to proceed with the installation.
5

Since we have not created any MX record for this domain, it displays the following DNS error to mail.linuxhelp.com domain.
6
To know how to create a new MX record in cPanel/WHM, visit
https://www.linuxhelp.com/how-to-create-mx-record-in-whmcpanel/

After creating the MX record retry with the same step and the following message appears.
7

Note: Port conflict error can be solved after the zimbra is installed.

To set the admin password

In the admin password category you can set the password. Type 7 to continue, then type 4 to set the admin password for zimbra.
Type your password and enter r to proceed with next step.
21

To apply the configuration, press a. Type yes to all the questions to continue with the configuration.
Now the Zimbra is successfully installed.

Open the browser and navigate to https://mail.linuxhelp.com or https://<IP_address> 
8

You will get the home page and all the configurations is to be made in the Admin console. Go to Drop-down at the right corner and select Admin console.
10

Enter the same login credentials used at first, to open the Admin console page.
11
Once its logged in, you can see that few services are not running.

13To run those services, Open the terminal and check the status of zimbra to know the exact service which is stopped.

[root@mail zcs-8.6.0_GA_1153_RHEL6_64.20141215151155]# service zimbra status

14
Its confirmed that mta service is not running. At first, restart zimbra.

[root@mail zcs-8.6.0_GA_1153_RHEL6_64.20141215151155]# service zimbra restart

And check the services like httpd, postfix and named.

[root@mail zcs-8.6.0_GA_1153_RHEL6_64.20141215151155]# service postfix status
master is stopped
[root@mail zcs-8.6.0_GA_1153_RHEL6_64.20141215151155]# service httpd status
httpd is stopped
[root@mail zcs-8.6.0_GA_1153_RHEL6_64.20141215151155]# service named status
named is running

NOTE: httpd and postfix/sendmail service should be stopped.

Finally check the status of zimbra again.

[root@mail zcs-8.6.0_GA_1153_RHEL6_64.20141215151155]# service zimbra status

15
You can find that all the services are active.

Now go to the Admin console page and refresh.

To add user or domain

After all the services are active, go to Manage, then click SettingsNew to add the user.
16
Now enter the user name, password and other details to create a new user.
17Once you hit the Finish button, a new account will be created.
18

Now send a mail from the user account to the admin account for checking the Zimbra mail.
19
The mail is successfully received in Admin account.
20

Thank you! for using Linux Help.

You find this tutorial helpful? Share with your friends to keep it alive.

For more help topics browse our website www.linuxhelp.com

Be the first to comment, we value your suggestions. For further queries please comment below.

Leave a Response