How To Install Zimbra Collaboration Suite (ZCS) On Ubuntu

Zimbra combines email, calendar and address book tools in an integrated system. For the Web Client, this is all found at one address and under one login.Based on Postfix MTA, includes AJAX based web mail and calendering, antispan, search, backup, archiving, .... Built on top of Tomcat, MySQL, JAVA, Apache, Lucene, ClamAV, SpamAssassin, OpenLDAP and of course Postfix technologies. It rocks.




I will use the hostname mail.rahlabs.com in this tutorial together with the IP address 192.168.0.110. Adjust this to your needs, but make sure that mail.rahlabs.com has a valid MX record in DNS (Zimbra needs this!). I assume you want to create email accounts for rahlabs.com instead of mail.rahlabs.com, so you should have an MX record for rahlabs.com as well.

In this example the Zimbra server is in a local network (192.168.0.110 is a private IP address) behind a router, so make sure you use the router's public IP address (1.2.3.4 in this example) in the DNS records - of course this IP address should be static. If you have a dynamic IP address, you could use a service such as DynDNS.org, but keep in mind that most public IP addresses are blacklisted nowadays.

If your Ubuntu server is behind router, make sure that you forward at least port 25 from your router to your Ubuntu server

Step 1) Install ssh daemon
apt-get install ssh openssh-server

Step 2)Then edit /etc/hosts. Make it look like this:
127.0.0.1    localhost.localdomain    localhost
192.168.0.110   mail.rahlabs.com      mail
# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
Step 3)Run
echo mail.rahlabs.com > /etc/hostname

Step 4)Restart System
shutdown -r now


Step 5) Disable Services
If this is no fresh system and you have some services already running (such as Postfix, Apache, OpenLDAP), you must disable them first before installing Zimbra. Otherwise Zimbra will fail to install.
For example, to disable Postfix on your system, run
/etc/init.d/postfix stop
update-rc.d -f postfix remove


Step 6)Install Zimbra
First install some prerequisites for Zimbra:
apt-get install curl fetchmail libpcre3 libgmp3c2 libexpat1 libxml2 libtie-ixhash-perl


Step 7)Afterwards, go to http://www.zimbra.com/community/downloads.html and download the Ubuntu 6 (.tgz) package to /usr/src, for example like this:
cd /usr/src
wget http://kent.dl.sourceforge.net/sourceforge/zimbra/zcs-4.5.3_GA_733.UBUNTU6.tgz


Step 8)Afterwards, unpack the Zimbra .tgz file and start the installer:
tar xvfz zcs-4.5.3_GA_733.UBUNTU6.tgz
cd zcs/
./install.sh
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


PLEASE READ THIS AGREEMENT CAREFULLY BEFORE USING THE SOFTWARE.
ZIMBRA, INC. ("ZIMBRA") 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 the Zimbra Collaboration Suite:
http://www.zimbra.com/license/collaboration_suite_collective_license_1.0.html


Press Return to continue
<--


Install zimbra-ldap [Y] <--

Install zimbra-logger [Y] <--

Install zimbra-mta [Y] <--

Install zimbra-snmp [Y] <--

Install zimbra-store [Y] <--

Install zimbra-spell [Y] <--

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


Main menu

1) Hostname: mail.rahlabs.com
2) Ldap master host: mail.rahlabs.com
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@mail.rahlabs.com
******* +Admin Password UNSET
+Enable automated spam training: yes
+Spam training user: spam.raun@mail.rahlabs.com
+Non-spam(Ham) training user: happy.123@mail.rahlabs.com
+Global Documents Account: wiki@mail.rahlabs.com
+SMTP host: mail.rahlabs.com
+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: http://mail.rahlabs.com:7780/aspell.php

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: admin@mail.rahlabs.com 4) Admin Password UNSET
5) Enable automated spam training: yes
6) Spam training user: spam.raun@mail.rahlabs.com
7) Non-spam(Ham) training user: ham.rg8fvq6cd4@mail.rahlabs.com
8) Global Documents Account: wiki@mail.rahlabs.com
9) SMTP host: mail.rahlabs.com
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: http://mail.rahlabs.com:7780/aspell.php

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

Password for admin@mail.rahlabs.com (min 6 characters): [cat_ey!@#.1678] <-- [specify a password for the admin user, e.g. rahlabs]

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

Main menu

1) Hostname: mail.rahlabs.com
2) Ldap master host: mail.rahlabs.com
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] <--
Save config in file: [/opt/zimbra/config.5762] <--
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 (admin@mail.rahlabs.com)

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;--
That's it . To test if all Zimbra services are running, become the zimbra user:
su - zimbra
and run
zmcontrol status
type exit
and restart your system
Zimbra comes with a web interface for the administrator (https://mail.rahlabs.com:7071/zimbraAdmin)





Comments

Popular posts from this blog

How to hack your xbox 360 completely

Defusing Fork Bomb

Wii Remote IR Camera Hack with Arduino Interface