Mail Zimbra community

install reference

install

dependance

[root@zmaild ~]# yum install perl perl-core ntpl nmap sudo libidn gmp libaio libstdc++ unzip sysstat sqlite wget -y

donwload sources

[root@zmaild ~]# wget https://files.zimbra.com/downloads/8.6.0_GA/zcs-8.6.0_GA_1153.RHEL7_64.20141215151110.tgz

stop postfix

[root@zmaild ~]# service postfix stop
Redirecting to /bin/systemctl stop  postfix.service
[root@zmaild ~]# systemctl disable postfix
rm '/etc/systemd/system/multi-user.target.wants/postfix.service'

desarchivage ZCS

nous allons travailler dans /opt

[root@zmaild ~]# cd /opt
[root@zmaild opt]# tar xvfz /root/zcs-8.6.0_GA_1153.RHEL7_64.20141215151110.tgz 
zcs-8.6.0_GA_1153.RHEL7_64.20141215151110/
zcs-8.6.0_GA_1153.RHEL7_64.20141215151110/packages/
zcs-8.6.0_GA_1153.RHEL7_64.20141215151110/packages/zimbra-apache-8.6.0_GA_1153.RHEL7_64-20141215151110.x86_64.rpm
zcs-8.6.0_GA_1153.RHEL7_64.20141215151110/packages/zimbra-core-8.6.0_GA_1153.RHEL7_64-20141215151110.x86_64.rpm
zcs-8.6.0_GA_1153.RHEL7_64.20141215151110/packages/zimbra-dnscache-8.6.0_GA_1153.RHEL7_64-20141215151110.x86_64.rpm
zcs-8.6.0_GA_1153.RHEL7_64.20141215151110/packages/zimbra-ldap-8.6.0_GA_1153.RHEL7_64-20141215151110.x86_64.rpm
zcs-8.6.0_GA_1153.RHEL7_64.20141215151110/packages/zimbra-logger-8.6.0_GA_1153.RHEL7_64-20141215151110.x86_64.rpm
zcs-8.6.0_GA_1153.RHEL7_64.20141215151110/packages/zimbra-memcached-8.6.0_GA_1153.RHEL7_64-20141215151110.x86_64.rpm
zcs-8.6.0_GA_1153.RHEL7_64.20141215151110/packages/zimbra-mta-8.6.0_GA_1153.RHEL7_64-20141215151110.x86_64.rpm
zcs-8.6.0_GA_1153.RHEL7_64.20141215151110/packages/zimbra-proxy-8.6.0_GA_1153.RHEL7_64-20141215151110.x86_64.rpm
zcs-8.6.0_GA_1153.RHEL7_64.20141215151110/packages/zimbra-snmp-8.6.0_GA_1153.RHEL7_64-20141215151110.x86_64.rpm
zcs-8.6.0_GA_1153.RHEL7_64.20141215151110/packages/zimbra-spell-8.6.0_GA_1153.RHEL7_64-20141215151110.x86_64.rpm
zcs-8.6.0_GA_1153.RHEL7_64.20141215151110/packages/zimbra-store-8.6.0_GA_1153.RHEL7_64-20141215151110.x86_64.rpm
zcs-8.6.0_GA_1153.RHEL7_64.20141215151110/bin/
zcs-8.6.0_GA_1153.RHEL7_64.20141215151110/bin/get_plat_tag.sh
zcs-8.6.0_GA_1153.RHEL7_64.20141215151110/bin/zmValidateLdap.pl
zcs-8.6.0_GA_1153.RHEL7_64.20141215151110/bin/checkLicense.pl
zcs-8.6.0_GA_1153.RHEL7_64.20141215151110/bin/zmdbintegrityreport
zcs-8.6.0_GA_1153.RHEL7_64.20141215151110/data/
zcs-8.6.0_GA_1153.RHEL7_64.20141215151110/data/versions-init.sql
zcs-8.6.0_GA_1153.RHEL7_64.20141215151110/docs/
zcs-8.6.0_GA_1153.RHEL7_64.20141215151110/docs/YPL.txt
zcs-8.6.0_GA_1153.RHEL7_64.20141215151110/docs/zcl.txt
zcs-8.6.0_GA_1153.RHEL7_64.20141215151110/docs/zimbra_public_eula_2.5.txt
zcs-8.6.0_GA_1153.RHEL7_64.20141215151110/docs/en_US/
zcs-8.6.0_GA_1153.RHEL7_64.20141215151110/docs/en_US/admin.pdf
zcs-8.6.0_GA_1153.RHEL7_64.20141215151110/docs/en_US/Fedora Server Config.pdf
zcs-8.6.0_GA_1153.RHEL7_64.20141215151110/docs/en_US/Import_Wizard_Outlook.pdf
zcs-8.6.0_GA_1153.RHEL7_64.20141215151110/docs/en_US/Migration_Exch_Admin.pdf
zcs-8.6.0_GA_1153.RHEL7_64.20141215151110/docs/en_US/Migration_Exch_User.pdf
zcs-8.6.0_GA_1153.RHEL7_64.20141215151110/docs/en_US/MigrationWizard_Domino.pdf
zcs-8.6.0_GA_1153.RHEL7_64.20141215151110/docs/en_US/MigrationWizard.pdf
zcs-8.6.0_GA_1153.RHEL7_64.20141215151110/docs/en_US/OSmultiserverinstall.pdf
zcs-8.6.0_GA_1153.RHEL7_64.20141215151110/docs/en_US/quick_start.pdf
zcs-8.6.0_GA_1153.RHEL7_64.20141215151110/docs/en_US/RNZCSO_2005Beta.pdf
zcs-8.6.0_GA_1153.RHEL7_64.20141215151110/docs/en_US/User Instructions for ZCS Import Wizard.pdf
zcs-8.6.0_GA_1153.RHEL7_64.20141215151110/docs/en_US/Zimbra iCalendar Migration Guide.pdf
zcs-8.6.0_GA_1153.RHEL7_64.20141215151110/docs/en_US/Zimbra_Release_Note.pdf
zcs-8.6.0_GA_1153.RHEL7_64.20141215151110/docs/en_US/Zimbra Schema.pdf
zcs-8.6.0_GA_1153.RHEL7_64.20141215151110/docs/en_US/zimbra_user_guide.pdf
zcs-8.6.0_GA_1153.RHEL7_64.20141215151110/util/
zcs-8.6.0_GA_1153.RHEL7_64.20141215151110/util/modules/
zcs-8.6.0_GA_1153.RHEL7_64.20141215151110/util/modules/getconfig.sh
zcs-8.6.0_GA_1153.RHEL7_64.20141215151110/util/modules/packages.sh
zcs-8.6.0_GA_1153.RHEL7_64.20141215151110/util/modules/postinstall.sh
zcs-8.6.0_GA_1153.RHEL7_64.20141215151110/util/addUser.sh
zcs-8.6.0_GA_1153.RHEL7_64.20141215151110/util/globals.sh
zcs-8.6.0_GA_1153.RHEL7_64.20141215151110/util/utilfunc.sh
zcs-8.6.0_GA_1153.RHEL7_64.20141215151110/readme_source_en_US.txt
zcs-8.6.0_GA_1153.RHEL7_64.20141215151110/readme_binary_en_US.txt
zcs-8.6.0_GA_1153.RHEL7_64.20141215151110/install.sh
zcs-8.6.0_GA_1153.RHEL7_64.20141215151110/README.txt


