zimbra 邮件服务器部署
系统环境:CentOS Linux release 7.3.1611 (Core)
用途:内网单机部署测试
功能:内部收发,可发送至外部但不能接收(测试延迟大致15min)
需求及依赖:
yum install perl perl-core nmap sudo libidn gmp libaio libstdc++ unzip sysstat sqlite nc dnsmasq bind-utils -y
停止任何安装在Server上的 MTA服务/安全策略服务:
systemctl stop postfix
systemctl disable postfix
systemctl stop sendmail
systemctl disable sendmail
systemctl stop firewalld NetworkManager
systemctl disable firewalld NetworkManager
sed -i "s/^SELINUX=.*/SELINUX=disabled/g" /etc/selinux/config
reboot
下载安装包:
wget https://files.zimbra.com/downloads/8.6.0_GA/zcs-8.6.0_GA_1153.RHEL7_64.20141215151110.tgz
关于DNS,采用dnsmasq,如下:
本地解析:
echo "10.0.0.14 sjzx.com mail.sjzx.com mail" >>/etc/hosts
主机名:
hostnamectl set-hostname sjzx.com
resolv解析 :
echo "search sjzx.com" >/etc/resolv.conf
echo "nameserver 127.0.0.1" >>/etc/resolv.conf
echo "nameserver 202.106.0.20" >>/etc/resolv.conf
dnsmasq 解析:
echo "no-resolv" >/etc/dnsmasq.conf
echo "server=8.8.8.8" >>/etc/dnsmasq.conf
echo "domain=sjzx.com" >>/etc/dnsmasq.conf
echo "mx-host=sjzx.com,sjzx.com,5" >>/etc/dnsmasq.conf
启动服务:
systemctl start dnsmasq
systemctl enable dnsmasq
查询MX记录 :
dig sjzx.com MX 或 nslookup sjzx.com
我们使用了dnsmasq,zimbra中有个dnscache服务不需要启动(下列操作):
tar zxf zcs-8.6.0_GA_1153.RHEL7_64.20141215151110.tgz
cd zcs-8.6.0_GA_1153.RHEL7_64.20141215151110
./install.sh --platform-override
管理界面:
https://10.0.0.14:7071
参考地址:
http://blog.51cto.com/purplegrape/1114598
http://blog.csdn.net/wanglei_storage/article/details/50736371