How to Setup Zimbra Open Source Mail Server on Ubuntu 10.04

Discuss more about posts, topics & issues at our GeekLK Help

Zimbra, an open source mail server is not just to send and receive emails but it’s a fully featured collaboration suite which includes calendar, tasks, file-sharing, IM, mobile support and many more… Now, I wanted to deploy an email server on my work place and went through some research based on cost-effective, features, stability and easy to manage. And, I ended up choosing Zimbra open-source edition where as, I don’t need to worry about licensing. But the only thing to care about is hardware, power and internet. Zimbra also provide premium services which is cheaper compared to other e-mail solutions. Still this implementation is under testing. But, I really wanted to share what exactly I did on testing this product.

In this tutorial I will explain on how to setup Zimbra CS in Ubuntu 10.04 LTS.  Make sure following requirements are met before you proceed with this.

  • A domain name (e.g.: with the ability to manage DNS and MX records. Assume I use
  • A PC installed Ubuntu 10.04 LTS x64 (64bit). I use Desktop Edition. Please refer System requirements document. Assume it has a Private IP
  • Router is connected to the internet with a Static IP address, If you don’t have one, then refer this.
  • Zimbra insallation file.

Configure your router to forward following ports to

22, 25 – SMTP, 80 – HTTP, 110 – POP3, 143 – IMAP, 443 – HTTPS, 993 – IMAP SSL, 995 – POP3 SSL.

We need to change host files to match the domain.

cd /etc/

sudo cp hosts hosts.bak      #Its good to backup configuration files if anything goes wrong

sudo nano hosts localhost zimbraserver

sudo cp resolv.conf resolv.conf.bak

sudo nano resolv.conf


Install Webmin and BIND dns server

Webmin is a web based tool to easily manage Ubuntu server

We need to create an internal DNS server. If you want to know why check this.

sudo apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl apt-show-versions libapt-pkg-perl


sudo dpkg -i libmd5-perl_2.03-1_all.deb


sudo dpkg -i webmin_1.580_all.deb

sudo apt-get install bind9

#reboot the system
sudo reboot

After rebooting the server login to webming by and login with ubuntu username and password. Do the following to set the DNS records.

Click Refresh Modules

#Setup forwarding
Servers > BIND DNS SERVER > Forwarding and Transfers > Servers to forward queries to,

#Create master zone for
Servers > BIND DNS SERVER > Create master zone > Zone type = Forward, Domain name / Network =, Email address =

#Create reverse zone for
Servers > BIND DNS SERVER > Create master zone > Zone type = Reverse, Domain name / Network =, Email address =

#Create A records for
Servers > BIND DNS SERVER > > Address > Name = mail, Address =
Servers > BIND DNS SERVER > > Address > Name =, Address =

#Add MX records for
Servers > BIND DNS SERVER > > Mail Server > Name =, Mail Server =, Priority = 10

#Restart Bind
Stop BIND > Start BIND

Now the DNS server is set. To check DNS server works try these commands. Make the changes similar to this in the domain in public pointing to the ip address of the router’s internet facing interface (public IP)

dig mx

Before installing Zimbra install the following packages

 sudo apt-get install sysstat sqlite3

Now let’s install zimbra (the installation package is extracted on desktop)

cd /(zimbra 7 folder)

sudo ./

License Agree = Y

Install zimbra-ldap = Y
Install zimbra-logger = Y
Install zimbra-mta = Y
Install zimbra-snmp = Y
Install zimbra-store = Y
Install zimbra-apache = Y
Install zimbra-spell = Y
Install zimbra-memchached = N
Install zimbra-proxy = N

System will be modified? = Y

Change domain name = Y =

4 = Admin password set = ******
r for previous menu
a to apply

Save config = Y and Enter

System will be modified? = Y

Things are done! & good to go..!! Now login to the admin console by

Use the following resources to dig deeper

Zimbra Admin Guide

Multi Server Installation

Discuss more about posts, topics & issues at our GeekLK Help


About Irfad Razick

I'm a tech enthusiast, who like technology and always like to share what I learn.

View all posts by Irfad Razick
Your Ad Here

11 Responses to “How to Setup Zimbra Open Source Mail Server on Ubuntu 10.04”

  1. Bill Says:

    Hi, I am in the middle of trying to configure zimbra to work with my public domain name. I am going to try and follow your instructions. I have a first question. Why is the ip address in the hosts file and not Thanks alot for the tutorial!


  2. Sidney Arvanitis Says:

    This article provides a great historical perspective of what can go wrong in a cloud deployment leveraging highly publicized case studies. Great research in putting this post together. 


  3. Kimbra Napierala Says:

    I have to say that for the last few of hours i have been hooked by the amazing articles on this website. Keep up the great work.


  4. Daysi Gaynor Says:

    Thank you for sharing you experience. My understanding is that sata drives usually have around 80 iops. How are you able to get more than 2000 iops in a test above? With only 256 Megs of RAM, it couldn’t have buffered soo much. Appreciate your input. thank you.


  5. Keshav Reddy Says:

    Nice. Article. Thanks a lot. Kindly, can you post; how to backup the Zimbra Mail Server.


  6. kurniadi Says:


    i use webmin 1.6, but I can’t bind dns server> What’s mean




  1. Internal Mail Working / Incoming Mail Working / Outgoing Mail Deferred - Zimbra :: Forums - February 22, 2012

    […] […]

  2. zimbra question, on proper install - Zimbra :: Forums - June 3, 2012

    […] How to Setup Zimbra Open Source Mail Server on Ubuntu 10.04 | GeekLK :: You need to follow these steps Quote: […]

Leave a Reply