CentOS7安装zimbra8.8.15步骤

本文档详细记录了在CentOS7服务器上安装Zimbra邮件服务器8.8.15的步骤,包括DNS解析、主机名和hosts配置、dnsmasq安装及配置、以及Zimbra安装过程。安装完成后,系统通过zmcontrol status展示了所有服务的运行状态。但在实际使用中,发现邮件发送到外部邮箱存在未送达问题,这可能需要进一步排查。
摘要由CSDN通过智能技术生成

 

配置:

阿里云服务器

系统CentOS7

zimbra邮箱版本:8.8.15


DNS解析、端口开放:

 

 

 


配置主机名、hosts:

主机名配置

[root@iZ2ze1mxb0c9j7l4rr6oxkZ ~]# echo 'mail.XXX.com' > /etc/hostname

也可以直接进去修改:

vim  /etc/hostname  

写入mail.XXX.com

:wq      保存退出

hosts配置       (注意:192.168.1.207是服务器内网IP)

[root@iZ2ze1mxb0c9j7l4rr6oxkZ ~]# echo '192.168.1.207 mail.XXX.com mail' >> /etc/hosts

也可以直接进去修改:

vim /etc/hosts

写入

192.168.1.207 mail.XXX.com mail

:wq        保存退出

 

检查并停止sendmail和postfix,如果服务器上有的话

# systemctl stop sendmail
# systemctl disable sendmail
# systemctl stop postfix
# systemctl disable postfix

重启系统,确保都生效了

reboot


安装配置dnsmasq:

dnsmasq安装

[root@mail ~]# yum install -y dnsmasq bind-utils

dnsmasq配置

vim /etc/dnsmasq.conf

添加以下到文件末尾:

server=127.0.0.1
domain=xxx.com
mx-host=xxx.com,mail.xxx.com,5

 

修改本地dns服务器

vim /etc/resolv.conf

添加以下到文件首行:

nameserver 127.0.0.1

 

启动dnsmasq

[root@mail ~]# systemctl start dnsmasq

测试

[root@mail ~]$ dig MX xxx.com

; <<>> DiG 9.11.4-P2-RedHat-9.11.4-9.P2.el7 <<>> MX xxx.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 19665
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;xxx.com.            IN    MX

;; ANSWER SECTION:
xxx.com.        432    IN    MX    1 xxx.com.

;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Mon May 10 15:35:28 CST 2021
;; MSG SIZE  rcvd: 57

[root@mail ~]$ dig MX mail.xxx.com

; <<>> DiG 9.11.4-P2-RedHat-9.11.4-9.P2.el7 <<>> MX mail.xxx.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 63787
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;mail.xxx.com.        IN    MX

;; ANSWER SECTION:
mail.xxx.com.    600    IN    MX    10 mail.xxx.com.

;; Query time: 22 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Mon May 10 15:35:35 CST 2021
;; MSG SIZE  rcvd: 62


安装zimbra:

下载zimbra软件包

[root@mail ~]#wget https://files.zimbra.com/downloads/8.8.15_GA/zcs-8.8.15_GA_3869.RHEL7_64.20190918004220.tgz         <--下载Zimbra软件包

上面下载不了的话就用下面链接里面的吧

链接:https://pan.baidu.com/s/1ID_UEucluaxkwNT9EBf6OA 
提取码:s22o 

 解压:[root@mail ~]#tar -zxf zcs-8.8.15_GA_3869.RHEL7_64.20190918004220.tgz (我是直接放在根目录下的)

[root@mail tmp]# cd zcs-8.8.15_GA_3869.RHEL7_64.20190918004220

[root@mail zcs-8.8.15_GA_3869.RHEL7_64.20190918004220]# ./install.sh          <--开始安装

 
Operations logged to /tmp/install.log.YKo3dKuj
Checking for existing installation...
    zimbra-drive...NOT FOUND
    zimbra-imapd...NOT FOUND
    zimbra-patch...NOT FOUND
    zimbra-mta-patch...NOT FOUND
    zimbra-proxy-patch...NOT FOUND
    zimbra-license-tools...NOT FOUND
    zimbra-license-extension...NOT FOUND
    zimbra-network-store...NOT FOUND
    zimbra-network-modules-ng...NOT FOUND
    zimbra-chat...NOT FOUND
    zimbra-talk...NOT FOUND
    zimbra-ldap...NOT FOUND
    zimbra-logger...NOT FOUND
    zimbra-mta...NOT FOUND
    zimbra-dnscache...NOT FOUND
    zimbra-snmp...NOT FOUND
    zimbra-store...NOT FOUND
    zimbra-apache...NOT FOUND
    zimbra-spell...NOT FOUND
    zimbra-convertd...NOT FOUND
    zimbra-memcached...NOT FOUND
    zimbra-proxy...NOT FOUND
    zimbra-archiving...NOT FOUND
    zimbra-core...NOT FOUND
 
 
----------------------------------------------------------------------
PLEASE READ THIS AGREEMENT CAREFULLY BEFORE USING THE SOFTWARE.
SYNACOR, INC. ("SYNACOR") WILL ONLY LICENSE THIS SOFTWARE TO YOU IF YOU
FIRST ACCEPT THE TERMS OF THIS AGREEMENT. BY DOWNLOADING OR INSTALLING
THE SOFTWARE, OR USING THE PRODUCT, YOU ARE CONSENTING TO BE BOUND BY
THIS AGREEMENT. IF YOU DO NOT AGREE TO ALL OF THE TERMS OF THIS
AGREEMENT, THEN DO NOT DOWNLOAD, INSTALL OR USE THE PRODUCT.
 
License Terms for this Zimbra Collaboration Suite Software:
https://www.zimbra.com/license/zimbra-public-eula-2-6.html
----------------------------------------------------------------------
 
 
 
Do you agree with the terms of the software lic

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值