Instal Zimbra on CentOS

Hardware: Sure 1024MB memory of RAM
At least 5GB free disk for /opt

Install DNS service:
vim /etc/hosts           server.hbn.local server               localhost.localdomain localhost
::1             localhost6.localdomain6 localhost6

yum install bind-chroot
chmod 755 -R /var/named/
cp /usr/share/doc/bind-9.3.6/sample/var/named/named.local /var/named/chroot/var/named/
cp /usr/share/doc/bind-9.3.6/sample/var/named/named.root /var/named/chroot/var/named/
cp /usr/share/doc/bind-9.3.6/sample/var/named/ /var/named/chroot/var/named/
touch /var/named/chroot/etc/named.conf
chkconfig --level 35 named on
service named start
file  /etc/named
options {
        directory "/var/named";

        forwarders {;;;;;;;;};

zone "." IN {
        type hint;
        file "named.root";

zone "localhost" IN {
        type master;
        file "";

zone "" IN {
        type master;
        file "named.local";

zone "" IN {
        type master;
        file "";

zone "hbn.local" {
        type master;
        file "hbn.local";

file hbn.local
$TTL 14400
@       IN      SOA     root.hbn.local.      hostmaster.hbn.local. (
                                                86400 )

       IN      NS      hbn.local.
       IN      NS      hbn.local.

ftp        IN      A
hbn.local.       IN      A
localhost          IN      A
mail       IN      A
pop        IN      A
smtp       IN      A
server     IN      A
www        IN      A
hbn.local.      IN      MX      10 mail

hbn.local.    14400   IN      TXT     "v=spf1 a mx ip4: ~all"

$TTL    86400
@       IN      SOA     hbn.local. root.hbn.local.  (
                                      1997022700 ; Serial
                                      28800      ; Refresh
                                      14400      ; Retry
                                      3600000    ; Expire
                                      86400 )    ; Minimum
        IN      NS      ns1.hbn.local.
150       IN      PTR     dns.hbn.local.

[root@server named]# vim /var/named/chroot/etc/named.conf
Edit /etc/resolv.conf
;search hbn.local

[root@server named]# service named start
Starting named:                                            [  OK  ]
[root@server named]# chkconfig --level 35 named on
Test DNS:
[root@server ~]# nslookup hbn.local

Name:   hbn.local

[root@server ~]# nslookup server.hbn.local

Name:   server.hbn.local

Install dependence packet
[root@server named]#yum install postfix ntp gmp systat sysstat

Synchronize Time:
# chkconfig ntpd on
# ntpdate
# chkconfig ntpd on
# /etc/init.d/ntpd start

Change MTA to postfix
# alternatives --display mta
mta - status is auto.
 link currently points to /usr/sbin/sendmail.sendmail
# alternatives --config mta

There are 2 programs which provide 'mta'.

  Selection    Command
*+ 1           /usr/sbin/sendmail.sendmail
   2           /usr/sbin/sendmail.postfix

Enter to keep the current selection[+], or type selection number: 2
# alternatives --display mta
mta - status is manual.
 link currently points to /usr/sbin/sendmail.postfix
# service postfix stop
# chkconfig postfix off

Sure SELINUX and iptable is stoped
# service iptables stop
in /etc/sysconfig/selinux

Install zimbra
# tar xvzf zcs-7.1.0_GA_3140.RHEL5.20110329150824.tgz
# cd zcs-7.1.0_GA_3140.RHEL5.20110329150824
# ./ --platform-override

This platform is CentOS5
Packages found: RHEL5
This may or may not work.

Using packages for a platform in which they were not designed for
may result in an installation that is NOT usable. Your support
options may be limited if you choose to continue.

Install anyway? [N] Y

The system will be modified.  Continue? [N] Y

Now you can login to zimbra. User web interface on port 80. If admin login, notice to top right, you can see admin console link.
Thanks for reading
All my Lab:
Linux Lab -- window and Cisco Lab
to be continued - I will update more. 


W mojej ocenie warto sprawdzić to jeden z liderów, jeśli chodzi o wdrożenie systemu Zimbra.

Popular posts from this blog

Python - Multithread to read one file

An toàn thông tin ứng dụng Web

OpenCA tutorial