[root@zmaild opt]# cd zcs-8.6.0_GA_1153.RHEL7_64.20141215151110/
[root@zmaild zcs-8.6.0_GA_1153.RHEL7_64.20141215151110]# ls
bin  data  docs  install.sh  packages  readme_binary_en_US.txt  readme_source_en_US.txt  README.txt  util

install

[root@zmaild zcs-8.6.0_GA_1153.RHEL7_64.20141215151110]# ./install.sh 

Operations logged to /tmp/install.log.2416
Checking for existing installation...
    zimbra-ldap...NOT FOUND
    zimbra-logger...NOT FOUND
    zimbra-mta...NOT FOUND
    zimbra-dnscache...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-core...NOT FOUND

License agreement ... Y

Checking for prerequisites...
     FOUND: NPTL
     FOUND: nmap-ncat-6.40-4
     FOUND: sudo-1.8.6p7-13
     FOUND: libidn-1.28-3
     FOUND: gmp-6.0.0-12
     FOUND: libaio-0.3.109-12
     FOUND: libstdc++-4.8.3-9
     FOUND: unzip-6.0-15
     FOUND: perl-core-5.16.3-285

Checking for suggested prerequisites...
     FOUND: perl-5.16.3
     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-dnscache
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] 
Select the packages to install

Install zimbra-ldap [Y] Y

