How To Install ZCS (Zimbra Collaboration Suite) On CentOS 6.3 Part-1

How To Install ZCS (Zimbra Collaboration Suite) On CentOS 6.3 Part-1

by -
3 2485

Overview

Zimbra Collaboration Suite (ZCS) is a collaborative software suite, that includes an email server and web client, currently owned and developed by Zimbra, Inc (formerly Telligent Systems). Zimbra is a Free Email Server and Calendar & collaboration solution, built for the both public and private cloud . It is widely used in the world. Users can share folders, contacts, schedules and other things, using a very rich web interface.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 installation zimbra sever following prerequisites should be completed.

Prerequisites:

  • CentOS 6.3 64 bit with minimal installation.
  • ZCS (Release 8.0.2_GA_5569.RHEL6)
  • Selinux should be disabled.
  • Zimbra Ports should be allowed in iptables
  • Keep hostname a fully qualified domain name ( FQDN ). Here my hostname is kvit.in.
  • Dns should be configured. Create MX record and A record for your hostname (FQDN).
  • My machine IP is 192.168.0.82

Step1. Check hostname of your machine and put hostname in hosts file.

[root@kvit.in ~]# hostname kvit.in
[root@kvit.in ~]# hostname
kvit.in
[root@kvit.in ~]# echo “192.168.0.82 kvit.in” >> /etc/hosts

Step3. Disabled SELINUX and Stop iptables

Change enforcing to disabled :

[root@kvit ~]# vim /etc/sysconfig/selinux

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing – SELinux security policy is enforced.
# permissive – SELinux prints warnings instead of enforcing.
# disabled – No SELinux policy is loaded.
SELINUX=disabled    <—————Change this line.
# SELINUXTYPE= can take one of these two values:
# targeted – Targeted processes are protected,
# minimum – Modification of targeted policy. Only selected processes are protected.
# mls – Multi Level Security protection.
SELINUXTYPE=targeted

[root@kvit~]# iptables -F
[root@kvit~]# service iptables save

Step4. Stop other MTA services on the server and apache server is also stoped

[root@kvit~]# service postfix stop
[root@kvit ~]# chkconfig postfix off
[root@kvit ~]# service sendmail stop
[root@kvit~]# chkconfig sendmail off
[root@kvit~]# service httpd stop
[root@kvit ~]# chkconfig httpd off


Step5. Install the required packages and libraries for ZCS. And download ZCS from zimbra site

https://www.zimbra.com/downloads/zimbra-collaboration-open-source

[root@kvit ~]# yum -y install nc wget nano make nc sudo sysstat libtool-ltdl glibc perl ntp vim openssh-*
[root@kvit ~]# wget http://files2.zimbra.com/downloads/8.0.2_GA/zcs-8.0.2_GA_5569.RHEL6_64.20121210115059.tgz

Step5. Extract Zimbra

[root@kvit ~]# tar -xvzf zcs-8.0.2_GA_5569.RHEL6_64.20121210115059.tgz
[root@kvit ~]# cd zcs-8.0.2_GA_5569.RHEL6_64.20121210115059
[root@kvit zcs-8.0.2_GA_5569.RHEL6_64.20121210115059]# ./install.sh –platform-override

Operations logged to /tmp/install.log.1817
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 <—Press Enter

Checking for prerequisites…
FOUND: NPTL
FOUND: nc-1.84-22
FOUND: sudo-1.8.6p3-15
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   <——— Press Enter

Install zimbra-logger [Y] Y <——— Press Enter

Install zimbra-mta [Y] Y <——— Press Enter

Install zimbra-snmp [Y] Y<——— Press Enter

Install zimbra-store [Y] Y<——— Press Enter

Install zimbra-apache [Y] Y<——— Press Enter

Install zimbra-spell [Y] Y <——— Press Enter

Install zimbra-memcached [N] Y<——— Press Enter

Install zimbra-proxy [N] Y<——— Press Enter
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

You appear to be installing packages on a platform different
than the platform for which they were built.

This platform is CentOS6_64
Packages found: RHEL6_64
This may or may not work.

