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:

  1. Create CentOS 7.x lxc container on host with 8GB or more free RAM. Refer CentOS 7.x lxc, if required.
  2. Download Zimbra 8.8.11 or desired setup from Zimbra website and copy to container /root folder
  3. 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.
  4. 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.
  5. Validate no process is listening on port 25
    ss -alnp | grep 25
    if there is sendmail or postfix, stop and disable corresponding service
  6. Either disable firewalld or create exception for ports mentioned at https://wiki.zimbra.com/wiki/Firewall_Configuration
  7. Have /etc/hosts similar to:
    127.0.0.1 localhost.localdomain localhost
    192.168.123.11 mail1.dodlazimbrademo.com
  8. 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
  9. If installation would be repeated often and caching is desired edit /etc/yum.conf and set keepcache=1
  10. Install zimbra by extracting .tgz file and running ./install.sh
    1. EULA: Y
    2. Use Zimbra package repository: Y
    3. For most packages leave to default Y.
    4. On system would be modified caution: Y
    5. 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
    6. Set admin password and rest all can be left as it is (7, 4)
    7. Use 'r' to return to main menu and 'a' for applying configuration
    8. 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
    9. Now setup should take really long time for various installations and configurations
    10. Enter 'No' for notify Zimbra of installation for test machines. In case of production machines you can optionally enter 'Yes'.
    11. Press return to exit on 'Press return to exit' message :)
  11. Check status of Zimbra services which take a few minutes to start
    su - zimbra
    zmcontrol status
  12. 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