HOWTO Install Zimbra

Zimbra is an open source electronic mail server. The following document is a HOWTO on installing and configuring you own email server. When you are finished you will be able to send and receive email from user@yourdomian.ca.
2.0 PROJECT
I. Requirements
• Linux based computer for server (Ubuntu-Server 8.04)
• A second email account to test incoming and outgoing emails
• A Static IP address
• FQDN (mail.infotechnow.ca)

II. Installation
I am going to start the documentation at the point of having a new, clean, updated install of Ubuntu-Server 8.04, a FQDN such as mail.infotechnow.ca, and a MX mail entry (both can be done with ZoneEdit.com).

1) Enable the root account in Ubuntu if you have not already done it.
#sudo passwd root
Enter the desired root password.

2) The rest of this HOWTO will be based on you being in root.
#su
That will get you to root.

3) If you want the ability to ssh into the mail server make sure you have ssh installed.
#apt-get install openssh-server
If it was not installed, you will now have the ability to ssh.

4) The mail server will require a static IP. We need to edit the interfaces file.
#vi /etc/network/interfaces
Make the following changes with your values
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.0.1
netmask 255.255.255.0
gateway 192.168.0.254
Restart the network
#/etc/init.d/networking restart

5) Next we need to edit the hosts file like this
127.0.0.1 localhost.localdomain localhost
192.168.0.110 mail.example.com mail

6) It is now time to ssh into your mail server box.

7) Make a directory to save the Zimbra in.
#mkdir zcs

8) Now we need to download the Zimbra tar. Go to http://www.zimbra.com/community/downloads.html and copy the version you need.

9) Navigate to the zcs directory
#wget http://h.yimg.com/lo/downloads/5.0.11_GA/
zcs-5.0.11_GA_2695.UBUNTU8.20081117052520.tgz

10) Untar the file.
#tar xvfz zcs-5.0.11_GA_2695.UBUNTU8.20081117052520.tgz

11) Go the new directory zcs….
#cd zcs(hit tab)

12) Time to install
#./install.sh

13) You may have to install other files. apt-get install these files and rerun the script until you get then all installed.

14) Follow the install instructions.
a) Install everything except the proxy server, and even this can be done as well.
b) It will ask you if you want the system modified say yes.
c) When that is finished you will have to set the administrators password. Type 6 and then 4 and enter the new password.
d) Type ‘a’ to apply and hit enter.
e) Save the configuration file? Y
f) Save the confin file: /opt/config/config.xxxx enter
g) The system will be modified? Y
h) Notify Zimbra of your installation? Y or N, your decision.

15) Log on as the Zimbra user to see if Zimbra is running
#su - Zimbra
#zmcontrol status
If not type zmcontrol start to start the server

16) Time for the Zimbra GUI. You need to log in as the administrator to set up users, and domains.
https://mail.example.ca:7071/adminZimbra will take you to that link.

17) Enter admin and the password set earlier in the setup

18) To add domains select @Domains in the left menu and select @new.

19) Enter the domain name ie: example.com. This will allow email to be sent to user@example.com instead of user@mail.example.com.

20) Next add a user. Select Accounts in the left menu and then new.

21) Enter their information (including password) and click finish.

22) Now open a new browser and go to http://mail.example.ca and enter the user name and password and presto, your new email account is done.

III. Testing

1) Send an email from that account to a current account you have.

2) Check that account you should have received an email from it.

3) Reply to that email.

4) Check your new email account again and you should have received a reply email.

IV. Backup
For a simple backup solution follow these instructions http://wiki.zimbra.com/index.php?title=Backing_up_and_restoring_Zimbra_(Open_Source_Version)

3.0 SUMMARY
Zimbra is a great solution for anyone that needs a email solution because it is fairly easy to implement, easy to manage and most of all it is free!