Installing Zimbra Collaborative Suite on Ubuntu 12.04 64 bit LTS

Directions were based on the article written here:

A copy of the post can be downloaded here.

However, I ran into some problems installing the suite. You need to prepare the default installation of Ubuntu 12.04 x64 sever before running the install scripts for Zimbra. The directions apply only to new installations. All commands were run under root.

Install CSF – This is a program to configure IPtables painlessly. Original article here. I ran the following commands:

tar xf csf.tgz
cd csf
vi /etc/csf/csf.conf

The following ports were added

For Tcp-in:


For Tcp-out:


Also…set Test to 0

Then restart csf

csf -r

Afterwards, you need to remove sendmail and apache. Zimbra will reinstall these.

apt-get remove sendmail sendmail-bin
apt-get purge exim4 sendmail sendmail-bin
apt-get remove apache2*

Next update your DNS MX records. Make sure their is an A record pointing to the  server and a corresponding MX for the same server, followed by a the primary MX record for the root domain entry itself.

For example, in bind:        A        MX 0             MX 0

Next update your hosts file.

vi /etc/hosts    mail
echo > /etc/hostname

Install perquisites for Zimbra

apt-get install netcat-openbsd libidn11 libpcre3 libgmp3c2 libexpat1 libstdc++6 libperl5.14 sysstat sqlite3

Reboot the server – this is an actual terminal command.


And lastly, fetch the Zimbra installation files and run the install scripts

tar -zxvf zcs-8.0.2_GA_5569.UBUNTU12_64.20121210115059.tgz
cd zcs-8.0.2_GA_5569.UBUNTU12_64.20121210115059

The only hiccup I ran into originally was an issue related to uninstalling postfix from the default installation of Ubuntu. This resulted in purging some crontab settings and permissions that need to be present in order for the server’s status to show up properly in the Admin console. Reference thread here.Summary of the fix is the following. Note: this was all done as root, hence lack of sudo anywhere.

1. give access to zimbra user to the /opt/zimbra/zimbramon/crontabs folder :

chown -R zimbra:zimbra /opt/zimbra/zimbramon/crontabs

2. change directory to zimbra crontabs

cd /opt/zimbra/zimbramon/crontabs

3. Concatenate all the files into one crontab

cat crontab >> crontab.zimbra
cat crontab.ldap >> crontab.zimbra
cat crontab.logger >> crontab.zimbra
cat crontab.mta >> crontab.zimbra
cat >> crontab.zimbra

4. create the zimbra crontab and set permissions

crontab crontab.zimbra
chown zimbra:zimbra crontab.zimbra

Check to see if it concatenated… result should be very long.

su Zimbra
crontab -l