centos7安装zimbra邮件

Prerequisites of Zimbra Mail Server (ZCS)
Minimal CentOS 7
8 GB RAM
At least 5 GB Free Space on /opt
FQDN (Fully Qualified Domain Name), in my case it is “mail.linuxtechi.com
A & MX record for your Server
1:Login to CentOS 7 and apply updates.
[root@mail ~]# yum update -y ; reboot
After the reboot, set the hostname of your server, in my case I am setting it as “mail.linuxtechi.com
[root@mail ~]# hostnamectl set-hostname “mail.hejushuzi.com.cn
[root@mail ~]# exec bash

Add the following lines in /etc/hosts file,
vi /etc/hosts

118.188.20.55 mail.hejushuzi.com.cn
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
After configuring the hostname, verify the A and MX is configure for your domain using dig command,
安装dig
[root@mail ~]# yum install bind-utils
[root@mail ~]# dig -t A mail.hejushuzi.com.cn
[root@mail ~]# dig -t MXmail.hejushuzi.com.cn
2:Install Zimbra dependencies using yum
[root@mail ~]# yum install unzip net-tools sysstat openssh-clients perl-core libaio nmap-ncat libstdc++.so.6 wget -y
3:Download latest version of Zimbra (ZCS 8.8.10) using wget command
[root@mail ~]# mkdir zimbra && cd zimbra
[root@mail zimbra]# wget https://files.zimbra.com/downloads/8.8.10_GA/zcs-8.8.10_GA_3039.RHEL7_64.20180928094617.tgz --no-check-certificate
4:Install Zimbra / ZCS 8.8.10
[root@mail zimbra]# tar zxpvf zcs-8.8.10_GA_3039.RHEL7_64.20180928094617.tgz
[root@mail zimbra]# cd zcs-8.8.10_GA_3039.RHEL7_64.20180928094617
[root@mail zcs-8.8.10_GA_3039.RHEL7_64.20180928094617]# ./install.sh
Once we run above install script then we will get text-based installation wizard, to Accept the license, press Y
![在这里插入图片描述](https://img-blog.csdnimg.cn/20190125155949453.png?x-oss-process=image/watermark,type_Zm在这里插入图片描述
Now Configure the Zimbra package repository and select the all Zimbra Components to install.
在这里插入图片描述
在这里插入图片描述
After pressing Y, it will download the Zimbra related packages and it can take time depending upon on your internet speed.

Once all the Zimbra packages are installed in the backend then we will get the below window,
在这里插入图片描述
Now Press 7 and then 4 to set admin user password,
在这里插入图片描述
Now press “r” to go to previous menu and then press “a” to apply the changes.

Once all the changes are applied and Zimbra related services are started then we will get the output something like below,
在这里插入图片描述
Open the ports in the firewall in case os firewall is running on your server

[root@mail ~]# firewall-cmd --permanent --add-port={25,80,110,143,443,465,587,993,995,5222,5223,9071,7071}/tcp
[root@mail ~]# firewall-cmd --reload
5: Access Zimbra Admin Portal & Web Mail Client
To access the Zimbra Admin Portal, type below URL in Web Browser

https://mail.linuxtechi.com:7071/
在这里插入图片描述
解决服务mta 失败:
进入root 模式关闭冲突postfix

su root

关闭冲突 postfix

service postfix stop

下次重启关闭

chkconfig postfix off

登陆zimbra用户

su zimbra
重启zimbra服务
service zimbra restart
在这里插入图片描述
解决用户名登录问题
更改默认域
在这里插入图片描述
6 Troubleshooting Zimbra Services and Logs
[root@mail ~]# su - zimbra
Last login: Sun Oct 7 14:59:48 IST 2018 on pts/0
[zimbra@mail ~]$ zmcontrol status #查看服务状态
Host mail.linuxtechi.com
amavis Running
antispam Running
antivirus Running
dnscache Running
imapd Running
ldap Running
logger Running
mailbox Running
memcached Running
mta Running
opendkim Running
proxy Running
service webapp Running
snmp Running
spell Running
stats Running
zimbra webapp Running
zimbraAdmin webapp Running
zimlet webapp Running
zmconfigd Running
[zimbra@mail ~]$zmcontrol restart #重启服务

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值