twitter

How To's Tutorials

Install & configure Zimbra Open Source Mail Server on CentOS 6.X / RHEL 6.X

Overview :

 

Zimbra  is a Free Email Server and Calendar & collaboration solution, built for the both  public and private cloud . It is also considered an Exchange replacement. Zimbra provides a web GUI from where mailserver admin can manage zimbra server. Zimbra provides end users with a feature-rich browser-based experience that enables them to seamlessly and securely connect to their emails on any device or platform.


In this tutorial we will install & configure open source zimbra server on CentOS 6.X / RHEL 6.X. Before installating zimbra sever following prerequisite should be completed.

 

1. Create MX record for your domain
2. Create A record for your's Hostname

 

In my case domain is “nextstep4itmail.com” & Server's Hostname is “Zimbra.nextstep4itmail.com

 

Step: 1 Install Neccessary  Packages & update hosts file

 

# yum -y install nc wget nano make nc sudo sysstat libtool-ltdl glibc perl ntp


Edit the file /etc/hosts


x.x.x.x zimbra.nextstep4itmail.com

 

Step: 2 Stop Sendmail & postfix service if started & Disabled Selinux

 

# chkconfig sendmail off ; service sendmail stop ; chkconfig postfix off ; service  postfix stop ;

 

Disable selinux  in the file /etc/selinux/config change the selinux= line to SELINUX=disabled

 

Step:3 Download the Zimbra Server using below command

 

# wget http://files2.zimbra.com/downloads/8.0.4_GA/zcs-8.0.4_GA_5737.RHEL6_64.20130524120036.tgz

 

Step:4 Now extract Zimbra tar file using below command

 

# tar -zxpvf zcs-8.0.4_GA_5737.RHEL6_64.20130524120036.tgz

 

Step:5 Now Change the directory & run below command to install zimbra

 

# cd zcs-8.0.4_GA_5737.RHEL6_64.20130524120036
# ./install.sh  --platform-override

 

We are using '--platform-override' option in above command because installation script is only for Redhat  Linux but we are installating on CentOS 6.X machine so to override the Platform condition we are using this option. When we exceute the above command we will get below output and follow the instructions :

 

Operations logged to /tmp/install.log.2570
Checking for existing installation...
zimbra-ldap...NOT FOUND
zimbra-logger...NOT FOUND
zimbra-mta...NOT FOUND
zimbra-snmp...NOT FOUND
zimbra-store...NOT FOUND
zimbra-apache...NOT FOUND
zimbra-spell...NOT FOUND
zimbra-convertd...NOT FOUND
zimbra-memcached...NOT FOUND
zimbra-proxy...NOT FOUND
zimbra-archiving...NOT FOUND
zimbra-cluster...NOT FOUND
zimbra-core...NOT FOUND

PLEASE READ THIS AGREEMENT CAREFULLY BEFORE USING THE SOFTWARE. ZIMBRA, INC. ("ZIMBRA") 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 the Zimbra Collaboration Suite:
http://www.zimbra.com/license/zimbra_public_eula_2.1.html
Do you agree with the terms of the software license agreement? [N] Y
Do you agree with the terms of the software license agreement? [N] Y

License Terms for the Zimbra Collaboration Suite:
http://www.zimbra.com/license/zimbra_public_eula_2.1.html
Do you agree with the terms of the software license agreement? [N] Y
Do you agree with the terms of the software license agreement? [N] Y

Checking for prerequisites...
FOUND: NPTL
FOUND: nc-1.84-22
FOUND: sudo-1.8.6p3-12
FOUND: libidn-1.18-2
FOUND: gmp-4.3.1-7
FOUND: /usr/lib64/libstdc++.so.6
Checking for suggested prerequisites...
FOUND: perl-5.10.1
FOUND: sysstat
FOUND: sqlite

Prerequisite check complete.
Checking for installable packages
Found zimbra-core
Found zimbra-ldap
Found zimbra-logger
Found zimbra-mta
Found zimbra-snmp
Found zimbra-store
Found zimbra-apache
Found zimbra-spell
Found zimbra-memcached
Found zimbra-proxy

Select the packages to install
Install zimbra-ldap [Y] Y
Install zimbra-logger [Y] Y
Install zimbra-mta [Y] Y
Install zimbra-snmp [Y] Y
Install zimbra-store [Y] Y
Install zimbra-apache [Y] Y
Install zimbra-spell [Y] Y
Install zimbra-memcached [N] Y
Install zimbra-proxy [N] Y
Checking required space for zimbra-core
Checking space for zimbra-store

Installing:
zimbra-core
zimbra-ldap
zimbra-logger
zimbra-mta
zimbra-snmp
zimbra-store
zimbra-apache
zimbra-spell
zimbra-memcached
zimbra-proxy

The system will be modified.  Continue? [N] Y
Removing /opt/zimbra
Removing zimbra crontab entry...done.
Cleaning up zimbra init scripts...done.
Cleaning up /etc/ld.so.conf...done.
Cleaning up /etc/security/limits.conf...done.

Finished removing Zimbra Collaboration Server.

