Home / ENGLISH / Zimbra System / Zimbra Server: How to install zimbra 8.7 on Centos

Zimbra Server: How to install zimbra 8.7 on Centos

Tuhocmang.com – Zimbra System Zimbra Server: How to install zimbra 8.7 on Centos

How to install zimbra 8.7 on Centos

Zimbra Opensource is one of the best email system in the world. Many companies are using Zimbra.

This article will help you install Zimbra 8.7.x on Centos (I use centos 6.8)

 Prerequisites

  • CentOS 6.8 server.
  • rootaccess to the server.
  • A fully qualified domain name ( FQDN ) for your Zimbra mail server mx record and ensure your domain is configured correctly.

Step 1: update server

yum install update –y

Step 2: configure hosts and hostname

/etc/hosts (you have to do this step, unless you can’t install Zimbra successfully)

configure hosts and hostname
configure hosts and hostname

/etc/sysconfig/network

configure hosts and hostname
configure hosts and hostname

Step 3: Turn off iptables ( we will turn on iptables and opening Zimbra ports after installation)

service iptables stop

chkconfig iptables off

Step 4: Disabled Selinux

/etc/sysconfig/selinux

Disabled Selinux
Disabled Selinux

Step 5: Stop MTA service installed on server

service postfix stop

service sendmail stop

chkconfig postfix off

chkconfig sendmail off

 

Step 6: Install required packets

yum install perl perl-core ntpl nmap sudo libidn gmp libaio libstdc++ unzip sysstat sqlite nc -y

Step 7: configure local DNS server

(you have to install local DNS on another server if you want to install zimbra-dnscache packet. Unless you will get the error during installation “  Port conflict detected: 53 (zimbra-dnscache) )

On this case, i will install local DNS on this zimbra email server

Zimbra must nslookup MX record, So:

You must have local DNS or you must configure record on public DNS

 

Zimbra needs to lookup MX record of your domain

  • Install local DNS (I will install DNS on this server)

yum install bind bind-utils

  • Configure local DNS

Configure 2 parameters on file /etc/named.conf

listen-on port 53 { 127.0.0.1; any; };

allow-query     { localhost; any; };

config local DNS
config local DNS

 

Add a zone like that

zone “tuhocmang.local” IN {

type master;

file “db.tuhocmang.local”;

allow-update { none; };

};

config local DNS
config local DNS

 

Create database for a new zone which has been created in folder /var/named/

touch /var/named/db.tuhocmang.local

chgrp named /var/named/db.tuhocmang.local

nano /var/named/db.tuhocmang.local

 

Add  record like that

fill as follows

$TTL 1D

@       IN SOA  ms01.tuhocmang.local. root.tuhocmang.local. (

0       ; serial

1D      ; refresh

1H      ; retry

1W      ; expire

3H )    ; minimum

@       IN      NS      ms01.tuhocmang.local.

@       IN      MX      0 ms01.tuhocmang.local.

ms01     IN      A       192.168.10.128

mail    IN      A       192.168.10.128

 

Restart service DNS

service named restart

chkconfig named on

Check MX record that you have just create and ensure you can nslookup successfully

Step 8: download source: Zimbra 8.7

yum install wget –y

Download zimbra 8.7 from Zimbra homepage (you can download older packets if you want)

I downloaded Zimbra 8.7.1 (the newest version)

mkdir /root.zimbra

cd /root/zimbra

wget https://files.zimbra.com/downloads/8.7.1_GA/zcs-8.7.1_GA_1670.RHEL6_64.20161025035141.tgz

Uncompress packet

tar -xvzf zcs-8.7.1_GA_1670.RHEL6_64.20161025035141.tgz

cd zcs-8.7.1_GA_1670.RHEL6_64.20161025035141

Install Zimbra

./install.sh –platform-override

(if you install on redhat, no need parameter: –platform-override)

Press Y to aggress license

install zimbra on Centos
install zimbra on Centos

