1. vi /etc/hosts
and set hostname
2. Allow iptables to by-pass all zimbra ports
service iptables stop
3. vi /etc/sysconfig/selinux
SELINUX=disabled
4. Stop any MTA services installed in the server
[root@centos7 ~]# systemctl stop postfix
[root@centos7 ~]# systemctl disable postfix
[root@centos7 ~]# systemctl stop sendmail
[root@centos7 ~]# systemctl disable sendmail
5.Update the OS
[root@centos7 ~]# yum update -y
6.Install the required packages and libraries by issuing the following command :
[root@centos7 ~]# yum install perl perl-core ntpl nmap sudo libidn gmp libaio libstdc++ unzip sysstat sqlite -y
wget https://files.zimbra.com/downloads/8.6.0_GA/zcs-8.6.0_GA_1153.RHEL7_64.20141215151110.tgz
tar xzf zcs-8.6.0_GA_1153.RHEL7_64.20141215151110.tgz
cd zcs-8.6.0_GA_1153.RHEL7_64.20141215151110
./install.sh --platform-override
You can see the following screen when starting the script.
./install.sh --platform-override
#### Finally
su - zimbra
[zimbra@mail ~]$ zmcontrol start
[zimbra@mail ~]$ zmcontrol status
Access admin panel via browser :
https://<your_zimbra_domain.com>:7071
Source: https://www.unixmen.com/install-zimbra-collaboration-suite-8-6-0-centos-7/
------------------------------------------------------------------
Zimbra Domain Block / Restrict and troubleshooting
-----------------------------------------------------------------
*** Check Mail sender Public IP from LINUX:
root# dig TXT +short o-o.myaddr.l.google.com @ns1.google.com
//(check either PUBLIC IP is right or wrong)
*** Check Mailq and Delete if needed
root# /opt/zimbra/common/sbin/postsuper -d ALL
root# su - zimbra
[zimbra@mail ~]$ mailq
*** Enable SPAM FILTER ****
[zimbra@mail ~]$ zmlocalconfig -e amavis_dspam_enabled=true
*** Modify "smtpd_sender_restrictions". We are adding a check before allowing a normal smtp connection. Allowing hosts in mynetwork, then allowing sasl authenticated too. Then a check for local domain address.
[zimbra@mail ~]$ postconf mynetworks
[zimbra@mail ~]$ zmprov ms mail.tayabkna.com zimbraMtaMyNetworks '127.0.0.0/8 192.168.10.50/32'
[zimbra@mail ~]$ postfix reload
Bellow commands For Zimbra 8.5 and Above versions.....
[zimbra@mail ~]$ zmprov mcf zimbraMtaSmtpdRejectUnlistedRecipient yes
[zimbra@mail ~]$ zmprov mcf zimbraMtaSmtpdRejectUnlistedSender yes
[zimbra@mail ~]$ zmmtactl restart
[zimbra@mail ~]$ zmconfigdctl restart
For Zimbra 8.0.0 versions.... use bellow commands
vi /opt/zimbra/conf/zmconfigd/smtpd_sender_restrictions.cf
check_sender_access hash:/opt/zimbra/conf/domainrestrict
#########################
vi /opt/zimbra/conf/domainrestrict
tayabkhan.com ACCEPT
mezan.net REJECT Not-Permitted
@ REJECT You-Are-Not-Permitted
postmap /opt/zimbra/conf/domainrestrict
zmmtactl stop
zmmtactl start
#####################################