zimbra

a、配置主机名和解析

a1、编辑/etc/sysconfig/network,修改

hostname=mail.gushiwangguan.top


hostnamectl set-hostname mail.gushiwangguan.top


a2、编辑/etc/hosts,添加记录

192.168.16.95 mail.gushiwangguan.top mail


b、禁用selinux,编辑/etc/sysconfig/selinux,修改

SELINUX=disabled


c、关闭sendmail或者postfix,防止25号端口冲突

chkconfig sendmail off
service sendmail stop
或者
chkconfig postfix off
service postfix stop


d、安装配置dnsmasq

 

d1、安装dnsmasq

yum install dnsmasq bind-utils

 


server=127.0.0.1
domain=gushiwangguan.top
mx-host=mail.gushiwangguan.top,5

d2、配置dnsmasq

cp /etc/dnsmasq.conf /etc/dnsmasq.conf.bak
echo "no-resolv" >/etc/dnsmasq.conf
echo "server=8.8.8.8" >>/etc/dnsmasq.conf
echo "domain=gushiwangguan.top" >>/etc/dnsmasq.conf
echo "mx-host=gushiwangguan.top,mail.gushiwangguan.top,5" >>/etc/dnsmasq.conf
echo nameserver 127.0.0.1 >/etc/resolv.conf
chkconfig dnsmasq on
service dnsmasq start


d3、检查dns解析

dig gushiwangguan.top MX

 


yum install perl perl-core ntpl nmap sudo libidn gmp libaio libstdc++ unzip sysstat sqlite nc -y

 

1、安装需要的软件包

 

2、解压zimbra

tar zxvf zcs-8.0.3_GA_5664.RHEL6_64.20130305090204.tgz
cd zcs-8.0.3_GA_5664.RHEL6_64.20130305090204


3、运行安装脚本

./install
zimbra是给redhat打包的,这里由于是centos,需要加一个参数

./install.sh --platform-override

 

rm -rf /opt/zimbra /var/log/*zimbra* /tmp/*zimbra* /etc/logrotate.d/zimbra

rm -rf /var/log/*zimbra*
rm -rf /tmp/*zimbra*

rm -f /etc/logrotate.d/zimbra

 

ops.kuailaizhiying.com

 


# zmdnscachectl stop


# zmprov ms `zmhostname` -zimbraServiceEnabled dnscache


# zmprov ms `zmhostname` -zimbraServiceInstalled dnscache


# zmcontrol stop


openssl pkcs8 -topk8 -inform PEM -in 8796180_mail.gushiwangguan.top.key -outform PEM -nocrypt -out privkey.pem

 

[root@mail ~]# su - zimbra
Last login: Tue Jan 7 16:39:52 CST 2020 from 113.57.27.111 on pts/8
[zimbra@mail ~]$ cd /opt/zimbra/ssl/aliyunssl/
[zimbra@mail aliyunssl]$ /opt/zimbra/bin/zmcertmgr deploycrt comm cert.pem chain.pem

posted @ 2023-01-12 13:14  warm9595  阅读(97)  评论(0编辑  收藏  举报