一、 系统要求及配置环境
Redhat Linux AS 4 需要完全安装
Zimbra server 5 for redhat 4
固定IP:61.183.xx.xx
域名:xxx.com,并对域名作mx解析到61.183.xx.xx
服务器采用三块72.8g硬盘作raid5阵列,可用空间为145.6g
二、 安装操作系统
1. 正常安装Redhat linux AS 4,在分区时选择自动分区。
2. 在选择防火墙时必须选择关闭防火墙。
3. 在选择selinux时,必须选择禁用。
4. 在选择程序时选择“全部安装”。
三、 安装前的配置
安装前必须配置dns服务。
1. 配置/etc/named.conf文件,配置如下:
//named.confforRedHatcaching-nameserver // options{ directory"/var/named"; dump-file"/var/named/data/cache_dump.db"; statistics-file"/var/named/data/named_stats.txt"; forwarders{202.103.24.68;}; //query-sourceaddress*port53; }; // //acachingonlynameserverconfig // controls{ inet127.0.0.1allow{localhost;}keys{rndckey;}; }; zone"."IN{ typehint; file"named.ca"; }; zone"localdomain"IN{ typemaster; file"localdomain.zone"; allow-update{none;}; }; zone"localhost"IN{ typemaster; file"localhost.zone"; allow-update{none;}; }; zone"xxx.com"IN{ typemaster; file"xxx.com.zone"; allow-update{none;}; }; zone"xx.88.168.192.in-addr.arpa"IN{ typemaster; file"xx.88.168.192.in-addr.arpa"; allow-update{none;}; }; zone"0.0.127.in-addr.arpa"IN{ typemaster; file"named.local"; allow-update{none;}; }; zone"0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa"IN{ typemaster; file"named.ip6.local"; allow-update{none;}; }; zone"255.in-addr.arpa"IN{ typemaster; file"named.broadcast"; allow-update{none;}; }; zone"0.in-addr.arpa"IN{ typemaster; file"named.zero"; allow-update{none;}; };
#p#
2. 在/var/named/chroot/var/named创建文件68.88.168.192.in-addr.arpa,并作以下配置:
TTL86400 @INSOAmail.xxx.com.admin.xxx.com.( 1997022700;Serial 28800;Refresh 14400;Retry 3600000;Expire 86400);Minimum INNSmail.xxx.com. 1INPTRmail.xxx.com.
3. 在/var/named/chroot/var/named创建文件xxx.com.zone,并作以下配置:
$TTL86400 @INSOAmail.xxx.com.admin.xxx.com.( 42;serial(d.adams) 3H;refresh 15M;retry 1W;expiry 1D);minimum INNSmail.xxx.com. INMX0mail.xxx.com. localhostINA127.0.0.1 mailINA192.168.88.xx
4. 在/var/named/下创建链接,命令如下:
[root@mail named]# ln -s /var/named/chroot/var/named/68.88.168.192.in-addr.arpa
[root@mail named]# ln -s /var/named/chroot/var/named/xxx.com.zone
5. 启动dns服务,命令如下:
[root@mail home]# service named restart
6. 自动启动dns服务,命令如下:
[root@mail home]# chkconfig named on
四、 安装zimbra server
1. 关闭sendmai服务及停止sendmail服务
[root@mailhome]#chkconfigsendmailoff [root@mailhome]#servicesendmailstop
2. 编辑/etc/hosts文件。如下:
#Donotremovethefollowingline,orvariousprograms #thatrequirenetworkfunctionalitywillfail. 127.0.0.1localhost.localdomainlocalhost 192.168.88.68mail.xxx.commail
3. 编辑/etc/resolv.conf。如下:
searchxxx.com nameserver192.168.88.xx nameserver202.103.24.68
4. 解压zimbra server安装包
装安装包放在/var/tmp下,并解压,命令如下:
[root@mailtmp]#tarzxvfzcs-5.0.16_GA_2921.RHEL4.20090429033149