Press Y all packets if you want to install all (in my opinion, with All in One Server, you should install all components include proxy, memcache….)

install zimbra on Centos
install zimbra on Centos

Wait some time

install zimbra on Centos
install zimbra on Centos

 

install zimbra on Centos
install zimbra on Centos
install zimbra on Centos
install zimbra on Centos

During installation, If you got error Port conflict detected: 53 (zimbra-dnscache), it’s ok – we will disabled dnscache later (Because i installed local DNS on same machine with Zmbra so i got this error ^^)

Press key to configure password

install zimbra on Centos
install zimbra on Centos

Please check my whole process below:

Main menu

 

1) Common Configuration:

2) zimbra-ldap:                             Enabled

3) zimbra-logger:                           Enabled

4) zimbra-mta:                              Enabled

5) zimbra-dnscache:                         Enabled

6) zimbra-snmp:                             Enabled

7) zimbra-store:                            Enabled

+Create Admin User:                    yes

+Admin user to create:                 admin@tuhocmang.local

******* +Admin Password                        UNSET

+Anti-virus quarantine user:           virus-quarantine.hepa0f9cc@tuhocmang.local

+Enable automated spam training:       yes

+Spam training user:                   spam.9alofu89y@tuhocmang.local

+Non-spam(Ham) training user:          ham.enklfbif@tuhocmang.local

+SMTP host:                            ms01.tuhocmang.local

+Web server HTTP port:                 8080

+Web server HTTPS port:                8443

+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://ms01.tuhocmang.local:7780/aspell.php

+Enable version update checks:         TRUE

+Enable version update notifications:  TRUE

+Version update notification email:    admin@tuhocmang.local

+Version update source email:          admin@tuhocmang.local

+Install mailstore (service webapp):   yes

+Install UI (zimbra,zimbraAdmin webapps): yes

 

8) zimbra-spell:                            Enabled

9) zimbra-proxy:                            Enabled

10) Default Class of Service Configuration:

  1. s) Save config to file
  2. x) Expand menu
  3. q) Quit

 

Address unconfigured (**) items  (? – help) 7

 

 

Store configuration

 

1) Status:                                  Enabled

2) Create Admin User:                       yes

3) Admin user to create:                    admin@tuhocmang.local

** 4) Admin Password                           UNSET

5) Anti-virus quarantine user:              virus-quarantine.hepa0f9cc@tuhocmang.local

6) Enable automated spam training:          yes

7) Spam training user:                      spam.9alofu89y@tuhocmang.local

8) Non-spam(Ham) training user:             ham.enklfbif@tuhocmang.local

9) SMTP host:                               ms01.tuhocmang.local

10) Web server HTTP port:                    8080

11) Web server HTTPS port:                   8443

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://ms01.tuhocmang.local:7780/aspell.php

19) Enable version update checks:            TRUE

20) Enable version update notifications:     TRUE

21) Version update notification email:       admin@tuhocmang.local

22) Version update source email:             admin@tuhocmang.local

23) Install mailstore (service webapp):      yes

24) Install UI (zimbra,zimbraAdmin webapps): yes

 

Select, or ‘r’ for previous menu [r] 4

 

gPassword for admin@tuhocmang.local (min 6 characters): [WmzMVLaJz] csvn123

 

Store configuration

 

1) Status:                                  Enabled

2) Create Admin User:                       yes

3) Admin user to create:                    admin@tuhocmang.local

4) Admin Password                           set

5) Anti-virus quarantine user:              virus-quarantine.hepa0f9cc@tuhocmang.local

6) Enable automated spam training:          yes

7) Spam training user:                      spam.9alofu89y@tuhocmang.local

8) Non-spam(Ham) training user:             ham.enklfbif@tuhocmang.local

9) SMTP host:                               ms01.tuhocmang.local

10) Web server HTTP port:                    8080

11) Web server HTTPS port:                   8443

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://ms01.tuhocmang.local:7780/aspell.php

19) Enable version update checks:            TRUE

