CentOS 7.x Install Zimbra on lxc container
From Notes_Wiki
Home > CentOS > CentOS 7.x > Email configuration > Zimbra configuration > Install Zimbra > CentOS 7.x Install Zimbra on lxc container
To install Zimbra on lxc container use:
- Create CentOS 7.x lxc container on host with 8GB or more free RAM. Refer CentOS 7.x lxc, if required.
- Download Zimbra 8.8.11 or desired setup from Zimbra website and copy to container /root folder
- Start the container and set static IP. The container should be available on network bridge to be accessible by other machines. For understanding bridge configuration refer Creating bridge interfaces (br0) for virtual hosts to use shared interface.
- Ideally DNS MX records, A records, etc. should be setup for allowing incoming emails. Outgoing emails might work without having proper DNS records also, but would most likely get marked as SPAM. For any information on DNS refer CentOS 7.x DNS configuration.
- Validate no process is listening on port 25
- ss -alnp | grep 25
-
- if there is sendmail or postfix, stop and disable corresponding service
- Either disable firewalld or create exception for ports mentioned at https://wiki.zimbra.com/wiki/Firewall_Configuration
- Have /etc/hosts similar to:
- 127.0.0.1 localhost.localdomain localhost
- 192.168.123.11 mail1.dodlazimbrademo.com
- Install dependencies
- yum -y install perl perl-core ntp nmap sudo libidn gmp libaio libstdc++ unzip sysstat sqlite epel-release
- yum -y install less vim bind-utils htop
- If installation would be repeated often and caching is desired edit /etc/yum.conf and set keepcache=1
- Install zimbra by extracting .tgz file and running ./install.sh
- EULA: Y
- Use Zimbra package repository: Y
- For most packages leave to default Y.
- On system would be modified caution: Y
- Typically hostname of zimbra server is mail.zimbra.sbarjatiya.com while the server is supposed to act as email server for domain zimbra.sbarjatiya.com. In such cases use something similar to:
- DNS ERROR resolving MX for mail.zimbra.sbarjatiya.com
- It is suggested that the domain name have an MX record configured in DNS
- Change domain name? [Yes] Yes
- Create domain: [mail.zimbra.sbarjatiya.com] zimbra.sbarjatiya.com
- Set admin password and rest all can be left as it is (7, 4)
- Use 'r' to return to main menu and 'a' for applying configuration
- Further use responses similar to:
- Save configuration data to a file? [Yes]
- Save config in file: [/opt/zimbra/config.7626]
- Saving config in /opt/zimbra/config.7626...done.
- The system will be modified - continue? [No] Yes
- 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 at https://mail.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 lxc container