install zimbra in centos 7

## yum install package
yum update -y
yum install chrony -y
yum -y install unzip net-tools sysstat openssh-clients perl-core libaio nmap-ncat libstdc++.so.6 wget

## system configuration
vi /etc/chrony.conf
systemctl enable chronyd
systemctl restart chronyd

systemctl stop postfix
systemctl disable postfix
yum remove postfix

hostnamectl set-hostname mail
echo 10.11.5.195 mail.example.com mail >> /etc/hosts


## get and install zimbra
cd /tmp
wget https://files.zimbra.com/downloads/8.7.6_GA/zcs-8.7.6_GA_1776.RHEL7_64.20170326144124.tgz
tar xvf zcs-8.7.6_GA_1776.RHEL7_64.20170326144124.tgz
cd zcs-8.7.6_GA_1776.RHEL7_64.20170326144124
./install.sh
(after installation files will store in /opt)

## firewall settings
firewall-cmd --add-service=http  --permanent (can modify to source limit like ssh settings below)
firewall-cmd --add-service=https  --permanent
firewall-cmd --remove-service=dhcpv6-client  --permanent
firewall-cmd --add-service=smtp  --permanent
firewall-cmd --permanent --add-rich-rule="rule family="ipv4" source address="manage_ip_address" port port="22" protocol="tcp" accept"; firewall-cmd --reload
firewall-cmd --reload
firewall-cmd --list-all

firewall-cmd --permanent --remove-service=ssh
firewall-cmd --reload
firewall-cmd --list-all

## add mail alias domain if needed
zmprov createAliasDomain example.net mail.example.com zimbraMailCatchAllForwardingAddress @mail.example.com

留言

熱門文章