Installing packages
zimbra-core......zimbra-core-8.0.4_GA_5737.RHEL6_64-20130524120036.x86_64.rpm...done
zimbra-ldap......zimbra-ldap-8.0.4_GA_5737.RHEL6_64-20130524120036.x86_64.rpm...done
zimbra-logger......zimbra-logger-8.0.4_GA_5737.RHEL6_64-20130524120036.x86_64.rpm...done
zimbra-mta......zimbra-mta-8.0.4_GA_5737.RHEL6_64-20130524120036.x86_64.rpm...done
zimbra-snmp......zimbra-snmp-8.0.4_GA_5737.RHEL6_64-20130524120036.x86_64.rpm...done
zimbra-store......zimbra-store-8.0.4_GA_5737.RHEL6_64-20130524120036.x86_64.rpm...done
zimbra-apache......zimbra-apache-8.0.4_GA_5737.RHEL6_64-20130524120036.x86_64.rpm...done
zimbra-spell......zimbra-spell-8.0.4_GA_5737.RHEL6_64-20130524120036.x86_64.rpm...done
zimbra-memcached......zimbra-memcached-8.0.4_GA_5737.RHEL6_64-20130524120036.x86_64.rpm...done
zimbra-proxy......zimbra-proxy-8.0.4_GA_5737.RHEL6_64-20130524120036.x86_64.rpm...done

Operations logged to /tmp/zmsetup.12152013-081656.log
Installing LDAP configuration database...done.
Setting defaults...

DNS ERROR resolving MX for zimbra.nextstep4itmail.com
It is suggested that the domain name have an MX record configured in DNS
Change domain name? [Yes] Yes
Create domain: [zimbra.nextstep4itmail.com] nextstep4itmail.com                                           
MX: zimbra.nextstep4itmail.com (162.13.151.48)
Interface: 162.13.151.48
Interface: 2a00:1a48:7807:102:c7d4:45f6:ff08:2209
Interface: 10.181.72.68
Interface: 127.0.0.1
Interface: ::1
done.

 

Step:6 Next you will come to the Main Menu which will show your configuration. Select #3 then change the Admin Password under option #4 next hit r to go back.

 

*** CONFIGURATION COMPLETE - press 'a' to apply
Select from menu, or press 'a' to apply config (? - help) a
Save configuration data to a file? [Yes] Yes
Save config in file: [/opt/zimbra/config.10975]
Saving config in /opt/zimbra/config.10975...done.
The system will be modified - continue? [No] Yes
Operations logged to /tmp/zmsetup.12152013-081656.log
Setting local config values...

 

When Configuration complete - press return to exit. Now the zimbra installation is completed.

 

Step:7 Access web administration console

 

Use the URL “https://<Server's HostName>:7071


In my case URL is “https://zimbra.nextstep4itmail.com:7071
Use the User Name as admin and Password that we have set while installation in the above steps.

 

Install & configure Zimbra Open Source MailServer on CentOS 6.X / RHEL 6.X

 

After entering the credential, we will get the below Admin Console from where mail admin can monitor and can perform the tasks like creating users a, setting quota for users & reset their password & much more...

 

Install & configure Zimbra Open Source MailServer on CentOS 6.X / RHEL 6.X

 

Step:8 End Users can access their mails via Web


Use the the URL “https://zimbra.nextstep4itmail.com”, replace the hostname according to your setup. After entring the  the crendetails, end users will get the below console from where they can send & recieve emails.

 

Install & configure Zimbra Open Source MailServer on CentOS 6.X / RHEL 6.X

 

Note : Use zmcontrol Command to  stop, start & to check Status of zimbra Server

 

[root@zimbra ~]# su - zimbra
[zimbra@zimbra ~]$ zmcontrol status
[zimbra@zimbra ~]$ zmcontrol stop
[zimbra@zimbra ~]$ zmcontrol start

 

Shahil on, 2013-12-24 05:51:40
Hello Sir, Is this package(wget http://files2.zimbra.com/downloads/8.0.4_GA/zcs-8.0.4_GA_5737.RHEL6_64.20130524120036.tgz) for 64 bit or 32 bit ?? Reply From Admin : This is a tar file which includes all the required files and RPMs for Zim
Shahil on, 2013-12-24 06:05:52
Hello Sir, Is there Zimbra available for Centos 6 32Bit ?? Reply From Admin : Yes , zimbra 32-bit package is also available for CentOS
Truong Nguyen on, 2014-01-13 03:13:45
Dear all, Mail server Zimbra can send how much email a day. Thanks all. Reply From Admin : Zimbra is generally used for corporate mailing not for the bulk mailing.
bish on, 2013-12-27 09:32:07
installing from tarballs of RPMs? That\'s SO CLOSE to usable it\'s like a stumble in front of the goal. Why do people blindly install stuff and apparently not consider maintenance? Maybe consider finding a good* repo with the pieces you need
arduino on, 2013-12-30 08:31:25
hello i follow the installation steps but i have problem with the space \\\\\\\"/opt/zimbra requires at least 5 gb of space to install\\\\\\\" what i have to do ? thanks. Reply From Admin : Extend the size of /opt
Post Your Comments
Name:
Email:
Comment:
Security Code  *
Enter Security Code  *
Can't read the image? click here to refresh