Faruque Ahmed : MCP, MCSA, MCSE, MCTS, MCIT, CCNA, OCA, OCP, GCP
Your Zimbra server will have to meet below minimum requirements to be able to support at least up to 50 users.
8GB RAM
4vCPUs
50GB available storage
DNS server
Go to the control panel where you have hosted your domain and create the A record and MX record which we will be using in our installation.
======================================================================== FQDN Name DNS Record Type Value========================================================================zimbra.techiescode.com A 192.168.0.103techiescode.com MX zimbra.techiescode.com
Update your system.
$ sudo apt update && sudo apt upgrade -y
If you have not yet installed Dnsmasq please follow up to step 2 of Best Way How to Install and Configure Dnsmasq in Ubuntu 22.04|20.04|18.04 and have everything set in place.
After installation, set the following variables in the /etc/dnsmasq.conf file to match your server.
$ sudo mv /etc/dnsmasq.conf /etc/dnsmasq.conf.bak$ sudo vim /etc/dnsmasq.confserver=8.8.8.8listen-address=127.0.0.1domain=zimbra.techiescode.com # Define domainmx-host=zimbramx.techiescode.comaddress=/zimbra.techiescode.com/192.168.0.103Set the hostname of your mail server corresponding to you A record created
sudo hostnamectl set-hostname zimbra.techiescode.com$exec bash
Set server hostname in /etc/hosts file.
$ vim /etc/hosts192.168.0.103 zimbra.techiescode.com
When done restart Dnsmasq to apply the changes
$ sudo systemctl restart dnsmasq
Visit Zimbra’s official download page to download the latest or preferred version of Zimbra. In this case, we are using version 8.8.15.
# Ubuntu 20.04cd /tmpwget https://files.zimbra.com/downloads/8.8.15_GA/zcs-8.8.15_GA_4179.UBUNTU20_64.20211118033954.tgz# Ubuntu 18.04cd /tmpwget https://files.zimbra.com/downloads/8.8.15_GA/zcs-8.8.15_GA_3869.UBUNTU18_64.20190918004220.tgz# Ubuntu 16.04cd /tmpwget https://files.zimbra.com/downloads/8.8.15_GA/zcs-8.8.15_GA_3869.UBUNTU16_64.20190918004220.tgz
Extract files with help of below command
$ tar xvf zcs-8.8.15_GA_*.tgz
Navigate to the extracted directory with Zimbra files.
$ cd zcs*/
Run installation script to start the installation process.
----------------------------------------------------------------------
Accept Zimbra licensing terms to continue with the installation.
Do you agree with the terms of the software license agreement? [N]Y
Accept use of Zimbra package repo for installation.
Use Zimbra's package repository [Y]YWarning: apt-key output should not be parsed (stdout is not a terminal)Importing Zimbra GPG keyConfiguring package repositoryChecking for installable packagesFound zimbra-core (local)Found zimbra-ldap (local)Found zimbra-logger (local)Found zimbra-mta (local)Found zimbra-dnscache (local)Found zimbra-snmp (local)Found zimbra-store (local)Found zimbra-apache (local)Found zimbra-spell (local)Found zimbra-memcached (repo)Found zimbra-proxy (local)Found zimbra-drive (repo)Found zimbra-imapd (local)Found zimbra-patch (repo)Found zimbra-mta-patch (repo)Found zimbra-proxy-patch (repo)
Select the Zimbra packages to install.
Install 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]Install zimbra-drive [Y]Install zimbra-imapd (BETA - for evaluation only) [N]Install zimbra-chat [Y]Checking required space for zimbra-coreChecking space for zimbra-storeChecking required packages for zimbra-storezimbra-store package check complete.Installing:zimbra-corezimbra-ldapzimbra-loggerzimbra-mtazimbra-snmpzimbra-storezimbra-apachezimbra-spellzimbra-memcachedzimbra-proxyzimbra-drivezimbra-patchzimbra-mta-patchzimbra-proxy-patchzimbra-chat
Allow your system to be modified for Zimbra to be installed.
The system will be modified. Continue? [N] Yzimbra-chat will be downloaded and installed (later).
Now the process of downloading and installation of Zimbra packages will begin here.
Downloading packages (10):zimbra-core-componentszimbra-ldap-componentszimbra-mta-componentszimbra-snmp-componentszimbra-store-componentszimbra-jetty-distributionzimbra-apache-componentszimbra-spell-componentszimbra-memcachedzimbra-proxy-components...doneRemoving /opt/zimbraRemoving zimbra crontab entry...done.Cleaning up zimbra init scripts...done.Cleaning up /etc/security/limits.conf...done.Finished removing Zimbra Collaboration Server.Installing repo packages (10):zimbra-core-componentszimbra-ldap-componentszimbra-mta-componentszimbra-snmp-componentszimbra-store-componentszimbra-jetty-distributionzimbra-apache-componentszimbra-spell-componentszimbra-memcachedzimbra-proxy-components...doneInstalling local packages (25):zimbra-timezone-datazimbra-common-mbox-dbzimbra-common-mbox-docszimbra-common-core-jarzimbra-common-mbox-confzimbra-common-mbox-conf-msgszimbra-common-mbox-conf-attrszimbra-common-mbox-native-libzimbra-common-mbox-conf-rightszimbra-common-core-libszimbra-corezimbra-ldapzimbra-loggerzimbra-mtazimbra-snmpzimbra-mbox-warzimbra-mbox-confzimbra-mbox-servicezimbra-mbox-webclient-warzimbra-mbox-store-libszimbra-mbox-admin-console-warzimbra-storezimbra-apachezimbra-spellzimbra-proxy...doneInstalling extra packages (5):zimbra-drivezimbra-patchzimbra-mta-patchzimbra-proxy-patchzimbra-chat...doneRunning Post Installation Configuration:Operations logged to /tmp/zmsetup.20220514-205750.logInstalling LDAP configuration database...done.
Set Admin Password at this stage. This is the password you should use to access the admin console.
Main menu1) Common Configuration:2) zimbra-ldap: Enabled3) zimbra-logger: Enabled4) zimbra-mta: Enabled5) zimbra-snmp: Enabled6) zimbra-store: Enabled+Create Admin User: yes+Admin user to create: admin@zimbra.techiescode.com******* +Admin Password UNSET+Anti-virus quarantine user: virus-quarantine._wit6hnqbb@zimbra.techiescode.com+Enable automated spam training: yes+Spam training user: spam.0ccahhh6ix@zimbra.techiescode.com+Non-spam(Ham) training user: ham._xiijxfgz5@zimbra.techiescode.com+SMTP host: zimbra.techiescode.com+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://zimbra.techiescode.com:7780/aspell.php+Enable version update checks: TRUE+Enable version update notifications: TRUE+Version update notification email: admin@zimbra.techiescode.com+Version update source email: admin@zimbra.techiescode.com+Install mailstore (service webapp): yes+Install UI (zimbra,zimbraAdmin webapps): yes7) zimbra-spell: Enabled8) zimbra-proxy: Enabled9) Default Class of Service Configuration:s) Save config to filex) Expand menuq) QuitAddress unconfigured (**) items (? - help) 6The system will be modified - continue? [No] Yes
The system will be modified as more files are being configured. When done, Zimbra services will be started automatically.
Installing common zimlets...com_zimbra_email...done.com_zimbra_tooltip...done.com_zimbra_viewmail...done.com_zimbra_url...done.com_zimbra_ymemoticons...done.com_zimbra_adminversioncheck...done.com_zimbra_bulkprovision...done.com_zimbra_proxy_config...done.com_zimbra_srchhighlighter...done.com_zimbra_attachmail...done.com_zimbra_attachcontacts...done.com_zextras_drive_open...done.com_zextras_chat_open...done.com_zimbra_date...done.com_zimbra_clientuploader...done.com_zimbra_phone...done.com_zimbra_mailarchive...done.com_zimbra_cert_manager...done.com_zimbra_webex...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.8.15_GA_3869_UBUNTU18_64)The ADMIN EMAIL ADDRESS created (admin@zimbra.techiescode.com)Notify Zimbra of your installation? [Yes]Notifying Zimbra of installation via http://www.zimbra.com/cgi-bin/notify.cgi?VER=8.8.15_GA_3869_UBUNTU18_64&MAIL=admin@zimbra.techiescode.comChecking if the NG started running...done.Setting up zimbra crontab...done.Moving /tmp/zmsetup.20220514-205750.log to /opt/zimbra/logConfiguration complete - press return to exit
Zimbra installation is now complete. Confirm that all services are running.
$ sudo su - zimbra -c "zmcontrol status"Host zimbra.techiescode.comamavis Runningantispam Runningantivirus Runningldap Runninglogger Runningmailbox Runningmemcached Runningmta Runningopendkim Runningproxy Runningservice webapp Runningsnmp Runningspell Runningstats Runningzimbra webapp RunningzimbraAdmin webapp Runningzimlet webapp Runningzmconfigd Running
To access the Zimbra admin web interface, use the URL https://ServerIP/hostname: 7071