How To Install Zimbra Collaboration Suite (ZCS) On Ubuntu - Page 2

2 Change The Default Shell (Ubuntu 6.10 Edgy Eft Only)

If you are on Ubuntu Edgy Eft, most probably /bin/sh is a symlink to /bin/dash, however we need /bin/bash, not /bin/dash. Therefore we do this:

rm -f /bin/sh
ln -s /bin/bash /bin/sh

If you don't do this, you will most likely get an error like this during the Zimbra installation:

Creating SSL certificate...Done
Initializing ldap...TLS: error:02001002:system library:fopen:No such file or directory bss_file.c:352
TLS: error:20074002:BIO routines:FILE_CTRL:system lib bss_file.c:354
TLS: error:140B0002:SSL routines:SSL_CTX_use_PrivateKey_file:system lib ssl_rsa.c:648
main: TLS init def ctx failed: -1
ERROR - failed to start slapd


On Ubuntu Dapper Drake, /bin/sh points to /bin/bash by default, so everything is ok.


3 Install Zimbra

First let's install some prerequisites for Zimbra:

apt-get install curl fetchmail libpcre3 libgmp3c2 libexpat1 libxml2 libtie-ixhash-perl

Afterwards, go to and download the Ubuntu 6 (.tgz) package to /usr/src, for example like this:

cd /usr/src

(Replace the download URL with the one you get from SourceForge.)

Afterwards, unpack the Zimbra .tgz file and start the installer:

tar xvfz zcs-4.5.3_GA_733.UBUNTU6.tgz
cd zcs/

The installer will ask a few questions. Answer them like this:

Operations logged to /tmp/install.log.4416
Checking for existing installation...
    zimbra-ldap...NOT FOUND
    zimbra-logger...NOT FOUND
    zimbra-mta...NOT FOUND
    zimbra-snmp...NOT FOUND
    zimbra-store...NOT FOUND
    zimbra-apache...NOT FOUND
    zimbra-spell...NOT FOUND
    zimbra-core...NOT FOUND


License Terms for the Zimbra Collaboration Suite:

Press Return to continue
 <-- <ENTER>

Install zimbra-ldap [Y] <-- <ENTER>

Install zimbra-logger [Y] <-- <ENTER>

Install zimbra-mta [Y] <-- <ENTER>

Install zimbra-snmp [Y] <-- <ENTER>

Install zimbra-store [Y] <-- <ENTER>

Install zimbra-spell [Y] <-- <ENTER>

The system will be modified.  Continue? [N] <-- y

Main menu

   1) Hostname:                      
   2) Ldap master host:              
   3) Ldap port:                               389
   4) Ldap password:                           set
   5) zimbra-ldap:                             Enabled
   6) zimbra-store:                            Enabled
        +Create Admin User:                    yes
        +Admin user to create:       
******* +Admin Password                        UNSET
        +Enable automated spam training:       yes
        +Spam training user:         
        +Non-spam(Ham) training user:
        +Global Documents Account:   
        +SMTP host:                  
        +Web server HTTP port:                 80
        +Web server HTTPS port:                443
        +Web server mode:                      http
        +Enable POP/IMAP proxy:                no
        +IMAP server port:                     143
        +IMAP server SSL port:                 993
        +POP server port:                      110
        +POP server SSL port:                  995
        +Use spell check server:               yes
        +Spell server URL:           

   7) zimbra-mta:                              Enabled
   8) zimbra-snmp:                             Enabled
   9) zimbra-logger:                           Enabled
  10) zimbra-spell:                            Enabled
   r) Start servers after configuration        yes
   s) Save config to file
   x) Expand menu
   q) Quit

Address unconfigured (**) items  (? - help)
 <-- 6

Store configuration

   1) Status:                                  Enabled
   2) Create Admin User:                       yes
   3) Admin user to create:          
** 4) Admin Password                           UNSET
   5) Enable automated spam training:          yes
   6) Spam training user:            
   7) Non-spam(Ham) training user:   
   8) Global Documents Account:      
   9) SMTP host:                     
  10) Web server HTTP port:                    80
  11) Web server HTTPS port:                   443
  12) Web server mode:                         http
  13) Enable POP/IMAP proxy:                   no
  14) IMAP server port:                        143
  15) IMAP server SSL port:                    993
  16) POP server port:                         110
  17) POP server SSL port:                     995
  18) Use spell check server:                  yes
  19) Spell server URL:              