20) Enable version update notifications:     TRUE

21) Version update notification email:       admin@tuhocmang.local

22) Version update source email:             admin@tuhocmang.local

23) Install mailstore (service webapp):      yes

24) Install UI (zimbra,zimbraAdmin webapps): yes

 

Select, or ‘r’ for previous menu [r] 4

 

Password for admin@tuhocmang.local (min 6 characters): [gcsvn123] gcsvn123

 

Store configuration

 

1) Status:                                  Enabled

2) Create Admin User:                       yes

3) Admin user to create:                    admin@tuhocmang.local

4) Admin Password                           set

5) Anti-virus quarantine user:              virus-quarantine.hepa0f9cc@tuhocmang.local

6) Enable automated spam training:          yes

7) Spam training user:                      spam.9alofu89y@tuhocmang.local

8) Non-spam(Ham) training user:             ham.enklfbif@tuhocmang.local

9) SMTP host:                               ms01.tuhocmang.local

10) Web server HTTP port:                    8080

11) Web server HTTPS port:                   8443

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://ms01.tuhocmang.local:7780/aspell.php

19) Enable version update checks:            TRUE

20) Enable version update notifications:     TRUE

21) Version update notification email:       admin@tuhocmang.local

22) Version update source email:             admin@tuhocmang.local

23) Install mailstore (service webapp):      yes

24) Install UI (zimbra,zimbraAdmin webapps): yes

 

Select, or ‘r’ for previous menu [r] r

 

Main menu

 

1) Common Configuration:

2) zimbra-ldap:                             Enabled

3) zimbra-logger:                           Enabled

4) zimbra-mta:                              Enabled

5) zimbra-dnscache:                         Enabled

6) zimbra-snmp:                             Enabled

7) zimbra-store:                            Enabled

8) zimbra-spell:                            Enabled

9) zimbra-proxy:                            Enabled

10) Default Class of Service Configuration:

  1. s) Save config to file
  2. x) Expand menu
  3. q) Quit

 

*** CONFIGURATION COMPLETE – press ‘a’ to apply

Select from menu, or press ‘a’ to apply config (? – help) 2

 

 

Ldap configuration

 

1) Status:                                  Enabled

2) Create Domain:                           yes

3) Domain to create:                        tuhocmang.local

4) Ldap root password:                      set

5) Ldap replication password:               set

6) Ldap postfix password:                   set

7) Ldap amavis password:                    set

8) Ldap nginx password:                     set

9) Ldap Bes Searcher password:              set

 

Select, or ‘r’ for previous menu [r] 4

 

Password for ldap root user (min 6 characters): [xHobIXUYq] gcsvn123

 

Ldap configuration

 

1) Status:                                  Enabled

2) Create Domain:                           yes

3) Domain to create:                        tuhocmang.local

4) Ldap root password:                      set

5) Ldap replication password:               set

6) Ldap postfix password:                   set

7) Ldap amavis password:                    set

8) Ldap nginx password:                     set

9) Ldap Bes Searcher password:              set

 

Select, or ‘r’ for previous menu [r] 4

 

Password for ldap root user (min 6 characters): [gcsvn123]

 

Ldap configuration

 

1) Status:                                  Enabled

2) Create Domain:                           yes

3) Domain to create:                        tuhocmang.local

4) Ldap root password:                      set

5) Ldap replication password:               set

6) Ldap postfix password:                   set

7) Ldap amavis password:                    set

8) Ldap nginx password:                     set

9) Ldap Bes Searcher password:              set

 

Select, or ‘r’ for previous menu [r] 5

 

Password for ldap replication user (min 6 characters): [xHobIXUYq] gcsvn123

 

Ldap configuration

 

1) Status:                                  Enabled

2) Create Domain:                           yes

3) Domain to create:                        tuhocmang.local

4) Ldap root password:                      set

5) Ldap replication password:               set

6) Ldap postfix password:                   set

7) Ldap amavis password:                    set

8) Ldap nginx password:                     set