Using packages for a platform in which they were not designed for
may result in an installation that is NOT usable. Your support
options may be limited if you choose to continue.
Install anyway? [N] Y<——— Press Enter

Install anyway? [N] Y <——— Press Enter

The system will be modified. Continue? [N] Y<——— Press Enter

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.2_GA_5569.RHEL6_64-20121210115059.x86_64.rpm…done
zimbra-ldap……zimbra-ldap-8.0.2_GA_5569.RHEL6_64-20121210115059.x86_64.rpm…done
zimbra-logger……zimbra-logger-8.0.2_GA_5569.RHEL6_64-20121210115059.x86_64.rpm…done
zimbra-mta……zimbra-mta-8.0.2_GA_5569.RHEL6_64-20121210115059.x86_64.rpm…done
zimbra-snmp……zimbra-snmp-8.0.2_GA_5569.RHEL6_64-20121210115059.x86_64.rpm…done
zimbra-store……zimbra-store-8.0.2_GA_5569.RHEL6_64-20121210115059.x86_64.rpm…done
zimbra-apache……zimbra-apache-8.0.2_GA_5569.RHEL6_64-20121210115059.x86_64.rpm…done
zimbra-spell……zimbra-spell-8.0.2_GA_5569.RHEL6_64-20121210115059.x86_64.rpm…done
zimbra-memcached……zimbra-memcached-8.0.2_GA_5569.RHEL6_64-20121210115059.x86_64.rpm…done
zimbra-proxy……zimbra-proxy-8.0.2_GA_5569.RHEL6_64-20121210115059.x86_64.rpm…done
Operations logged to /tmp/zmsetup.04082015-194856.log
Installing LDAP configuration database…done.
Setting defaults… MX: kvit.in (192.168.0.82)

Interface: 192.168.0.82
Interface: 127.0.0.1
Interface: ::1
192.168.0.82
done.
Checking for port conflicts

Main menu

1) Common Configuration:
2) zimbra-ldap: Enabled
3) zimbra-store: Enabled
+Create Admin User: yes
+Admin user to create: admin@kvit.in
******* +Admin Password UNSET
+Anti-virus quarantine user: virus-quarantine.p1awppc1e@kvit.in
+Enable automated spam training: yes
+Spam training user: spam.pxvux1orc@kvit.in
+Non-spam(Ham) training user: ham.otnm04p2av@kvit.in
+SMTP host: kvit.in
+Web server HTTP port: 80
+Web server HTTPS port: 443
+Web server mode: https
+IMAP server port: 7143
+IMAP server SSL port: 7993
+POP server port: 7110
+POP server SSL port: 7995
+Use spell check server: yes
+Spell server URL: http://kvit.in:7780/aspell.php
+Enable version update checks: TRUE
+Enable version update notifications: TRUE
+Version update notification email: admin@kvit.in
+Version update source email: admin@kvit.in

4) zimbra-mta: Enabled
5) zimbra-snmp: Enabled
6) zimbra-logger: Enabled
7) zimbra-spell: Enabled
8) zimbra-proxy: Enabled
9) Default Class of Service Configuration:
r) Start servers after configuration yes
s) Save config to file
x) Expand menu
q) Quit

Address unconfigured (**) items (? – help) 3 #TYPE 3 and PRESS ENTER
Store configuration

1) Status: Enabled
2) Create Admin User: yes
3) Admin user to create: admin@kvit.in
** 4) Admin Password UNSET
5) Anti-virus quarantine user: virus-quarantine.p1awppc1e@kvit.in
6) Enable automated spam training: yes
7) Spam training user: spam.pxvux1orc@kvit.in
8) Non-spam(Ham) training user: ham.otnm04p2av@kvit.in
9) SMTP host: kvit.in
10) Web server HTTP port: 80
11) Web server HTTPS port: 443
12) Web server mode: https
13) IMAP server port: 7143
14) IMAP server SSL port: 7993
15) POP server port: 7110
16) POP server SSL port: 7995
17) Use spell check server: yes
18) Spell server URL: http://kvit.in:7780/aspell.php
19) Enable version update checks: TRUE
20) Enable version update notifications: TRUE
21) Version update notification email: admin@kvit.in
22) Version update source email: admin@kvit.in

