Zimbra 8 Community edition on Scientific Linux 6 (64 Bit)

Install SL 6.3 (64 bit)

  • Installing SL6.3 (64bit)  with 'minimal' installation mode
  • Post installing, fix with the Static IP Address (Public IP and I assume the system is not behind firewall)
  • Double check with /etc/resolv.conf file parameters

Prerequisites for ZImbra installation

Let's firsy update-

yum update

Let's install some pckages as well

yum – y install sudo sysstat gmp libidn libstdc++ bind bind-chroot bind-libs bind-utils wget php perl nc sqlite

and few more packages-

yum install compat-libstdc++-33 sysstat

If anything missed out you'll know in the next steps, if anything left google it, chances are you'll be able to yum it :), however for this time being the environment is made. Now proceed to download Zimbra.

Make some backend job-

  • Make sure 'SELINUX' is disabled
  • The iptables service is stopped
  • 'postfix' service is stopped and disabled at runtime and on boot

Download ZImbra

My downloaded edition was-

http://files2.zimbra.com/downloads/8.0.0_GA/zcs-8.0.0_GA_5434.RHEL6_64.20120907144639.tgz

Once downloaded, get inside the extracted folder.

Change the Host file:

we need to update the /etc/hosts file something like below

Note: We are Not discussing NAT in this topic. However, in this scenario, we assume that the  ZCS server resides behind a firewall, the IP address is the internal IP address (IP that is used behind the firewall).

127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.142.7 mail.1a-centosserver.local mail

Configure the DNS:

I used webmin to configure the DNS and there was only single parameter I included in the /etc/named.conf file. and it was-

Options {

……

forwarders {8.8.8.8; 8.8.4.4; };

}

Now we'll create a forward zone first something similar to-

Next let us create the following our forward zone.

vi /var/named/1a-centosserver.local.ns

This is the forward zone file, you might amend it to your need. The following just focus on MX and Name server (NS)

$ORIGIN 1a-centosserver.local.
$TTL 1d
@ IN SOA ns.1a-centosserver.local. support.1a-centosserver.local. (
          2010031500 ; se = serial number
          3h ; ref = refresh
          15m ; ret = update retry
          3w ; ex = expiry
          3h ; min = minimum
)

           IN A 192.168.142.7
           IN NS ns
           IN MX 10 mail.1a-centosserver.local.

ns IN A 192.168.142.7
mail IN A 192.168.142.7

And then we'd create a reverse zone such as-

Add the following lines to the file.

$ORIGIN 142.168.192.in-addr.arpa.
$TTL 1d

@ IN SOA ns.1a-centosserver.local. support.1a-centosserver.local. (
        2010031500 ; se = serial number
        3h ; ref = refresh
        15m ; ret = update retry
        3w ; ex = expiry
        3h ; min = minimum
)

        IN NS ns.1a-centosserver.local.

7 IN PTR ns.1a-centosserver.local.
7 IN PTR mail.1a-centosserver.local.
 

After that test the domain by using nslookup to see if the domain is showing back to the server itself! THIS IS IMPORTANT

example dig report-

# dig mail.1a-centosserver.local

; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.10.rc1.el6_3.1 <<>> mail.1a-centosserver.local
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 20735
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1

;; QUESTION SECTION:
;mail.1a-centosserver.local. IN A

;; ANSWER SECTION:
mail.1a-centosserver.local. 86400 IN A 192.168.142.7

;; AUTHORITY SECTION:
1a-centosserver.local. 86400 IN NS ns.1a-centosserver.local.

;; ADDITIONAL SECTION:
ns.1a-centosserver.local. 86400 IN A 192.168.142.7

;; Query time: 1 msec
;; SERVER: 192.168.142.7#53(192.168.142.7)
;; WHEN: Thu Jul 26 23:10:15 2012
;; MSG SIZE rcvd: 93

Installation of ZImbra begins-

Let me assume I'm already inside the downloaded and extracted zimbra folder. Now issue some command-

./install –platform-override

Rest is a wizard basically. It will tell you what to do next…

Some of you might have the following error -DNS error. The reason of such error is because:

either the DNS services is not started properly. Please use the following command "service named status" to see if the BIND started properly.

If BIND is started properly and you still facing this error, please using "dig" command to see the record can be resolved properly. If not, please edit your zone file.

Checked nameservers:
192.168.142.7
8.8.8.8
No results returned for AAAA lookup of mail.1a-centosserver.local
Checked nameservers:
192.168.142.7
8.8.8.8

DNS ERROR resolving mail.1a-centosserver.local
It is suggested that the hostname be resolveable via DNS
Change hostname [Yes]
Please enter the logical hostname for this host [mail.1a-centosserver.local]
No results returned for A lookup of mail.1a-centosserver.local
Checked nameservers:
192.168.142.7
8.8.8.8

DNS ERROR resolving mail.1a-centosserver.local
It is suggested that the hostname be resolveable via DNS
Re-Enter hostname [Yes]
Please enter the logical hostname for this host [mail.1a-centosserver.local]

Hope things go smooth. If not, you can check the error log and fix what you need to fix! Besides, if you messed up at some point, you can safely remove the installation by issuing the command below (inside the extracted zimbra folder-

./install -u

Login to Zimbra Collaboration Suite

Great, now let us start up our favorite Firefox browser. Type in https://youripaddress:7071 to login into Zimbra administrator page. To login for your webmail type https://ipaddress

Here goes the loevely looking login page-

 

 

 

Src:

http://www.1a-centosserver.com/centos_linux_mail_server/centos_mail_server.php

Share