9) Ldap Bes Searcher password:              set

 

Select, or ‘r’ for previous menu [r] 6

 

Password for ldap Postfix user (min 6 characters): [xHobIXUYq] gcsvn123

 

Ldap configuration

 

1) Status:                                  Enabled

2) Create Domain:                           yes

3) Domain to create:                        tuhocmang.local

4) Ldap root password:                      set

5) Ldap replication password:               set

6) Ldap postfix password:                   set

7) Ldap amavis password:                    set

8) Ldap nginx password:                     set

9) Ldap Bes Searcher password:              set

 

Select, or ‘r’ for previous menu [r] 7

 

Password for ldap Amavis user (min 6 characters): [xHobIXUYq] gcsvn123

 

Ldap configuration

 

1) Status:                                  Enabled

2) Create Domain:                           yes

3) Domain to create:                        tuhocmang.local

4) Ldap root password:                      set

5) Ldap replication password:               set

6) Ldap postfix password:                   set

7) Ldap amavis password:                    set

8) Ldap nginx password:                     set

9) Ldap Bes Searcher password:              set

 

Select, or ‘r’ for previous menu [r] 8

 

Password for ldap Nginx user (min 6 characters): [xHobIXUYq] gcsvn123

 

Ldap configuration

 

1) Status:                                  Enabled

2) Create Domain:                           yes

3) Domain to create:                        tuhocmang.local

4) Ldap root password:                      set

5) Ldap replication password:               set

6) Ldap postfix password:                   set

7) Ldap amavis password:                    set

8) Ldap nginx password:                     set

9) Ldap Bes Searcher password:              set

 

Select, or ‘r’ for previous menu [r] 9

 

Password for ldap BES user (min 6 characters): [xHobIXUYq] gcsvn123

 

Ldap configuration

 

1) Status:                                  Enabled

2) Create Domain:                           yes

3) Domain to create:                        tuhocmang.local

4) Ldap root password:                      set

5) Ldap replication password:               set

6) Ldap postfix password:                   set

7) Ldap amavis password:                    set

8) Ldap nginx password:                     set

9) Ldap Bes Searcher password:              set

 

Select, or ‘r’ for previous menu [r] r

 

Main menu

 

1) Common Configuration:

2) zimbra-ldap:                             Enabled

3) zimbra-logger:                           Enabled

4) zimbra-mta:                              Enabled

5) zimbra-dnscache:                         Enabled

6) zimbra-snmp:                             Enabled

7) zimbra-store:                            Enabled

8) zimbra-spell:                            Enabled

9) zimbra-proxy:                            Enabled

10) Default Class of Service Configuration:

  1. s) Save config to file
  2. x) Expand menu
  3. q) Quit

 

*** CONFIGURATION COMPLETE – press ‘a’ to apply

Select from menu, or press ‘a’ to apply config (? – help) 4

 

 

Mta configuration

 

1) Status:                                  Enabled

2) Enable Spamassassin:                     yes

3) Enable Clam AV:                          yes

4) Enable OpenDKIM:                         yes

5) Notification address for AV alerts:      admin@tuhocmang.local

6) Bind password for postfix ldap user:     set

7) Bind password for amavis ldap user:      set

 

Select, or ‘r’ for previous menu [r] 6

 

Password for ldap Postfix user (min 6 characters): [gcsvn123]

 

Mta configuration

 

1) Status:                                  Enabled

2) Enable Spamassassin:                     yes

3) Enable Clam AV:                          yes

4) Enable OpenDKIM:                         yes

5) Notification address for AV alerts:      admin@tuhocmang.local

6) Bind password for postfix ldap user:     set

7) Bind password for amavis ldap user:      set

 

Select, or ‘r’ for previous menu [r] r

 

Main menu

 

1) Common Configuration:

2) zimbra-ldap:                             Enabled

3) zimbra-logger:                           Enabled

4) zimbra-mta:                              Enabled

5) zimbra-dnscache:                         Enabled