Install zimbra-logger [Y] Y

Install zimbra-mta [Y] Y

Install zimbra-dnscache [Y] N

Install zimbra-snmp [Y] Y

Install zimbra-store [Y] Y

Install zimbra-apache [Y] Y

Install zimbra-spell [Y] Y

Install zimbra-memcached [Y] Y

Install zimbra-proxy [Y] Y
Checking required space for zimbra-core
Checking space for zimbra-store
Checking required packages for zimbra-store
zimbra-store package check complete.

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] 
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.6.0_GA_1153.RHEL7_64-20141215151110.x86_64.rpm...
    zimbra-ldap......zimbra-ldap-8.6.0_GA_1153.RHEL7_64-20141215151110.x86_64.rpm...done
    zimbra-logger......zimbra-logger-8.6.0_GA_1153.RHEL7_64-20141215151110.x86_64.rpm...done
    zimbra-mta......zimbra-mta-8.6.0_GA_1153.RHEL7_64-20141215151110.x86_64.rpm...done
    zimbra-snmp......zimbra-snmp-8.6.0_GA_1153.RHEL7_64-20141215151110.x86_64.rpm...done
    zimbra-store......zimbra-store-8.6.0_GA_1153.RHEL7_64-20141215151110.x86_64.rpm...done
    zimbra-apache......zimbra-apache-8.6.0_GA_1153.RHEL7_64-20141215151110.x86_64.rpm...done
    zimbra-spell......zimbra-spell-8.6.0_GA_1153.RHEL7_64-20141215151110.x86_64.rpm...done
    zimbra-memcached......zimbra-memcached-8.6.0_GA_1153.RHEL7_64-20141215151110.x86_64.rpm...done
    zimbra-proxy......zimbra-proxy-8.6.0_GA_1153.RHEL7_64-20141215151110.x86_64.rpm...done
Operations logged to /tmp/zmsetup11082015-104812.log
Installing LDAP configuration database...done.
Setting defaults...sh: /sbin/ifconfig: Aucun fichier ou dossier de ce type
No results returned for A lookup of zmaild.proc.fr
Checked nameservers:
	208.67.222.222
	208.67.220.220
	2a01:e00::1
	2a01:e00::2
No results returned for AAAA lookup of zmaild.proc.fr
Checked nameservers:
	208.67.222.222
	208.67.220.220
	2a01:e00::1
	2a01:e00::2


DNS ERROR resolving zmaild.proc.fr
It is suggested that the hostname be resolvable via DNS
Change hostname [Yes] no


DNS ERROR resolving MX for zmaild.proc.fr
It is suggested that the domain name have an MX record configured in DNS
Change domain name? [Yes] no
done.
Checking for port conflicts
sh: netstat : commande introuvable

Main menu

   1) Common Configuration:                                                  
   2) zimbra-ldap:                             Enabled                       
   3) zimbra-logger:                           Enabled                       
   4) zimbra-mta:                              Enabled                       
   5) zimbra-snmp:                             Enabled                       
   6) zimbra-store:                            Enabled                       
        +Create Admin User:                    yes                           
        +Admin user to create:                 admin@zmaild.proc.fr     
******* +Admin Password                        UNSET                         
        +Anti-virus quarantine user:           virus-quarantine.olhc_cdc@zmaild.proc.fr
        +Enable automated spam training:       yes                           
        +Spam training user:                   spam.h9ujrqic@zmaild.proc.fr
        +Non-spam(Ham) training user:          ham.yplts6hp8@zmaild.proc.fr
        +SMTP host:                            zmaild.proc.fr           
        +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://zmaild.proc.fr:7780/aspell.php
        +Enable version update checks:         TRUE                          
        +Enable version update notifications:  TRUE                          
        +Version update notification email:    admin@zmaild.proc.fr     
        +Version update source email:          admin@zmaild.proc.fr     
        +Install mailstore (service webapp):   yes                           
        +Install UI (zimbra,zimbraAdmin webapps): yes                           

   7) zimbra-spell:                            Enabled                       
   8) zimbra-proxy:                            Enabled                       
   9) Default Class of Service Configuration:                                
   s) Save config to file                                                    
   x) Expand menu                                                            
   q) Quit                                    