Select, or ‘r’ for previous menu [r] 4 #TYPE 4 and<——— Press Enter
Password for admin@kvit.in (min 6 characters): [FJ26u33cjI] pwd1234 #Type admin password and Press enter

Store configuration

1) Status: Enabled
2) Create Admin User: yes
3) Admin user to create: admin@kvit.in
4) Admin Password set
5) Anti-virus quarantine user: virus-quarantine.p1awppc1e@kvit.in
6) Enable automated spam training: yes
7) Spam training user: spam.pxvux1orc@kvit.in
8) Non-spam(Ham) training user: ham.otnm04p2av@kvit.in
9) SMTP host: kvit.in
10) Web server HTTP port: 80
11) Web server HTTPS port: 443
12) Web server mode: https
13) IMAP server port: 7143
14) IMAP server SSL port: 7993
15) POP server port: 7110
16) POP server SSL port: 7995
17) Use spell check server: yes
18) Spell server URL: http://kvit.in:7780/aspell.php
19) Enable version update checks: TRUE
20) Enable version update notifications: TRUE
21) Version update notification email: admin@kvit.in
22) Version update source email: admin@kvit.in

Select, or ‘r’ for previous menu [r] r #Type r and <——— Press Enter

Main menu

1) Common Configuration:
2) zimbra-ldap: Enabled
3) zimbra-store: Enabled
4) zimbra-mta: Enabled
5) zimbra-snmp: Enabled
6) zimbra-logger: Enabled
7) zimbra-spell: Enabled
8) zimbra-proxy: Enabled
9) Default Class of Service Configuration:
r) Start servers after configuration yes
s) Save config to file
x) Expand menu
q) Quit
*** CONFIGURATION COMPLETE – press ‘a’ to apply
Select from menu, or press ‘a’ to apply config (? – help) a #Type r and Press enter
Save configuration data to a file? [Yes] yes <——— Press Enter
Save config in file: [/opt/zimbra/config.9762]
Saving config in /opt/zimbra/config.9762…done.
The system will be modified – continue? [No] yes <——— Press Enter
Operations logged to /tmp/zmsetup.04082015-194856.log
Operations logged to /tmp/zmsetup.04082015-194856.log
Setting local config values…done.
Initializing core config…Setting up CA…done.
Deploying CA to /opt/zimbra/conf/ca …done.
Creating SSL zimbra-store certificate…done.
Creating new zimbra-ldap SSL certificate…done.
Creating new zimbra-mta SSL certificate…done.
Creating new zimbra-proxy SSL certificate…done.
Installing mailboxd SSL certificates…done.
Installing MTA SSL certificates…done.
Installing LDAP SSL certificate…done.
Installing Proxy SSL certificate…done.
Initializing ldap…done.
Setting replication password…done.
Setting Postfix password…done.
Setting amavis password…done.
Setting nginx password…done.
Creating server entry for kvit.in…done.
Setting Zimbra IP Mode…done.
Saving CA in ldap …done.
Saving SSL Certificate in ldap …done.
Setting spell check URL…done.
Setting service ports on kvit.in…done.
Adding kvit.in to zimbraMailHostPool in default COS…done.
Setting zimbraFeatureTasksEnabled=TRUE…done.
Setting zimbraFeatureBriefcasesEnabled=FALSE…done.
Setting MTA auth host…done.
Setting TimeZone Preference…done.
Initializing mta config…done.
Setting services on kvit.in…done.
Creating domain kvit.in…done.
Setting default domain name…done.
Creating domain kvit.in…already exists.
Creating admin account admin@kvit.in…done.
Creating root alias…done.
Creating postmaster alias…done.
Creating user spam.pxvux1orc@kvit.in…done.
Creating user ham.otnm04p2av@kvit.in…done.
Creating user virus-quarantine.p1awppc1e@kvit.in…done.
Setting spam training and Anti-virus quarantine accounts…done.
Initializing store sql database…done.
Setting zimbraSmtpHostname for kvit.in…done.
Configuring SNMP…done.
Setting up syslog.conf…done.
Starting servers…done.
Installing common zimlets…
com_zimbra_proxy_config…done.
com_zimbra_webex…done.
com_zimbra_attachmail…done.
com_zimbra_srchhighlighter…done.
com_zimbra_url…done.
com_zimbra_email…done.
com_zimbra_clientuploader…done.
com_zimbra_date…done.
com_zimbra_bulkprovision…done.
com_zimbra_attachcontacts…done.
com_zimbra_adminversioncheck…done.
com_zimbra_ymemoticons…done.
com_zimbra_tooltip…done.
com_zimbra_cert_manager…done.
com_zimbra_viewmail…done.
com_zimbra_phone…done.
Finished installing common zimlets.
Restarting mailboxd…done.
Creating galsync account for default domain.

