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

原文链接: https://www.cnblogs.com/yixiushuma/p/17046381.html

欢迎关注

微信关注下方公众号,第一时间获取干货硬货;公众号内回复【pdf】免费获取数百本计算机经典书籍

    zimbra

原创文章受到原创版权保护。转载请注明出处:https://www.ccppcoding.com/archives/311565

非原创文章文中已经注明原地址,如有侵权,联系删除

关注公众号【高性能架构探索】,第一时间获取最新文章

转载文章受原作者版权保护。转载请注明原作者出处!

(0)
上一篇 2023年2月16日 下午12:02
下一篇 2023年2月16日 下午12:03

相关推荐