关闭SELINUX并清空iptable规则,然后重启一下系统:
sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/sysconfig/selinux
清除防火墙规则:
iptables -F
iptables -X
iptables -z
service iptables save
reboot
配置主机名:
hostnamectl set-hostname mail.zimbra.com
echo "192.168.198.141 mail.zimbra.com" >> /etc/hosts
安装zimbra所需要的包和库:
yum -y update
yum -y install perl perl-core nmap sudo libidn gmp libaio libstdc++ unzip sysstat sqlite nc
关闭默认安装的postfix服务:
systemctl stop postfix.service
systemctl disable postfix.service
配置dns服务,安装bind安装包:
yum -y install bind bind-utils
修改named.conf主配置文件:
vim /etc/named.conf
添加下面的配置:
zone "zimbra.com" IN {
type master;
file "zimbra.com";
allow-update { none; };
};
zone "198.168.192.in-addr.arpa" IN {
type master;
file "192.168.198.arpa";
allow-update { none; };
};
配置区域配置文件:
正向区域文件:
vim /var/named/zimbra.com
$TTL 1D
@ IN SOA @ rname.invalid. (
0 ; serial
1D ; refresh
1H ; retry
1W ; expire
3H ) ; minimum
NS ns.zimbra.com.
MX 10 mail.zimbra.com.
ns A 192.168.198.141
mail A 192.168.198.141
反向区域文件:
vim /var/named/192.168.198.arpa
$TTL 1D
@ IN SOA @ rname.invalid. (
0 ; serial
1D ; refresh
1H ; retry
1W ; expire
3H ) ; minimum
NS ns.zimbra.com.
141 PTR ns.zimbra.com.
141 PTR mail.zimbra.com.
重启bind服务,并且使用本地dns:
#systemctl restart named
echo "nameserver 127.0.0.1" >> /etc/resolv.conf
下载zimbra:
#wget https://files.zimbra.com/downloads/8.6.0_GA/zcs-8.6.0_GA_1153.RHEL7_64.20141215151110.tgz
解压压缩包并修改文件夹名:
tar -zxvf zcs-8.6.0_GA_1153.RHEL7_64.20141215151110
mv zcs-8.6.0_GA_1153.RHEL7_64.20141215151110 zimbra
运行脚本开始安装zimbra,图中 红色字体 的是需要修改的,最后按回车结束安装:
下图中的IP地址忽略吧
- 启动zimbra并查看状态:
su - zimbra //切换到zimbra用户
zmcontrol start //启动zimbra
zmcontrol status //查看启动状态
zmcontrol stop //停止zimbra
查看zimbra启动状态:
本文转自wsw26 51CTO博客,原文链接:http://blog.51cto.com/wsw26/2057305,如需转载请自行联系原作者