How To Install Zimbra Mail server on ubuntu 18.04 LTS

Zimbra is a free & open-source mail server & a web client.It is used for email, calendaring, creating users and distribution lists, file sharing, chatting, & managing mail server activities. Zimbra mail server manages all mailbox contents such as messages, contacts, calendar and attachments.

It supports various platforms such as Ubuntu 12.04, Ubuntu 14.04, Ubuntu 18.04, Redhat Enterprise Linux 6 & Centos7.

Install Zimbra Mail server on ubuntu

Update the System.

apt-get update

Set the hostname & hosts.

hostnamectl set-hostname mail.host-name
&
echo "server-ip mail.host-name" | sudo tee -a /etc/hosts

Disable,Stop & Remove Systemd-resolve service.

systemctl disable systemd-resolved
&
systemctl stop systemd-resolved
&
rm /etc/resolv.conf

Create a new resolv.conf file.

sh -c 'echo nameserver 8.8.8.8 >> /etc/resolv.conf'

Install DNS server.

apt-get install dnsmasq

Open the /etc/dnsmasq.conf file.

vim /etc/dnsmasq.conf

Add the following lines:

server=server-ip
domain=host-name
mx-host= host-name, mail.host-name, 5
mx-host=mail.host-name mail.host-name, 5
listen-address=127.0.0.1

Restart the dnsmasq service.

systemctl restart dnsmasq

Download Zimbra.

wget https://files.zimbra.com/downloads/8.8.15_GA/
zcs-8.8.15_GA_3869.UBUNTU18_64.20190918004220.tgz

Extract the downloaded file:

tar -xvf zcs-8.8.15_GA_3869.UBUNTU18_64.20190918004220.tgz

Change the directory:

cd zcs-8.8.15_GA_3869.UBUNTU18_64.20190918004220

Install Zimbra.

./install.sh

Here is the command output.

  • Type Y.
Operations logged to /tmp/install.log.9pkpz8Fz
Checking for existing installation...
    zimbra-drive...NOT FOUND
    zimbra-imapd...NOT FOUND
    zimbra-patch...NOT FOUND
    zimbra-mta-patch...NOT FOUND
    zimbra-proxy-patch...NOT FOUND
    zimbra-license-tools...NOT FOUND
    zimbra-license-extension...NOT FOUND
    zimbra-network-store...NOT FOUND
    zimbra-network-modules-ng...NOT FOUND
    zimbra-chat...NOT FOUND
    zimbra-talk...NOT FOUND
    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.
SYNACOR, INC. ("SYNACOR") 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 this Zimbra Collaboration Suite Software:
https://www.zimbra.com/license/zimbra-public-eula-2-6.html
----------------------------------------------------------------------



Do you agree with the terms of the software license agreement? [N] Y

 

  • Install zimbra packages repository.
  • Type Y.
Use Zimbra's package repository [Y] Y

Warning: apt-key output should not be parsed (stdout is not a terminal)
Importing Zimbra GPG key

Configuring package repository

Checking for installable packages

Found 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)

 

  • Type Y, select zimbra packages to install.
Select the packages to install

Install zimbra-ldap [Y] Y

Install zimbra-logger [Y] Y

Install zimbra-mta [Y] Y

Install zimbra-dnscache [Y] Y

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

Install zimbra-drive [Y] Y

Install zimbra-imapd (BETA - for evaluation only) [N] N

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

 

  • Type Y.
Installing:
    zimbra-core
    zimbra-ldap
    zimbra-logger
    zimbra-mta
    zimbra-dnscache
    zimbra-snmp
    zimbra-store
    zimbra-apache
    zimbra-spell
    zimbra-memcached
    zimbra-proxy
    zimbra-drive
    zimbra-patch
    zimbra-mta-patch
    zimbra-proxy-patch
    zimbra-chat

The system will be modified.  Continue? [N] Y

Beginning Installation - see /tmp/install.log.9pkpz8Fz for details...

                          zimbra-core-components will be downloaded and installed.
                            zimbra-timezone-data will be installed.
                           zimbra-common-mbox-db will be installed.
                         zimbra-common-mbox-docs will be installed.
                          zimbra-common-core-jar will be installed.
                         zimbra-common-mbox-conf will be installed.
                    zimbra-common-mbox-conf-msgs will be installed.
                   zimbra-common-mbox-conf-attrs will be installed.

 

  • Type 7 for change the password.
Main menu

   1) Common Configuration:                                                  
   2) zimbra-ldap:                             Enabled                       
   3) zimbra-logger:                           Enabled                       
   4) zimbra-mta:                              Enabled                       
   5) zimbra-dnscache:                         Enabled                       
******* +Master DNS IP address(es):            UNSET                         
        +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                       
   7) zimbra-store:                            Enabled                       
        +Create Admin User:                    yes                           
        +Admin user to create:                 [email protected]        
******* +Admin Password                        UNSET                         
        +Anti-virus quarantine user:           [email protected]
        +Enable automated spam training:       yes                           
        +Spam training user:                   [email protected]
        +Non-spam(Ham) training user:          [email protected] 
        +SMTP host:                            mail.example.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://mail.example.com:7780/aspell.php
        +Enable version update checks:         TRUE                          
        +Enable version update notifications:  TRUE                          
        +Version update notification email:    [email protected]        
        +Version update source email:          [email protected]        
        +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


 

  • Type 4 & Press Enter.
  • Type the password.
Select, or 'r' for previous menu [r] 4

Password for [email protected] (min 6 characters): [JNQSa2ofYI] password_here

 

  • Type a to apply the configurations.
  • Type y,for save config data to a file.
  • Type yes for system modification.
  • Press Enter.
*** CONFIGURATION COMPLETE - press 'a' to apply
 Select from menu, or press 'a' to apply config (? - help) a
 Save configuration data to a file? [Yes] y
 Save config in file: [/opt/zimbra/config.24171] 
 Saving config in /opt/zimbra/config.24171…done.
 The system will be modified - continue? [No] Yes
Starting servers...done.
Installing common zimlets...
	com_zimbra_cert_manager...done.
	com_zimbra_adminversioncheck...done.
	com_zimbra_attachcontacts...done.
	com_zimbra_viewmail...done.
	com_zimbra_attachmail...done.
	com_zimbra_url...done.
	com_zimbra_webex...done.

....

Configuration complete - press return to exit 

Open the following port number on ufw firewall.

ufw allow 22/tcp
&
25,80,110,143,161,389,443,465,514,587,993,995,7071,8443,11211/tcp ....

Access Zimbra web interface

https://server-ip:7071

Here is the output.

  • By default,username is admin.
  • Provide the password.
  • Click on Sign in.

 

Fig 2

 

  • Now Zimbra Mail server is Ready.

 

Fig. 3

 

6 responses to “How To Install Zimbra Mail server on ubuntu 18.04 LTS”

  1. I like the valuable data you give within your articles. Ill bookmark your weblog and check once again here regularly. Im quite certain I will learn a lot of new stuff appropriate here! Very good luck for the next!

  2. The Twitter application page will open. This really is very good if youve got several thousand followers, but as you get a lot more and far more the usefulness of this tool is downgraded.

  3. Howdy just wanted to give you a brief heads up and let you know a few with the pictures arent loading properly. Im not sure why but I believe its a linking problem. Ive tried it in two different internet browsers and both show exactly the same outcome.

Leave a Reply