You have the option of notifying Zimbra of your installation.
This helps us to track the uptake of the Zimbra Collaboration Server.
The only information that will be transmitted is:
The VERSION of zcs installed (8.0.2_GA_5569_CentOS6_64)
The ADMIN EMAIL ADDRESS created (admin@kvit.in)

Notify Zimbra of your installation? [Yes] no <——— Press Enter
Notification skipped
Setting up zimbra crontab…done.
Moving /tmp/zmsetup.04082015-194856.log to /opt/zimbra/log
Configuration complete – press return to exit #Press enter

[root@kvit zcs-8.0.2_GA_5569.RHEL6_64.20121210115059]# su – zimbra<——— Press Enter

Start zimbra services :

[zimbra@sibrama ~]$ zmcontrol restart <——— Press Enter 
Host sibrama.com
Stopping vmware-ha…Done.
Stopping zmconfigd…Done.
Stopping stats…Done.
Stopping mta…Done.
Stopping spell…Done.
Stopping snmp…Done.
Stopping cbpolicyd…Done.
Stopping archiving…Done.
Stopping opendkim…Done.
Stopping antivirus…Done.
Stopping antispam…Done.
Stopping proxy…Done.
Stopping memcached…Done.
Stopping mailbox…Done.
Stopping logger…Done.
Stopping ldap…Done.
Host kvit.in
Starting ldap…Done.
Starting zmconfigd…Done.
Starting logger…Done.
Starting mailbox…Done.
Starting memcached…Done.
Starting proxy…Done.
Starting antispam…Done.
Starting opendkim…Done.
Starting snmp…Done.
Starting spell…Done.
Starting mta…Done.
Starting stats…Done.
[zimbra@kvit ~]$

Access admin panel via browser :

https://192.168.0.82:7071

To log in, the user is admin and the password used in the installation script.

Administratro – admin@kvit.in
password – pwd1234

zimbra login

 

How to create domain and user from admin panel and  Command mode.

Just you need log in admin panel on browser
https://192.168.0.82:7071

how to create user

Create domain

how to create domain

Click on Next and select mailserver then click on finish

how to create domain1

Create domain and user through cli

#Create domain

[zimbra@kvit ~]$ zmprov cd test.com
f7f56562-69ab-4b93-97f5-0bebe31ebeec

#Create account

[zimbra@kvit ~]$ zmprov ca prabhat@test.com krishna
e668c518-1cd2-4567-b9e6-6bcd76330fd0

Senior Linux Administrator at KV IT-Solutions Pvt Ltd || A Linux Lover || having 4 years of experience || Handling various Linux projects || Email ID : prabhat@kvit.in || cell: 9818001497

“We are born free, No gates and Windows can snatch our freedom “

Download PDF
Senior Linux Administrator at KV IT-Solutions Pvt Ltd || A Linux Lover || having 4 years of experience || Handling various Linux projects || Email ID : prabhat@kvit.in || cell: 9818001497 "We are born free, No gates and Windows can snatch our freedom "

3 COMMENTS

  1. Hello Prabhat Sir
    Namaskar

    Very useful article. Thanks for sharing your article. I think from this article I can make a zimbra mail server.
    However my problem is one, how to make it public, I mean this is in private IP (192.168.0.82) that is use in local network, If I have public IP in my Router than how to configure it in centos, So that zimbra can send mail out side domain and can receive from out side also.

    waiting for your great support

    Best regards
    Bishnu Shrestha
    Nepal

Leave a Reply

Required Captcha *