Zimbra E-mail server on ubuntu 8.04 Server/DesktopIn this guide we will look into how to configure Zimbra email server on Ubuntu Server/Desktop 8.04 or redhat 5
The Prime importance of DNS comes into picture when you want to configure E-mail server in linux. The first and foremost thing we need to do is configure the DNS and cross-check with host and dig utility.
The following are the brief steps to configure DNS in ubuntu/Debian Boxes.
sudo apt-get install bind9
sudo vi /etc/bind/named.conf.local
# This is the zone definition. replace example.com with your domain name
zone "example.com" {
type master;
file "/etc/bind/zones/example.com.db";
};
# This is the zone definition for reverse DNS. replace 0.168.192 with your network address in reverse notation - e.g my network address is 192.168.0
zone "0.168.192.in-addr.arpa" {
type master;
file "/etc/bind/zones/rev.0.168.192.in-addr.arpa";
};
sudo vi /etc/bind/named.conf.options
forwarders {
# Replace the address below with the address of your provider's DNS server
123.123.123.123;
};
sudo mkdir /etc/bind/zones
sudo vi /etc/bind/zones/example.com.db
// replace example.com with your domain name. do not forget the . after the domain name!
// Also, replace ns1 with the name of your DNS server
example.com. IN SOA ns1.example.com. admin.example.com. (
// Do not modify the following lines!
2006081401
28800
3600
604800
38400
)
// Replace the following line as necessary:
// ns1 = DNS Server name
// mta = mail server name
// example.com = domain name
example.com. IN NS ns1.example.com.
example.com. IN MX 10 mta.example.com.
// Replace the IP address with the right IP addresses.
www IN A 192.168.0.2
mta IN A 192.168.0.3
ns1 IN A 192.168.0.1
sudo vi /etc/bind/zones/rev.0.168.192.in-addr.arpa
//replace example.com with yoour domain name, ns1 with your DNS server name.
// The number before IN PTR example.com is the machine address of the DNS server. in my case, it's 1, as my IP address is 192.168.0.1.
@ IN SOA ns1.example.com. admin.example.com. (
2006081401;
28800;
604800;
604800;
86400
)
IN NS ns1.example.com.
1 IN PTR example.com
sudo /etc/init.d/bind9 restart
sudo vi /etc/resolv.conf
// replace example.com with your domain name, and 192.168.0.1 with the address of your new DNS server.
search example.com
nameserver 192.168.0.1
dig example.com
host example.com
Note:- Once you make sure that DNS is working start installing Zimbra and follow the steps.
Zimbra Installation Procedure
tar -xzf zc*
cd /temp/zcs
./install.sh
It's not going to work the first time, but it'll give you a list of missing dependencies. Write down all the package names it says are missing. Your list may be slightly different than mine, but whatever it is, load them. Just separate each package name with a space like this:
apt-get install libpcre3 libgmp3c2 libstdc++5
Now re-run your Zimbra install
The installer will ask you a few questions. Answer them like this:
Install zimbra-ldap [Y] Y
Install zimbra-logger [Y] Y
Install zimbra-mta [Y] Y
Install zimbra-snmp [Y] Y
Install zimbra-store [Y] Y
Install zimbra-spell [Y] Y
The system will be modified. Continue? [N] Y
After the installation process, you will be presented with the Main menu. By default, most of the options have a value that works on most systems, except for the Admin password. To set a password for the admin user, answer like this to the questions:
Address unconfigured (**) items (? - help) 6
Select, or 'r' for previous menu 4
Password for admin@mail.linux.lan (min 6 characters): enter a passwd
Select, or 'r' for previous menu press Enter
*** CONFIGURATION COMPLETE - press 'a' to apply
Select from menu, or press 'a' to apply config a
Save configuration data to a file? press Enter
The system will be modified - continue? Y press Enter
Notify Zimbra of your installation? your choice, enter Y or N
Configuration complete - press return to exit press Enter
When it asks you for your domain, it's going to have your fully-qualified domain name (hostname.mydomain.com) rather than just the domain, and probably complain about not having an MX record. Change the hostname to just mydomain.com and it'll find the names through nslookup, and it'll be happy. The rest of the install should proceed without errors, except that toward the end it's going to ask you to "Adress unconfigured items" but, if you're doing this from the console and not from an SSH connection with a buffer, the actual item that's unconfigured is off the screen and invisible. It's the admin password, which is in menu item 3.
Finally, when the install is done and it has given you the last "press Enter to finish" you are almost done.
TESTING Zimbra
# su - zimbra
$ zmcontrol status
$ exit
You should see all services running, otherwise type this command while still being logged in as user zimbra:
$ zmcontrol start
$ exit
I recommend at this point that you convert your webmail to use https rather than http. This is a security question, but it is also discretionary. If you choose to do this, then at the command prompt, type:
su - zimbra
zmtlsctl https
Now reboot the system, and when it comes back up,give it a couple minutes to start the rest of the Zimbra processes. If your installation is successful, you can go to https://xxx.xxx.xxx.xxx:7071 (your internal ip address again) to get the administrative console, or
Zimbra Web Interface
Admin Interface
*The above document has been prepared by Gyani.P(Jr System Administrator) on 25-10-09