Zimbra Collaboration Suite (ZCS) is a groupware product created by Zimbra, Inc. It is widely used in the world. Users can share folders, contacts, schedules and other things, using a very rich web interface. Currently the latest version of Collaboration Suite is Zimbra 8.6.0. It brings new features, improvements in Mail server and it provides a better web client experience. to view the new improvements and fixes in Zimbra Collaboration Suite 8.6.0. In this tutorial, I will explain how to install Zimbra 8.6.0 on RHEL 7 or CentOS 7.
Prerequisites
CentOS 7 server.
root access to the server.
A fully qualified domain name ( FQDN ) for your Zimbra mail server mx record and ensure your domain is configured correctly.
First you need to do some initial setup in the server
1. Configure /etc/hosts and hostname
2. Allow iptables to by-pass all zimbra ports.
3. Disabled SELINUX
[root@centos7 ~]# vim /etc/sysconfig/selinux
Change enforcing to disabled :
# 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# 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
4. Stop any MTA services installed in the server
[root@centos7 ~]# systemctl stop postfix[root@centos7 ~]# systemctl disable postfix[root@centos7 ~]# systemctl stop sendmail[root@centos7 ~]# systemctl disable sendmail
5.Update the OS
[root@centos7 ~]# yum update -y
6.Install the required packages and libraries by issuing the following command :
[root@centos7 ~]# yum install perl perl-core ntpl nmap sudo libidn gmp libaio libstdc++ unzip sysstat sqlite nc -y
Now, the server is ready for install Zimbra 8.6.0.
Download Zimbra Open Source Edition 8.6.0
Issue the following command to download ZCS 8.6.0
wget https://files.zimbra.com/downloads/8.6.0_GA/zcs-8.6.0_GA_1153.RHEL7_64.20141215151110.tgz
Extract the downloaded tar file :
Using the following command you can extract the tar file, We downloaded in previous step
tar xzf zcs-8.6.0_GA_1153.RHEL7_64.20141215151110.tgz
Go to extracted ZCS Open Source Edition :
cd zcs-8.6.0_GA_1153.RHEL7_64.20141215151110
Start the installation with the following command :
Now, we are going to install the ZCS package using the script
./install.sh --platform-override
You can see the following screen when starting the script.
./install.sh --platform-overrideOperations logged to /tmp/install.log.14668Checking 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 FOUNDPLEASE READ THIS AGREEMENT CAREFULLY BEFORE USING THE SOFTWARE.ZIMBRA, INC. ("ZIMBRA") WILL ONLY LICENSE THIS SOFTWARE TO YOU IF YOUFIRST ACCEPT THE TERMS OF THIS AGREEMENT. BY DOWNLOADING OR INSTALLINGTHE SOFTWARE, OR USING THE PRODUCT, YOU ARE CONSENTING TO BE BOUND BYTHIS AGREEMENT. IF YOU DO NOT AGREE TO ALL OF THE TERMS OF THISAGREEMENT, 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-5.htmlDo you agree with the terms of the software license agreement? [N] yChecking for prerequisites... FOUND: NPTL FOUND: nmap-ncat-6.40-4 FOUND: sudo-1.8.6p7-11 FOUND: libidn-1.28-3 FOUND: gmp-5.1.1-5 FOUND: libaio-0.3.109-12 FOUND: libstdc++-4.8.2-16.2 FOUND: unzip-6.0-13 FOUND: perl-core-5.16.3-283Checking for suggested prerequisites... FOUND: perl-5.16.3 FOUND: sysstat FOUND: sqlitePrerequisite check complete.Checking for installable packagesFound zimbra-coreFound zimbra-ldapFound zimbra-loggerFound zimbra-mtaFound zimbra-dnscacheFound zimbra-snmpFound zimbra-storeFound zimbra-apacheFound zimbra-spellFound zimbra-memcachedFound zimbra-proxySelect the packages to installInstall zimbra-ldap [Y]Install zimbra-logger [Y]Install zimbra-mta [Y]Install zimbra-dnscache [Y] NInstall zimbra-snmp [Y]Install zimbra-store [Y]Install zimbra-apache [Y]Install zimbra-spell [Y]Install zimbra-memcached [Y]Install zimbra-proxy [Y]Checking required space for zimbra-coreChecking space for zimbra-storeChecking required packages for zimbra-storezimbra-store package check complete.Installing: zimbra-core zimbra-ldap zimbra-logger zimbra-mta zimbra-snmp zimbra-store zimbra-apache zimbra-spell zimbra-memcached zimbra-proxyThe system will be modified. Continue? [N] YRemoving /opt/zimbraRemoving 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...done 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...doneOperations logged to /tmp/zmsetup01032015-084819.logInstalling LDAP configuration database...done.Setting defaults...No results returned for A lookup of centos7.unixmen.localChecked nameservers: 192.168.0.70No results returned for AAAA lookup of centos7.unixmen.localChecked nameservers: 192.168.0.70DNS ERROR resolving centos7.unixmen.localIt is suggested that the hostname be resolvable via DNSChange hostname [Yes]Please enter the logical hostname for this host [centos7.unixmen.local] mail.example.comNo results returned for A lookup of mail.example.comChecked nameservers: 192.168.0.70DNS ERROR resolving mail.example.comIt is suggested that the hostname be resolvable via DNSRe-Enter hostname [Yes]Please enter the logical hostname for this host [centos7.unixmen.local] mail.example.localDNS ERROR resolving MX for mail.example.localIt is suggested that the domain name have an MX record configured in DNSChange domain name? [Yes]Create domain: [mail.example.local] example.local MX: mail.example.local (192.168.0.70) Interface: 127.0.0.1 Interface: ::1 Interface: 192.168.0.70done.Checking for port conflictsMain 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@example.local******* +Admin Password UNSET +Anti-virus quarantine user: virus-quarantine.fsbv7fj6r0@example.local +Enable automated spam training: yes +Spam training user: spam.7xlmrmrh3@example.local +Non-spam(Ham) training user: ham.rt_1on1o@example.local +SMTP host: mail.example.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://mail.example.local:7780/aspell.php +Enable version update checks: TRUE +Enable version update notifications: TRUE +Version update notification email: admin@centos7.unixmen.local +Version update source email: admin@centos7.unixmen.local +Install mailstore (service webapp): yes +Install UI (zimbra,zimbraAdmin webapps): yes 7) zimbra-spell: Enabled 8) zimbra-proxy: Enabled 9) Enable VMware HA: no 10) Default Class of Service Configuration: s) Save config to file x) Expand menu q) QuitAddress unconfigured (**) items (? - help) 6Store configuration 1) Status: Enabled 2) Create Admin User: yes 3) Admin user to create: admin@example.local** 4) Admin Password UNSET 5) Anti-virus quarantine user: virus-quarantine.fsbv7fj6r0@example.local 6) Enable automated spam training: yes 7) Spam training user: spam.7xlmrmrh3@example.local 8) Non-spam(Ham) training user: ham.rt_1on1o@example.local 9) SMTP host: mail.example.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://mail.example.local:7780/aspell.php 19) Enable version update checks: TRUE 20) Enable version update notifications: TRUE 21) Version update notification email: admin@centos7.unixmen.local 22) Version update source email: admin@centos7.unixmen.local 23) Install mailstore (service webapp): yes 24) Install UI (zimbra,zimbraAdmin webapps): yesSelect, or 'r' for previous menu [r] 4Password for admin@example.local (min 6 characters): [SBmeBXtA] passwordStore configuration 1) Status: Enabled 2) Create Admin User: yes 3) Admin user to create: admin@example.local 4) Admin Password set 5) Anti-virus quarantine user: virus-quarantine.fsbv7fj6r0@example.local 6) Enable automated spam training: yes 7) Spam training user: spam.7xlmrmrh3@example.local 8) Non-spam(Ham) training user: ham.rt_1on1o@example.local 9) SMTP host: mail.example.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://mail.example.local:7780/aspell.php 19) Enable version update checks: TRUE 20) Enable version update notifications: TRUE 21) Version update notification email: admin@centos7.unixmen.local 22) Version update source email: admin@centos7.unixmen.local 23) Install mailstore (service webapp): yes 24) Install UI (zimbra,zimbraAdmin webapps): yesSelect, or 'r' for previous menu [r] 21Version update destination address: [admin@centos7.unixmen.local] admin@example.localStore configuration 1) Status: Enabled 2) Create Admin User: yes 3) Admin user to create: admin@example.local 4) Admin Password set 5) Anti-virus quarantine user: virus-quarantine.fsbv7fj6r0@example.local 6) Enable automated spam training: yes 7) Spam training user: spam.7xlmrmrh3@example.local 8) Non-spam(Ham) training user: ham.rt_1on1o@example.local 9) SMTP host: mail.example.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://mail.example.local:7780/aspell.php 19) Enable version update checks: TRUE 20) Enable version update notifications: TRUE 21) Version update notification email: admin@example.local 22) Version update source email: admin@centos7.unixmen.local 23) Install mailstore (service webapp): yes 24) Install UI (zimbra,zimbraAdmin webapps): yesSelect, or 'r' for previous menu [r] 22Version update source address: [admin@centos7.unixmen.local] admin@example.localStore configuration 1) Status: Enabled 2) Create Admin User: yes 3) Admin user to create: admin@example.local 4) Admin Password set 5) Anti-virus quarantine user: virus-quarantine.fsbv7fj6r0@example.local 6) Enable automated spam training: yes 7) Spam training user: spam.7xlmrmrh3@example.local 8) Non-spam(Ham) training user: ham.rt_1on1o@example.local 9) SMTP host: mail.example.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://mail.example.local:7780/aspell.php 19) Enable version update checks: TRUE 20) Enable version update notifications: TRUE 21) Version update notification email: admin@example.local 22) Version update source email: admin@example.local 23) Install mailstore (service webapp): yes 24) Install UI (zimbra,zimbraAdmin webapps): yesSelect, or 'r' for previous menu [r] rMain 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) Enable VMware HA: no 10) Default Class of Service Configuration: s) Save config to file x) Expand menu q) Quit*** CONFIGURATION COMPLETE - press 'a' to applySelect from menu, or press 'a' to apply config (? - help) aSave configuration data to a file? [Yes]Save config in file: [/opt/zimbra/config.23920]Saving config in /opt/zimbra/config.23920...done.The system will be modified - continue? [No] yesOperations logged to /tmp/zmsetup01032015-084819.logSetting 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 mail.example.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 mail.example.local...done.Setting zimbraFeatureTasksEnabled=TRUE...done.Setting zimbraFeatureBriefcasesEnabled=TRUE...done.Setting TimeZone Preference...done.Initializing mta config...done.Setting services on mail.example.local...done.Adding mail.example.local to zimbraMailHostPool in default COS...done.Creating domain example.local...done.Setting default domain name...done.Creating domain example.local...already exists.Creating admin account admin@example.local...done.Creating root alias...done.Creating postmaster alias...done.Creating user spam.7xlmrmrh3@example.local...done.Creating user ham.rt_1on1o@example.local...done.Creating user virus-quarantine.fsbv7fj6r0@example.local...done.Setting spam training and Anti-virus quarantine accounts...done.Initializing store sql database...done.Setting zimbraSmtpHostname for mail.example.local...done.Configuring SNMP...done.Setting up syslog.conf...done.Starting servers...done.Installing common zimlets... com_zimbra_proxy_config...done. com_zimbra_mailarchive...done. com_zimbra_attachmail...done. com_zimbra_url...done. com_zimbra_phone...done. com_zimbra_date...done. com_zimbra_ymemoticons...done. com_zimbra_clientuploader...done. com_zimbra_srchhighlighter...done. com_zimbra_tooltip...done. com_zimbra_webex...done. com_zimbra_bulkprovision...done. com_zimbra_email...done. com_zimbra_adminversioncheck...done. com_zimbra_cert_manager...done. com_zimbra_viewmail...done. com_zimbra_attachcontacts...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@example.local)Notify Zimbra of your installation? [Yes] noNotification skippedSetting up zimbra crontab...done.Moving /tmp/zmsetup01032015-084819.log to /opt/zimbra/logConfiguration complete - press return to exit
Start zimbra services :
su - zimbrazmcontrol start################zmcontrol statuszmcontrol restartzmcontrol stop
Access admin panel via browser :
https://:7071
or directly by IP:
https://192.168.0.70:7071
To log in, the user is admin and the password used in the installation script.
All done, Congratulations !!!
需要注意的:
DNSmasq是一个小巧且方便地用于配置DNS和DHCP的工具,适用于小型网络,它提供了DNS功能和可选择的DHCP功能。它服务那些只在本地适用的域名,这些域名是不会在全球的DNS服务器中出现的。安装dnsmasq# yum install dnsmasq bind-utils配置dnsmasq# cp /etc/dnsmasq.conf /etc/dnsmasq.conf.bak添加以下到/etc/dnsmasq.confno-resolvserver=127.0.0.1domain=domain.commx-host=domain.com,mail.domain.com,5添加以下到/etc/resolv.confnameserver 127.0.0.1启动dnsmasq# systemctl start dnsmasq.service测试:[root@mail ~]# dig domian.com MX; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.30.rc1.el6_6.1 <<>> domian.com MX;; global options: +cmd;; Got answer:;; ->>HEADER<<- opcode: QUERY, status: REFUSED, id: 289;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0;; QUESTION SECTION:;domian.com.INMX;; Query time: 0 msec;; SERVER: 127.0.0.1#53(127.0.0.1);; WHEN: Mon Jan 26 00:55:38 2015;; MSG SIZE rcvd: 28需要安装并修改以上的配置,否则安装过程容易出现问题.