Select, or 'r' for previous menu [r]
 <-- 4

Password for (min 6 characters): [8BD.yZtFh] <-- [specify a password for the admin user, e.g. howtoforge]

Select, or 'r' for previous menu [r] <-- <ENTER>

Main menu

   1) Hostname:                      
   2) Ldap master host:              
   3) Ldap port:                               389
   4) Ldap password:                           set
   5) zimbra-ldap:                             Enabled
   6) zimbra-store:                            Enabled
   7) zimbra-mta:                              Enabled
   8) zimbra-snmp:                             Enabled
   9) zimbra-logger:                           Enabled
  10) zimbra-spell:                            Enabled
   r) Start servers after configuration        yes
   s) Save config to file
   x) Expand menu
   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] <-- <ENTER>
Save config in file: [/opt/zimbra/config.5762] <-- <ENTER>
Saving config in /opt/zimbra/config.5762...Done
The system will be modified - continue? [No]
 <-- y

You have the option of notifying Zimbra of your installation.
This helps us to track the uptake of the Zimbra Collaboration Suite.
The only information that will be transmitted is:
        The VERSION of zcs installed (4.5.3_GA_733_UBUNTU6)
        The ADMIN EMAIL ADDRESS created (

Notify Zimbra of your installation? [Yes]
 <-- [if you want to notify Zimbra of your installation, type y, otherwise n]

Configuration complete - press return to exit <-- <ENTER>

That's it already. To test if all Zimbra services are running, become the zimbra user:

su - zimbra

and run

zmcontrol status

The output should look like this:

zimbra@mail:~$ zmcontrol status
        antispam                Running
        antivirus               Running
        ldap                    Running
        logger                  Running
        mailbox                 Running
        mta                     Running
        snmp                    Running
        spell                   Running

If not all services are started, run

zmcontrol start



to become root again.

Share this page:

7 Comment(s)

Add comment


From: at: 2007-03-08 11:18:44

please consider if you have the time to publish the same tutorial for Centos (or any redhat clone) it will be more valuable knowing that most servers use RHEL or RHEL clones.

Thank you for your time


From: at: 2008-03-26 09:55:39

Do you really need the point 1.1 Enable The root Account?
I personaly dont like to enable the root account as it is a main target on a server...
May you just use "sudo bash" to execute commands as root, should do fine ;-)

From: Anonymous at: 2009-01-21 00:23:27

Please help,

when installing I get:

zimbra-proxy ....   ....done

Can´t locate Tie/ ib @INC (@INC contains: .......) at /opt/zimbra/zimbramon/lib/Net/ line 10

BEGIN failed - compilation aborted at opt/zimbra/zimbramon/lib/Net/ line 10

compilation failed in require at /opt/zimbra/libexec/ line 22

BEGIN failed - compilation aborted at /opt/zimbra/libexec/ line 22

From: Anonymous at: 2009-07-03 03:41:46

found this during the install from a note on installing scalix.

From: at: 2007-07-30 07:19:51

Just a quick note: not all the features listed are features of the Open Source version.  Consult the product comparison map on the Zimbra website to see which capabilities each verson has.

 Having said that, it seems to be worth it, especially the calendaring is very powerful.  Thanks for the HOWTO, it saves a lot of time!


From: at: 2008-04-05 03:56:21

Many many thanks to writer of this greate how to, it is really helpfull and it just works

I am new to this forum so let me be part of this please

I followed this how to and got my zimbra running without any major issue. I cannot figure out where this info should go  /etc/hosts  or /etc/resolv.conf or somewhere else

[...]        A        MX 0             MX 0

so followed rest and it still worked very nice but I was not able to browse by domain and that is why I could got any email or reply I was successfull in sending mails, but I used IP instead and that worked. I am really thankfull to writer and asking for little help to clear where this stuff stated above suppose to go and if possible give me exact files contents which will be greate help. Thank you in advance

From: Oniemusha at: 2010-07-15 08:25:56

This is a nice site who really are linux noobz. i just followed the instruction and voila my zimbra mail is online. Again, thank you for a nice work!!!!