Zimbra mail server installation and configuration RHEL7 / Centos 7
Zimbra mail server is an free email server for open source users, which will provide calender and collaboration solution. Zimbra mail server has GUI interface to manage administrator console.
The Zimbra Collaboration includes the Zimbra MTA, the Zimbra LDAP server, and the Zimbra mailbox server. In a single-server installation, all components are installed on one server and require no additional manual configuration. This installation guide is a quick start guide that describes the basic steps needed to install and configure Zimbra Collaboration in a direct network connect environment. In this environment, the Zimbra server is assigned a domain for which it receives mail, and a direct network connection to the Internet. When Zimbra Collaboration is installed, you will be able to log on to the Zimbra administration console to manage the domain and provision accounts.
In this tutorial / article we will explain how to install and configure zimbra mail server in RHEL 7.x / Centos 7.x. Before going to install we have to complete prerequisites as mentioned below.
- Stop sendmail and postfix
- Add MX record in DNS
- Add A (Authoritative Record) in Forward and reverse lookup zones
- Add entry in /etc/hosts
- Enable ports in zimbra mail server
Stop sendmail and postfix services to stop port conflict with zimbra
Stop postfix and sendmail services to avoid port conflicts. Mask the service so that if anybody unfortunately try to start also service will not start.
[root@mail ~]# systemctl stop postfix.service [root@mail ~]# systemctl stop sendmail [root@mail ~]# systemctl mask postfix.service [root@mail ~]# systemctl mask sendmail
Adding MX Record in IPA Server DNS
[root@ipaserver ~]# kinit admin [root@ipaserver ~]# ipa dnsrecord-add arkit.co.in @ --mx-rec="9 mail.arkit.co.in." [root@ipaserver ~]# dig mail.arkit.co.in MX
Adding A and PTR records in DNS
Edit your DNS zone configuration files and add entry like mentioned below
1w MX 9 mail.arkit.co.in.
Adding /etc/hosts entry
[root@mail ~]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
192.168.4.29 mail.arkit.co.in mail
#::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
Enabling Firewall ports for zimbra mail server communication
Zimbra Port Mapping Port
Remote Queue Manager 22
Postfix 25
HTTP 80
POP3 110
IMAP 143
LDAP 389
HTTPS 443
Mailboxd IMAP SSL 993
Mailboxd POP SSL 995
Mailboxd LMTP 7025
Remote Queue Manager 22
Postfix 25
HTTP 80
POP3 110
IMAP 143
LDAP 389
HTTPS 443
Mailboxd IMAP SSL 993
Mailboxd POP SSL 995
Mailboxd LMTP 7025
[root@mail ~]# firewall-cmd --permanent --add-service=https success [root@mail ~]# firewall-cmd --permanent --add-service=http success [root@mail ~]# firewall-cmd --permanent --add-service=ldap success [root@mail ~]# firewall-cmd --permanent --add-port=22/tcp success [root@mail ~]# firewall-cmd --permanent --add-port=25/tcp success [root@mail ~]# firewall-cmd --permanent --add-port=110/tcp success [root@mail ~]# firewall-cmd --permanent --add-port=143/tcp success [root@mail ~]# firewall-cmd --permanent --add-port=993/tcp success [root@mail ~]# firewall-cmd --permanent --add-port=995/tcp success [root@mail ~]# firewall-cmd --permanent --add-port=7025/tcp success [root@mail ~]# firewall-cmd --reload success
Now let’s install required packages by zimbra mail server
[root@mail ~]# yum install nc* [root@mail ~]# yum install wget* -y [root@mail ~]# yum install nano* -y [root@mail ~]# yum install make* -y [root@mail ~]# yum install sudo* -y [root@mail ~]# yum install sysstat* -y [root@mail ~]# yum install libtool* -y [root@mail ~]# yum install glibc* -y [root@mail ~]# yum install perl* -y [root@mail ~]# yum install ntp* -y
Download zimbra mail server package
Installation process….
[root@mail ~]# tar -xvf zcs-8.6.0_GA_1153.RHEL7_64.20141215151110.tgz [root@mail ~]# cd zcs-8.6.0_GA_1153.RHEL7_64.20141215151110/ [root@mail zcs-8.6.0_GA_1153.RHEL7_64.20141215151110]# ./install.sh Operations logged to /tmp/install.log.44195 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 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-5.html Do you agree with the terms of the software license agreement? [N] 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-11 FOUND: libaio-0.3.109-12 FOUND: libstdc++-4.8.3-9 FOUND: unzip-6.0-13 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] Hit return Install zimbra-logger [Y] Hit Return Install zimbra-mta [Y] Hit Return Install zimbra-dnscache [Y] Hit Return Install zimbra-snmp [Y] Hit Return Install zimbra-store [Y] Hit Return Install zimbra-apache [Y] Hit Return Install zimbra-spell [Y] Hit Return Install zimbra-memcached [Y] Hit Return Install zimbra-proxy [Y] Hit Return 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-dnscache 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.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-dnscache......zimbra-dnscache-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 Attempting to create directory /opt/zimbra/perl5 mkdir /opt/zimbra/perl5: Permission denied at /usr/share/perl5/vendor_perl/local/lib.pm line 269. BEGIN failed--compilation aborted. Attempting to create directory /opt/zimbra/perl5 mkdir /opt/zimbra/perl5: Permission denied at /usr/share/perl5/vendor_perl/local/lib.pm line 269. BEGIN failed--compilation aborted. Operations logged to /tmp/zmsetup03262016-181743.log Installing LDAP configuration database...done. Setting defaults...Attempting to create directory /opt/zimbra/perl5 mkdir /opt/zimbra/perl5: Permission denied at /usr/share/perl5/vendor_perl/local/lib.pm line 269. BEGIN failed--compilation aborted. DNS ERROR resolving MX for mail.arkit.co.in It is suggested that the domain name have an MX record configured in DNS Change domain name? [Yes] Create domain: [mail.arkit.co.in] arkit.co.in MX: mail.arkit.co.in (192.168.4.29) Interface: 127.0.0.1 Interface: ::1 Interface: 192.168.4.29 done. Checking for port conflicts 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@arkit.co.in ******* +Admin Password UNSET +Anti-virus quarantine user: virus-quarantine.xkteesr1z@arkit.co.in +Enable automated spam training: yes +Spam training user: spam.abtuvxsc@arkit.co.in +Non-spam(Ham) training user: ham.asemkheuax@arkit.co.in +SMTP host: mail.arkit.co.in +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.arkit.co.in:7780/aspell.php +Enable version update checks: TRUE +Enable version update notifications: TRUE +Version update notification email: admin@arkit.co.in +Version update source email: admin@arkit.co.in +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: s) Save config to file x) Expand menu q) Quit Address unconfigured (**) items (? - help) r Invalid selection! - press any key to continue 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@arkit.co.in ******* +Admin Password UNSET +Anti-virus quarantine user: virus-quarantine.xkteesr1z@arkit.co.in +Enable automated spam training: yes +Spam training user: spam.abtuvxsc@arkit.co.in +Non-spam(Ham) training user: ham.asemkheuax@arkit.co.in +SMTP host: mail.arkit.co.in +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.arkit.co.in:7780/aspell.php +Enable version update checks: TRUE +Enable version update notifications: TRUE +Version update notification email: admin@arkit.co.in +Version update source email: admin@arkit.co.in +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: s) Save config to file x) Expand menu q) Quit Address unconfigured (**) items (? - help) s Save config in file: [/opt/zimbra/config.38019] Saving config in /opt/zimbra/config.38019...done. 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@arkit.co.in ******* +Admin Password UNSET +Anti-virus quarantine user: virus-quarantine.xkteesr1z@arkit.co.in +Enable automated spam training: yes +Spam training user: spam.abtuvxsc@arkit.co.in +Non-spam(Ham) training user: ham.asemkheuax@arkit.co.in +SMTP host: mail.arkit.co.in +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.arkit.co.in:7780/aspell.php +Enable version update checks: TRUE +Enable version update notifications: TRUE +Version update notification email: admin@arkit.co.in +Version update source email: admin@arkit.co.in +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: s) Save config to file x) Expand menu q) Quit Address unconfigured (**) items (? - help) 7 Store configuration 1) Status: Enabled 2) Create Admin User: yes 3) Admin user to create: admin@arkit.co.in ** 4) Admin Password UNSET 5) Anti-virus quarantine user: virus-quarantine.xkteesr1z@arkit.co.in 6) Enable automated spam training: yes 7) Spam training user: spam.abtuvxsc@arkit.co.in 8) Non-spam(Ham) training user: ham.asemkheuax@arkit.co.in 9) SMTP host: mail.arkit.co.in 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.arkit.co.in:7780/aspell.php 19) Enable version update checks: TRUE 20) Enable version update notifications: TRUE 21) Version update notification email: admin@arkit.co.in 22) Version update source email: admin@arkit.co.in 23) Install mailstore (service webapp): yes 24) Install UI (zimbra,zimbraAdmin webapps): yes Select, or 'r' for previous menu [r] 4 Password for admin@arkit.co.in (min 6 characters): [bPfLiyMX] Admin@1234 Store configuration 1) Status: Enabled 2) Create Admin User: yes 3) Admin user to create: admin@arkit.co.in 4) Admin Password set 5) Anti-virus quarantine user: virus-quarantine.xkteesr1z@arkit.co.in 6) Enable automated spam training: yes 7) Spam training user: spam.abtuvxsc@arkit.co.in 8) Non-spam(Ham) training user: ham.asemkheuax@arkit.co.in 9) SMTP host: mail.arkit.co.in 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.arkit.co.in:7780/aspell.php 19) Enable version update checks: TRUE 20) Enable version update notifications: TRUE 21) Version update notification email: admin@arkit.co.in 22) Version update source email: admin@arkit.co.in 23) Install mailstore (service webapp): yes 24) Install UI (zimbra,zimbraAdmin webapps): yes Select, or 'r' for previous menu [r] Hit Return Main menu 1) Common Configuration: +Hostname: mail.arkit.co.in +Ldap master host: mail.arkit.co.in +Ldap port: 389 +Ldap Admin password: set +Secure interprocess communications: yes +TimeZone: Asia/Colombo +IP Mode: ipv4 +Default SSL digest: sha256 2) zimbra-ldap: Enabled +Create Domain: yes +Domain to create: arkit.co.in +Ldap root password: set +Ldap replication password: set +Ldap postfix password: set +Ldap amavis password: set +Ldap nginx password: set +Ldap Bes Searcher password: set 3) zimbra-logger: Enabled 4) zimbra-mta: Enabled +Enable Spamassassin: yes +Enable Clam AV: yes +Enable OpenDKIM: yes +Notification address for AV alerts: admin@arkit.co.in +Bind password for postfix ldap user: set +Bind password for amavis ldap user: set 5) zimbra-dnscache: Enabled +Master DNS IP address(es): 192.168.4.12 +Enable DNS lookups over TCP: yes +Enable DNS lookups over UDP: yes +Only allow TCP to communicate with Master DNS: no 6) zimbra-snmp: Enabled +Enable SNMP notifications: yes +SNMP Trap hostname: mail.arkit.co.in +Enable SMTP notifications: yes +SMTP Source email address: admin@arkit.co.in +SMTP Destination email address: admin@arkit.co.in 7) zimbra-store: Enabled +Create Admin User: yes +Admin user to create: admin@arkit.co.in +Admin Password set +Anti-virus quarantine user: virus-quarantine.xkteesr1z@arkit.co.in +Enable automated spam training: yes +Spam training user: spam.abtuvxsc@arkit.co.in +Non-spam(Ham) training user: ham.asemkheuax@arkit.co.in +SMTP host: mail.arkit.co.in +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.arkit.co.in:7780/aspell.php +Enable version update checks: TRUE +Enable version update notifications: TRUE +Version update notification email: admin@arkit.co.in +Version update source email: admin@arkit.co.in +Install mailstore (service webapp): yes +Install UI (zimbra,zimbraAdmin webapps): yes 8) zimbra-spell: Enabled 9) zimbra-proxy: Enabled +Enable POP/IMAP Proxy: TRUE +IMAP proxy port: 143 +IMAP SSL proxy port: 993 +POP proxy port: 110 +POP SSL proxy port: 995 +Bind password for nginx ldap user: set +Enable HTTP[S] Proxy: TRUE +HTTP proxy port: 80 +HTTPS proxy port: 443 +Proxy server mode: https 10) Default Class of Service Configuration: +Enable Tasks Feature: Enabled c) Collapse menu s) Save config to file 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] Save config in file: [/opt/zimbra/config.38019] Saving config in /opt/zimbra/config.38019...done. The system will be modified - continue? [No] yes Operations logged to /tmp/zmsetup03262016-192032.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 mail.arkit.co.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 mail.arkit.co.in...done. Setting zimbraFeatureTasksEnabled=TRUE...done. Setting zimbraFeatureBriefcasesEnabled=TRUE...done. 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 mail.arkit.co.in...done. Adding mail.arkit.co.in to zimbraMailHostPool in default COS...done. Creating domain arkit.co.in...done. Setting default domain name...done. Creating domain arkit.co.in...already exists. Creating admin account admin@arkit.co.in...done. Creating root alias...done. Creating postmaster alias...done. Creating user spam.abtuvxsc@arkit.co.in...done. Creating user ham.asemkheuax@arkit.co.in...done. Creating user virus-quarantine.xkteesr1z@arkit.co.in...done. Setting spam training and Anti-virus quarantine accounts...done. Initializing store sql database...done. Setting zimbraSmtpHostname for mail.arkit.co.in...done. Configuring SNMP...done. Setting up syslog.conf...done. Starting servers...Attempting to create directory /opt/zimbra/perl5 mkdir /opt/zimbra/perl5: Permission denied at /usr/share/perl5/vendor_perl/local/lib.pm line 269. BEGIN failed--compilation aborted. 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@arkit.co.in) Notify Zimbra of your installation? [Yes] no Notification skipped Setting up zimbra crontab...done. Moving /tmp/zmsetup03262016-192032.log to /opt/zimbra/log Configuration complete - press return to exit Hit Return
Starting and restarting zimbra mail service
[root@mail ~]# systemctl status zimbra.service [root@mail ~]# systemctl restart zimbra.service [root@mail ~]# systemctl stop zimbra.service [root@mail ~]# systemctl start zimbra.service
zimbra server installation completed successfully.
Now open the zimbra mail server administrator console
https://mail.arkit.co.in:7071
Administrator console screenshot below
Zimbra services status
Mail box console
That’s about zimbra mail server zimbra mail server zimbra mail server zimbra mail server zimbra mail server zimbra mail server zimbra mail server zimbra mail server
2 comments:
Thanks for Sharing for knowledgeable post. Zimbra mail server provides full cross platform support with native integration on major operating systems like windows, macs and linux desktop.
Thanks for Sharing for knowledgeable post. Nagios is a widely-used network management software open source / network monitoring system that monitors the specified equipment (hardware) and services (software and operating system), alerting when their behavior is not as desired.
Post a Comment