6) zimbra-snmp:                             Enabled

7) zimbra-store:                            Enabled

8) zimbra-spell:                            Enabled

9) zimbra-proxy:                            Enabled

10) Default Class of Service Configuration:

  1. s) Save config to file
  2. x) Expand menu
  3. q) Quit

 

*** 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.12378]

Saving config in /opt/zimbra/config.12378…done.

The system will be modified – continue? [No] yes

Operations logged to /tmp/zmsetup.20161223-092842.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.

Setting BES searcher password…done.

Creating server entry for ms01.tuhocmang.local…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 ms01.tuhocmang.local…done.

Setting zimbraFeatureTasksEnabled=TRUE…done.

Setting zimbraFeatureBriefcasesEnabled=TRUE…done.

Checking current setting of zimbraReverseProxyAvailableLookupTargets

Querying LDAP for other mailstores

Searching LDAP for reverseProxyLookupTargets…done.

Adding ms01.tuhocmang.local to zimbraReverseProxyAvailableLookupTargets

Setting Master DNS IP address(es)…done.

Setting DNS cache tcp lookup preference…done.

Setting DNS cache udp lookup preference…done.

Setting DNS tcp upstream preference…done.

Setting TimeZone Preference…done.

Initializing mta config…done.

Setting services on ms01.tuhocmang.local…done.

Adding ms01.tuhocmang.local to zimbraMailHostPool in default COS…done.

Creating domain tuhocmang.local…done.

Setting default domain name…done.

Creating domain tuhocmang.local…already exists.

Creating admin account admin@tuhocmang.local…done.

Creating root alias…done.

Creating postmaster alias…done.

Creating user spam.9alofu89y@tuhocmang.local…done.

Creating user ham.enklfbif@tuhocmang.local…done.

Creating user virus-quarantine.hepa0f9cc@tuhocmang.local…done.

Setting spam training and Anti-virus quarantine accounts…done.

Initializing store sql database…done.

Setting zimbraSmtpHostname for ms01.tuhocmang.local…done.

Configuring SNMP…done.

Setting up syslog.conf…done.

Starting servers…done.

Installing common zimlets…

com_zimbra_viewmail…done.

com_zimbra_email…done.

com_zimbra_url…done.

com_zimbra_date…done.

com_zimbra_clientuploader…done.

com_zimbra_ymemoticons…done.

com_zimbra_tooltip…done.

com_zimbra_cert_manager…done.

com_zimbra_webex…done.

com_zimbra_srchhighlighter…done.

com_zimbra_mailarchive…done.

com_zimbra_adminversioncheck…done.

com_zimbra_bulkprovision…done.

com_zimbra_attachcontacts…done.

com_zimbra_phone…done.

com_zimbra_proxy_config…done.

com_zimbra_attachmail…done.

Finished installing common zimlets.

Restarting mailboxd…done.

Creating galsync account for default domain…failed.

 

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.7.1_GA_1670_RHEL6_64)

The ADMIN EMAIL ADDRESS created (admin@tuhocmang.local)

 

Notify Zimbra of your installation? [Yes] no

Notification skipped

Setting up zimbra crontab…done.

 

 

Moving /tmp/zmsetup.20161223-092842.log to /opt/zimbra/log

 

 

Configuration complete – press return to exit

 

 

[root@ms01 zcs-8.7.1_GA_1670.RHEL6_64.20161025035141]#

 

After installing

Check service

Ensure all services which you installed are running

su zimbra

(switch to user zimbra)

zmcontrol status

Check webmail

https://192.168.10.128

Zimbra webmail
Zimbra webmail

Check web admin

https://192.168.10.128:7071

Zimbra web admin
Zimbra web admin

 

Zimbra web admin
Zimbra web admin

Thanks for reading

If you want to discuss more, please comment below

About Hoang Do Viet

Tớ thích thể thao, văn thơ, ghét IT như quỷ ý ......

Leave a Reply

Your email address will not be published. Required fields are marked *