Instal Zimbra on CentOS
Required:
Hardware: Sure 1024MB memory of RAM
At least 5GB free disk for /opt
Install DNS service:
vim /etc/hosts
192.168.81.150 server.hbn.local server
127.0.0.1 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/localhost.zone /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 {203.162.0.181; 203.162.0.11; 210.245.0.11; 210.245.0.58; 208.67.222.222; 208.67.220.220; 8.8.8.8; 8.8.4.4;};
};zone "." IN {
type hint;
file "named.root";
};zone "localhost" IN {
type master;
file "localhost.zone";
};zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
};zone "81.168.192.in-addr.arpa" IN {
type master;
file "192.168.81.0.db";
};zone "hbn.local" {
type master;
file "hbn.local";
};
file hbn.local
$TTL 14400
@ IN SOA root.hbn.local. hostmaster.hbn.local. (
2009102800
14400
3600
1209600
86400 )IN NS hbn.local.
IN NS hbn.local.ftp IN A 192.168.81.150
hbn.local. IN A 192.168.81.150
localhost IN A 127.0.0.1
mail IN A 192.168.81.150
pop IN A 192.168.81.150
smtp IN A 192.168.81.150
server IN A 192.168.81.150
www IN A 192.168.81.150
hbn.local. IN MX 10 mailhbn.local. 14400 IN TXT "v=spf1 a mx ip4:192.168.81.150 ~all"
file 192.168.81.0.db
$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
nameserver 192.168.81.150
[root@server named]# service named start
Starting named: [ OK ]
[root@server named]# chkconfig --level 35 named on
Test DNS:
[root@server ~]# nslookup hbn.local
Server: 192.168.81.150
Address: 192.168.81.150#53
Name: hbn.local
Address: 192.168.81.150
[root@server ~]# nslookup server.hbn.local
Server: 192.168.81.150
Address: 192.168.81.150#53
Name: server.hbn.local
Address: 192.168.81.150
Install dependence packet
[root@server named]#yum install postfix ntp gmp systat sysstat
Synchronize Time:
# chkconfig ntpd on
# ntpdate pool.ntp.org
# 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
SELINUX=disabled
Install zimbra
# tar xvzf zcs-7.1.0_GA_3140.RHEL5.20110329150824.tgz
# cd zcs-7.1.0_GA_3140.RHEL5.20110329150824
# ./install.sh --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.
Nam Habach