configure admin password

Address unconfigured (**) items  (? - help) 6


Store configuration

   1) Status:                                  Enabled                       
   2) Create Admin User:                       yes                           
   3) Admin user to create:                    admin@zmaild.proc.fr     
** 4) Admin Password                           UNSET                         
   5) Anti-virus quarantine user:              virus-quarantine.olhc_cdc@zmaild.proc.fr
   6) Enable automated spam training:          yes                           
   7) Spam training user:                      spam.h9ujrqic@zmaild.proc.fr
   8) Non-spam(Ham) training user:             ham.yplts6hp8@zmaild.proc.fr
   9) SMTP host:                               zmaild.proc.fr           
  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://zmaild.proc.fr:7780/aspell.php
  19) Enable version update checks:            TRUE                          
  20) Enable version update notifications:     TRUE                          
  21) Version update notification email:       admin@zmaild.proc.fr     
  22) Version update source email:             admin@zmaild.proc.fr     
  23) Install mailstore (service webapp):      yes                           
  24) Install UI (zimbra,zimbraAdmin webapps): yes  
  
  Select, or 'r' for previous menu [r] 4

Password for admin@zmaild.proc.fr (min 6 characters): [VlXsTVg67] positionner Un mot de passe Admin Zimbra d
                         
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-snmp:                             Enabled                       
   6) zimbra-store:                            Enabled                       
   7) zimbra-spell:                            Enabled                       
   8) zimbra-proxy:                            Enabled                       
   9) Default Class of Service Configuration:                                
   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
Save configuration data to a file? [Yes] Yes
Save config in file: [/opt/zimbra/config.11651] 
Saving config in /opt/zimbra/config.11651...done.
The system will be modified - continue? [No] yes
Operations logged to /tmp/zmsetup11082015-104812.log
Setting local config values...
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 zmaild.proc.fr...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 zmaild.proc.fr...done.
Setting zimbraFeatureTasksEnabled=TRUE...done.
Setting zimbraFeatureBriefcasesEnabled=TRUE...done.
Setting TimeZone Preference...done.
Initializing mta config...done.
Setting services on zmaild.proc.fr...done.
Adding zmaild.proc.fr to zimbraMailHostPool in default COS...done.
Creating domain zmaild.proc.fr...done.
Setting default domain name...done.
Creating domain zmaild.proc.fr...already exists.
Creating admin account admin@zmaild.proc.fr...done.
Creating root alias...done.
Creating postmaster alias...done.
Creating user spam.h9ujrqic@zmaild.proc.fr...done.
Creating user ham.yplts6hp8@zmaild.proc.fr...done.
Creating user virus-quarantine.olhc_cdc@zmaild.proc.fr...done.
Setting spam training and Anti-virus quarantine accounts...done.
Initializing store sql database...done.
Setting zimbraSmtpHostname for zmaild.proc.fr...done.
Configuring SNMP...done.
Setting up syslog.conf...done.
Starting servers...done.
Installing common zimlets...
	com_zimbra_adminversioncheck...done.
	com_zimbra_attachcontacts...done.
	com_zimbra_attachmail...done.
	com_zimbra_bulkprovision...done.
	com_zimbra_cert_manager...done.
	com_zimbra_clientuploader...done.
	com_zimbra_date...done.
	com_zimbra_email...done.
	com_zimbra_mailarchive...done.
	com_zimbra_phone...done.
	com_zimbra_proxy_config...done.
	com_zimbra_srchhighlighter...done.
	com_zimbra_tooltip...done.
	com_zimbra_url...done.
	com_zimbra_viewmail...done.
	com_zimbra_webex...done.
	com_zimbra_ymemoticons...done.
Finished installing common zimlets.
Restarting mailboxd...done.
Creating galsync account for default domain...done.

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.6.0_GA_1153_RHEL7_64)
	The ADMIN EMAIL ADDRESS created (admin@zmaild.proc.fr)

