Zimbra server 的安装
zimbra系统缺省使用UTF-8进行邮件编码,可能会在部分免费 邮件服务的web页面中显示乱码,但根据个人测试目前国内主流网站提供的邮件服务不会出现这个问题。
一、 系统要求及配置环境
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.conf for Red Hat caching-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-source address * port 53;
- };
- //
- // a caching only nameserver config
- //
- controls {
- inet 127.0.0.1 allow { localhost; } keys { rndckey; };
- };
- zone "." IN {
- type hint;
- file "named.ca";
- };
- zone "localdomain" IN {
- type master;
- file "localdomain.zone";
- allow-update { none; };
- };
- zone "localhost" IN {
- type master;
- file "localhost.zone";
- allow-update { none; };
- };
- zone "xxx.com" IN {
- type master;
- file "xxx.com.zone";
- allow-update { none; };
- };
- zone "xx.88.168.192.in-addr.arpa" IN {
- type master;
- file "xx.88.168.192.in-addr.arpa";
- allow-update { none; };
- };
- zone "0.0.127.in-addr.arpa" IN {
- type master;
- 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 {
- type master;
- file "named.ip6.local";
- allow-update { none; };
- };
- zone "255.in-addr.arpa" IN {
- type master;
- file "named.broadcast";
- allow-update { none; };
- };
- zone "0.in-addr.arpa" IN {
- type master;
- file "named.zero";
- allow-update { none; };
- };
2. 在/var/named/chroot/var/named创建文件68.88.168.192.in-addr.arpa,并作以下配置:
- TTL 86400
- @ IN SOA mail.xxx.com. admin.xxx.com. (
- 1997022700 ; Serial
- 28800 ; Refresh
- 14400 ; Retry
- 3600000 ; Expire
- 86400 ) ; Minimum
- IN NS mail.xxx.com.
- 1 IN PTR mail.xxx.com.
3. 在/var/named/chroot/var/named创建文件xxx.com.zone,并作以下配置:
- $TTL 86400
- @ IN SOA mail.xxx.com. admin.xxx.com. (
- 42 ; serial (d. adams)
- 3H ; refresh
- 15M ; retry
- 1W ; expiry
- 1D ) ; minimum
- IN NS mail.xxx.com.
- IN MX 0 mail.xxx.com.
- localhost IN A 127.0.0.1
- mail IN A 192.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@mail home]# chkconfig sendmail off
- [root@mail home]# service sendmail stop
2. 编辑/etc/hosts文件。如下:
- # Do not remove the following line, or various programs
- # that require network functionality will fail.
- 127.0.0.1 localhost.localdomain localhost
- 192.168.88.68 mail.xxx.com mail
3. 编辑/etc/resolv.conf。如下:
- search xxx.com
- nameserver 192.168.88.xx
- nameserver 202.103.24.68
4. 解压zimbra server安装包
装安装包放在/var/tmp下,并解压,命令如下:
- [root@mail tmp]# tar zxvf zcs-5.0.16_GA_2921.RHEL4.20090429033149
【编辑推荐】