Step 1: Update And Upgrade Linux (Install Zimbra Ubuntu 18.04)
First, for how to install Zimbra on Ubuntu 18.04, we have to update and upgrade packages on linux, so that everything needed to install Zimbra goes well.
apt update && apt upgrade
Step 2: Edit Hostname and Linux Hosts File (Install Zimbra Ubuntu 18.04)
Edit Hostname and the Hosts file on Linux is located edit in /etc/hostname. Hostname is the name that will be used for our server. In addition, Hostname is also used for server identity.
nano /etc/hostname
Then fill in the domain you are using, here we use the example of mail.dixmata.com

Replace with the Domain name that will be used, then edit the hosts file with the following command:
nano /etc/hosts

And Reboot
reboot
Step 3: Install dnsmasq
Next Install Zimbra Ubuntu, we will install dnsmasq as a DNS server. But before that we must first turn off systemd-resolve which is running on port 53, because DNS is also running on port 53 which causes the port to conflict.
systemctl disable systemd-resolved
systemctl stop systemd-resolved
Step 4: Configure Resolv File (Install Zimbra Ubuntu)
The basic configuration of the ubuntu resolv file is already linked with the ubuntu system, so to use dnsmasq we have to remove the link first.
To see if a file is still symlinked, use the following command:
ls -lh /etc/resolv.conf
Delete the resolv.conf file, follow the following command.
rm -f /etc/resolv.conf
Now create a new resolv.conf file and fill in the Google DNS server, follow the following command
nano /etc/resolv.conf

Install dnsmasq , follow the following command
apt install dnsmasq -y
Step 5: Configure Dnsmasq(Install Zimbra Ubuntu)
After installing Dnsmasq, then configuring Dnsmasq, open the dnsmasq.conf file located in /etc/dnsmasq.conf.
Backup the default dnsmasq configuration file, namely dnsmasq.conf, if there is an error in the configuration, we can restore it to the beginning. Follow these commands:
cp /etc/dnsmasq.conf /etc/dnsmasq.conf.bak
Edit file dnsmasq.conf
nano /etc/dnsmasq.conf
Follow the following configuration, changing ip-address and dixmata.com according to what you are using.
server= 172.20.2.90
domain=dixmata.com
mx-host= dixmata.com, mail.dixmata.com, 5
mx-host= mail.dixmata.com, mail.dixmata.com, 5
listen-address=127.0.0.1
Restart service dnsmasq
systemctl restart dnsmasq
Test A Record mail.
Dig for an A record of Zimbra Server.
dig A mail.dixmata.com

Continue with Test MX Record Domain
dig MX dixmata.com


Step 6: Download Zimbra Collaboration Open Source Edition
The next step in Installing Zimbra Ubuntu is downloading Zimbra Collaboration, because in this tutorial using Ubuntu 18.04, the Zimbra that will be downloaded is Zimbra Ubuntu 18.04, to download Zimbra you can link Download Zimbra
