CentOS 7.x Install Zimbra on Physical server or VM
From Notes_Wiki
Home > CentOS > CentOS 7.x > Email configuration > Zimbra configuration > Install Zimbra > CentOS 7.x Install Zimbra on Physical server or VM
To install Zimbra community edition on physical server or VM use: (For lxc containers or public cloud instances refer to different articles)
- Disable Selinux permanently in '/etc/selinux/config'.
- SELINUX=disabled
- Disable SELinux for current run
- setenforce 0
- Allow required ports in Firewall
- firewall-cmd --permanent --add-port=<port-number>/tcp
- For Zimbra ports refer https://wiki.zimbra.com/wiki/Firewall_Configuration Apart from 389 (LDAP), 7073 (Soap Auth) and 7025 (LMTP) most others are required. Since TLS is used instead of SSL - port 25, 110, 143, etc. should also be allowed.
- Reload firewall for changes to take effect
- firewall-cmd --reload
- Configure hostname in '/etc/hosts'
- 192.168.1.X zimbra.sbarjatiya.com zimbra
- Stop any MTA services installed in the server
- systemctl stop postfix
- systemctl disable postfix
- systemctl stop sendmail
- systemctl disable sendmail
- Install required packages
- yum install perl perl-core ntp nmap sudo libidn gmp libaio libstdc++ unzip sysstat sqlite -y
- If you want incoming emails to work properly, then setup correct MX records for the domain to point to this server.
- Download Zimbra latest version from official web site
- https://www.zimbra.com/downloads/
- Extract the downloaded file
- tar xzf zcs-8.7.6.X.X.X
- Start the installation
- cd zcs-8.7.6.X.X.X
- ./install.sh --platform-override
- Use below inputs for using Zimbra installation wizard
- Enter 'Y' for agreeing with terms of service
- Enter 'Y' for agreeing with license agreement
- Enter 'Y' for installing Zimbra-ldap, Zimbra-logger, Zimbra-mta, Zimbra-snmp, Zimbra-store, Zimbra-apache, Zimbra spell, chat, drive, etc.
- Enter 'Y' for system will be modified warning. The setup should now install various rpms for Zimbra.
- If FQDN is different from domain name (eg FQDN zimbra.example.com, domain example.com) then Zimbra will give error that MX record cannot be resolved. Enter 'Yes' for change domain name.
- Enter new correct domain name such as example.com
- This would bring setup to Zimbra configuration menu. Only admin password needs to be configured rest all can be left as it is for basic setup. To configure admin password use menu option and set appropriate admin password.
- Press 'r' to return to previous menu and then 'a' for applying configuration
- Enter 'Yes' for saving configuration to a file
- Press enter for file path option and continue with whatever file name has been suggested
- Enter 'Yes' for system will be modified warning
- Now setup should take really long time for various installations and configurations
- Enter 'No' for notify Zimbra of installation for test machines. In case of production machines you can optionally enter 'Yes'.
- Press return to exit on 'Press return to exit' message :)
- Check status of Zimbra services which take a few minutes to start
- su - zimbra
- zmcontrol status
- Access admin panel via browser
- https://zimbra.sbarjatiya.com:7071
Retrying installation
In case installation fails mid-way then remove by referring Zimbra uninstallation and try again after resolving issue which caused the previous installation to fail.
Home > CentOS > CentOS 7.x > Email configuration > Zimbra configuration > Install Zimbra > CentOS 7.x Install Zimbra on Physical server or VM