How to install Mail Server with Zimbra
For me, Zimbra is a reliable mail server, complete and easy to configure. Here are the steps to install Zimbra Mail Server on Ubuntu 8.04.
Before you install do not forget to be prepared as follows :
- One PC for Mail Server and NS Server
- Computer name (hostname) and here i use mail
- Ip address the computer and here i use 211.172.16.33, netmask 255.255.255.248 and gateway 211.172.16.32
- Domain Name and here i use udiniqgeek.com
- Nameserver (NS), nameserver is the place where to put the domain and because I put udiniqgeek.com at ns1.udiniqgeek.com then I use the nameserver ns1.udiniqgeek.com with the ip address 211.172.16.33
- Mail Domain (MX), a record that determines where an email will be send. In this MX record, there are additional variables and priotity here I use mx mail.udiniqgeek.com
Tutorial for making DNS Server in Ubuntu, please read HERE …
Ok, after a dns problem is over, following the step-by-step to install zimbra mail server on ubuntu 8.04 …
Previously we had to setup mail server ip address is 211.172.16.33, netmask 255.255.255.248, gateway 211.172.16.32 and also to setup nameserver ip address is 211.172.16.33 :
root@mail:~# vim /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).# The loopback network interface
auto lo
iface lo inet loopback# The primary network interface
auto eth0
iface eth0 inet static
address 211.172.16.33
netmask 255.255.255.248
network 211.172.16.31
broadcast 211.172.16.34
gateway 211.172.16.32
root@mail:~# vim /etc/resolv.conf
search udiniqgeek.com
nameserver 211.172.16.33
Make sure the hostname is written in a Mail Server Fully Qualified Domain Name (FQDN):
root@mail:~# vim /etc/hosts
127.0.0.1 localhost
211.172.16.33 mail.udiniqgeek.com mail# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
If all the preparations are ok, then the next step you need to remove Postfix installed by default when you install ubuntu 8.04, because of Zimbra Mail Server in an existing service, so it aims to avoid conflict with Postfix, Zimbra’s own property, so zimbra installation running normally. The steps are as follows :
root@mail:~# /etc/init.d/postfix stop
The next step is to download the packages zimbra:
root@mail~# cd /opt
root@mail/opt# wget http://h.yimg.com/lo/downloads/5.0.14_GA/zcs-5.0.14_GA_2850.UBUNTU8.20090303190551.tgz
And extract the files zimbra by step:
root@mail:/opt# tar -xzvf zcs-5.0.14_GA_2850.UBUNTU8.20090303190551.tgz
Then go to the folder zimbra :
root@mail:/opt# cd zcs-5.0.14_GA_2850.UBUNTU8.20090303190551
root@mail:/opt/zcs-5.0.14_GA_2850.UBUNTU8.20090303190551#
Before you install Zimbra, we first install the packages needed by Zimbra, steps :
root@mail:/opt/zcs-5.0.14_GA_2850.UBUNTU8.20090303190551# aptitude install libpcre3 libgmp3c2 libstdc++5 libltdl3
Then install Zimbra :
root@mail:/opt/zcs-5.0.14_GA_2850.UBUNTU8.20090303190551# ./install.sh
Next time zimbra installation there may be some questions that must be answered, and please mail completed according to the needs of both zimbra ns and MX. For example the installation log, please read HERE …
In addition to complete installation zimbra mail server on ubuntu 8.04, the following are ways that we can send email through the server console on ubuntu 8.04, it is intended that we as an administrator can try sending an email via the console without having to open an email address in our browser, so to test the email sending is not time consuming, the following steps :
root@mail:~# wget http://ubuntu.lnix.net/misc/mta-dummy/mta-dummy_1.0_all.deb
root@mail:~# dpkg -i mta-dummy_1.0_all.deb
root@mail:~# apt-get install mailx
If you’ve done the above step, the next step is we need to add the script set sendmail=/opt/zimbra/postfix/sbin/sendmail at/etc/mail.rc, the following steps:
root@mail:~# vim /etc/mail.rc
– By pressing the letter i please add the following script –
set sendmail =/opt/zimbra/postfix/sbin/sendmail
– Ends here and save it by pressing Esc: wq and Enter –
Then do the following steps to test sending email via console:
root@mail:~# mail @
Then enter the subject and contents and end with a period (.) And Enter
To view a delivery report, please see the file /var/log/zimbra.log