Notify Zimbra of your installation? [Yes] no
Notification skipped
Setting up zimbra crontab...done.


Moving /tmp/zmsetup11082015-104812.log to /opt/zimbra/log

Configuration complete - press return to exit 

[root@zmaild zcs-8.6.0_GA_1153.RHEL7_64.20141215151110]# 


Firewall et redirection Ports

si le serveur zimbra est derriere une box ou autre firewall faisant du NAT il faut rediriger les ports : 22,25,143,443,587,993,7071

parfois il n'est pas evident de fermer a des subnet sur une box, on peux alors le faire directement sur le serveur avec des regles plus riches, exemple ici pour fermer l'acces à la console d'admin uniquement a une IP source

[root@zmaild ~]# firewall-cmd --permanent --add-rich-rule 'rule family="ipv4" source address="90.27.26.111/32" port port=7071 protocol="tcp" log prefix="7071_box_90.27.26.111" accept'
[root@zmaild ~]# firewall-cmd --reload
success

status

[root@zmaild log]# su - zimbra
Dernière connexion : dimanche  8 novembre 2015 à 15:08:59 CET sur pts/0
[zimbra@zmaild ~]$  /opt/zimbra/bin/zmcontrol status
Host zmaild.proc.fr
	amavis                  Running
	antispam                Running
	antivirus               Running
	ldap                    Running
	logger                  Running
	mailbox                 Running
	memcached               Running
	mta                     Running
	opendkim                Running
	proxy                   Running
	service webapp          Running
	snmp                    Running
	spell                   Running
	stats                   Running
	zimbra webapp           Running
	zimbraAdmin webapp      Running
	zimlet webapp           Running
	zmconfigd               Stopped
		zmconfigd is not running.

zmconfigd problem cf bugreport

comment out ipv6 ::1 in /etc/hosts

[zimbra@zmaild log]$  /opt/zimbra/bin/zmcontrol stop  
Host zmaild.proc.fr
	Stopping vmware-ha...skipped.
		/opt/zimbra/bin/zmhactl missing or not executable.
	Stopping zmconfigd...Done.
	Stopping zimlet webapp...Done.
	Stopping zimbraAdmin webapp...Done.
	Stopping zimbra webapp...Done.
	Stopping service webapp...Done.
	Stopping stats...Done.
	Stopping mta...Done.
	Stopping spell...Done.
	Stopping snmp...Done.
	Stopping cbpolicyd...Done.
	Stopping archiving...Done.
	Stopping opendkim...Done.
	Stopping amavis...Done.
	Stopping antivirus...Done.
	Stopping antispam...Done.
	Stopping proxy...Done.
	Stopping memcached...Done.
	Stopping mailbox...Done.
	Stopping logger...Done.
	Stopping dnscache...Done.
	Stopping ldap...Done.


[zimbra@zmaild log]$  /opt/zimbra/bin/zmcontrol start
Host zmaild.proc.fr
	Starting ldap...Done.
	Starting zmconfigd...Done.
	Starting logger...Done.
	Starting mailbox...Done.
	Starting memcached...Done.
	Starting proxy...Done.
	Starting amavis...Done.
	Starting antispam...Done.
	Starting antivirus...Done.
	Starting opendkim...Done.
	Starting snmp...Done.
	Starting spell...Done.
	Starting mta...Done.
	Starting stats...Done.
	Starting service webapp...Done.
	Starting zimbra webapp...Done.
	Starting zimbraAdmin webapp...Done.
	Starting zimlet webapp...Done.


[zimbra@zmaild log]$  /opt/zimbra/bin/zmcontrol status
Host zmaild.proc.fr
	amavis                  Running
	antispam                Running
	antivirus               Running
	ldap                    Running
	logger                  Running
	mailbox                 Running
	memcached               Running
	mta                     Running
	opendkim                Running
	proxy                   Running
	service webapp          Running
	snmp                    Running
	spell                   Running
	stats                   Running
	zimbra webapp           Running
	zimbraAdmin webapp      Running
	zimlet webapp           Running
	zmconfigd               Running
docpublic/systemes/mailzimbra.txt · Last modified: 2015/11/08 20:13 by procacci@tem-tsp.eu
CC Attribution-Noncommercial-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0