CentOS+Zimbra详细配置教程
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
我的博客:
实验环境:
服务器系统:centos5 64位 IP:192.168.0.3
zimbra安装包:zxvf zcs-6.0.10_GA_2692.RHEL5_64.20101215170845.tgz
网络适配器的参数:
[root@zcs ~]# ifconfig eth0 | grep 'inet addr'|awk '{print $2}'|cut -c 6- 192.168.0.3
/etc/sysconfig/network文件的主机名配置:
HOSTNAME=
/etc/hosts文件的配置:
[root@zcs ~]# cat /etc/hosts
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
192.168.0.3 zimbra
/etc/resolv.conf文件的配置:
[root@zcs ~]# cat /etc/resolv.conf
nameserver 192.168.0.3
主机名称:
[root@zcs ~]# hostname
配置dns服务:
编辑DNS解析配置文件:
[root@zcs etc]# vi named.conf
options {
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/data/named_mem_stats.txt";
};
logging {
channel default_debug {
file "data/named.run";
severity dynamic;
};
};
zone "" IN {
type master;
file ".zone";
allow-update {none;};
};
zone "0.168.192.in-addr.arpa" IN {
type master;
file "0.168.192.in-addr.arpa.zone";
allow-update {none;};
};
复制文件localhost.zone为.zone,更改.zone区域解析文件属性:[root@zcs named]# cp localhost.zone .zone
编辑.zone区域解析文件:
[root@zcs named]# vi .zone
$TTL 86400
@ IN SOA @ root (
20110308 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
. IN NS .
. IN A 192.168.0.3
. IN MX 10 .
mail IN CNAME .
复制.zone为0.168.192.in-addr.arpa.zone,将后者作为反向解析配置文件,更改0.168.192.in-addr.arpa.zone的文件属性:
[root@zcs named]# cp .zone 0.168.192.in-addr.arpa.zone
[root@zcs named]# vi 0.168.192.in-addr.arpa.zone
编辑0.168.192.in-addr.arpa.zone反向解析文件:
[root@zcs named]# vi 0.168.192.in-addr.arpa.zone
$TTL 86400
@ IN SOA @ root (
20110308 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
@ IN NS .
@ IN MX 10 .
25 IN PTR .
25 IN PTR .
利用nslookup测试:也可以在客户端解析,但需要将客户端的DNS服务器配置为邮件服务器的IP:[root@zcs ~]# nslookup
> server
Default server: 192.168.0.3
Address: 192.168.0.3#53
>
Server: 192.168.0.3
Address: 192.168.0.3#53
Name:
Address: 192.168.0.3
>
Server: 192.168.0.3
Address: 192.168.0.3#53
canonical name = .
Name:
Address: 192.168.0.3
> set type=mx
>
Server: 192.168.0.3
Address: 192.168.0.3#53
mail exchanger = 10 .
> set type=ptr
> 192.168.0.3
Server: 192.168.0.3
Address: 192.168.0.3#53
3.0.168.192.in-addr.arpa name = .
3.0.168.192.in-addr.arpa name = .
.
.
.
将named及network服务设置为开机启动,将sendmail服务停止:
[root@zcs ~]# chkconfig named on
[root@zcs ~]# chkconfig network on
[root@zcs ~]# chkconfig named --level 35 on
[root@zcs ~]# chkconfig network --level 35 on
[root@zcs ~]# service sendmail stop
[root@zcs ~]# chkconfig sendmail off
[root@zcs ~]# chkconfig sendmail --level 35 off
进入ZCS软件包的目录,解压ZCS tgz包:
[root@zcs Desktop]# tar zxvf zcs-6.0.10_GA_2692.RHEL5_64.20101215170845.tgz
进入ZCS软件包目录,找到安装启动文件并查看帮助:
[root@zcs Desktop]# mv zcs-6.0.10_GA_2692.RHEL5_64.20101215170845 zcs
在CentOS-5.5-64bit上安装ZCS For RHEL5的软件包,需要加参数--platform-override:[root@zcs zcs]# ./install.sh --platform-override
Operations logged to /tmp/install.log.3602
Checking for existing installation...
zimbra-ldap...NOT FOUND
zimbra-logger...NOT FOUND
zimbra-mta...NOT FOUND