** A new version of Zimbra 8.7 has been release and click here how to install it. **

So far I like Zimbra. It has easy to read and flows way, has extensive mail with previews, contacts, calendar, briefcase and much more, and to me it’s better than RoundCube and SOGo.

The Open Source Zimbra does not include paid Zimbra’s Collaboration own Backup configuration, but I’m looking to other ways to back it up and to restore it.

Prerequsite:

There are four steps to be done first and an optional one:

  •  Uninstall postfix.  I installed CentOS with Gnome but postfix is installed also with minimal CentOS.
    sudo yum erase postfix
  • Install perl-core.
    sudo yum install perl-core
  • Then disabled the firewall:
    sudo service firewalld stop
    sudo systemctl disable firewalld
  • Disabled SELinux:
    sudo gedit /etc/sysconfig/selinux
    
    # This file controls the state of SELinux on the system.
    # SELINUX= can take one of these three values:
    #     enforcing - SELinux security policy is enforced.
    #     permissive - SELinux prints warnings instead of enforcing.
    #     disabled - No SELinux policy is loaded.
    SELINUX=disabled
    # SELINUXTYPE= can take one of three two values:
    #     targeted - Targeted processes are protected,
    #     minimum - Modification of targeted policy. Only selected processes are protected. 
    #     mls - Multi Level Security protection.
    SELINUXTYPE=targeted
  • Change to /etc/hosts file to IP FQHN HN (the hostname-only portion) and remove or comment out all of the IPv6 configuration because of the IPv6 inteferes with zmconfigd service.   Zimbra also says HN is optional but I have to put it in to make it work.
  • (Optional).  Make the IP address of the server be static.  I changed mine to 192.168.2.100.
  • sudo gedit /etc/sysconfig/network-scripts/ifcfg-eno16777736
    
    TYPE=Ethernet
    BOOTPROTO=static
    IPADDR=192.168.2.100
    NETMASK=255.255.255.0
    GATEWAY=192.168.2.1
    DNS1=192.168.2.1
    DEFROUTE=yes
    PEERDNS=yes
    PEERROUTES=yes
    IPV4_FAILURE_FATAL=no
    IPV6INIT=yes
    IPV6_AUTOCONF=yes
    IPV6_DEFROUTE=yes
    IPV6_PEERDNS=yes
    IPV6_PEERROUTES=yes
    IPV6_FAILURE_FATAL=no
    NAME=eno16777736
    UUID=b949bf38-7e14-43cd-ace2-0fb532a70427
    DEVICE=eno16777736
    ONBOOT=yes

Installing Zimbra:

Go to Zimbra Open Source website https://www.zimbra.com/downloads/zimbra-collaboration-open-source/ and download it from the Download tab, and extract it.

Go to the terminal, and using sudo install it.

 
$ sudo ./install.sh

Operations logged to /tmp/install.log.3666
Checking for existing installation...
 zimbra-ldap...NOT FOUND
 zimbra-logger...NOT FOUND
 zimbra-mta...NOT FOUND
 zimbra-dnscache...NOT FOUND
 zimbra-snmp...NOT FOUND
 zimbra-store...NOT FOUND
 zimbra-apache...NOT FOUND
 zimbra-spell...NOT FOUND
 zimbra-convertd...NOT FOUND
 zimbra-memcached...NOT FOUND
 zimbra-proxy...NOT FOUND
 zimbra-archiving...NOT FOUND
 zimbra-core...NOT FOUND


PLEASE READ THIS AGREEMENT CAREFULLY BEFORE USING THE SOFTWARE.
ZIMBRA, INC. ("ZIMBRA") WILL ONLY LICENSE THIS SOFTWARE TO YOU IF YOU
FIRST ACCEPT THE TERMS OF THIS AGREEMENT. BY DOWNLOADING OR INSTALLING
THE SOFTWARE, OR USING THE PRODUCT, YOU ARE CONSENTING TO BE BOUND BY
THIS AGREEMENT. IF YOU DO NOT AGREE TO ALL OF THE TERMS OF THIS
AGREEMENT, THEN DO NOT DOWNLOAD, INSTALL OR USE THE PRODUCT.

License Terms for the Zimbra Collaboration Suite:
 http://www.zimbra.com/license/zimbra-public-eula-2-5.html



Do you agree with the terms of the software license agreement? [N] y



Checking for prerequisites...
 FOUND: NPTL
 FOUND: nmap-ncat-6.40-7
 FOUND: sudo-1.8.6p7-17
 FOUND: libidn-1.28-4
 FOUND: gmp-6.0.0-12
 FOUND: libaio-0.3.109-13
 FOUND: libstdc++-4.8.5-4
 FOUND: unzip-6.0-15
 FOUND: perl-core-5.16.3-286

Checking for suggested prerequisites...
 FOUND: perl-5.16.3
 FOUND: sysstat
 FOUND: sqlite
Prerequisite check complete.

Checking for installable packages

Found zimbra-core
Found zimbra-ldap
Found zimbra-logger
Found zimbra-mta
Found zimbra-dnscache
Found zimbra-snmp
Found zimbra-store
Found zimbra-apache
Found zimbra-spell
Found zimbra-memcached
Found zimbra-proxy


Select the packages to install

Install zimbra-ldap [Y] 

Install zimbra-logger [Y] 

Install zimbra-mta [Y] 

Install zimbra-dnscache [Y] 

Install zimbra-snmp [Y] 

Install zimbra-store [Y] 

Install zimbra-apache [Y] 

Install zimbra-spell [Y] 

Install zimbra-memcached [Y] 

Install zimbra-proxy [Y] 
Checking required space for zimbra-core
Checking space for zimbra-store
Checking required packages for zimbra-store
zimbra-store package check complete.

Installing:
 zimbra-core
 zimbra-ldap
 zimbra-logger
 zimbra-mta
 zimbra-dnscache
 zimbra-snmp
 zimbra-store
 zimbra-apache
 zimbra-spell
 zimbra-memcached
 zimbra-proxy

The system will be modified. Continue? [N] y

Removing /opt/zimbra
Removing zimbra crontab entry...done.
Cleaning up zimbra init scripts...done.
Cleaning up /etc/ld.so.conf...done.
Cleaning up /etc/security/limits.conf...done.

Finished removing Zimbra Collaboration Server.

Installing packages

 zimbra-core......zimbra-core-8.6.0_GA_1153.RHEL7_64-20141215151110.x86_64.rpm...done
 zimbra-ldap......zimbra-ldap-8.6.0_GA_1153.RHEL7_64-20141215151110.x86_64.rpm...done
 zimbra-logger......zimbra-logger-8.6.0_GA_1153.RHEL7_64-20141215151110.x86_64.rpm...done
 zimbra-mta......zimbra-mta-8.6.0_GA_1153.RHEL7_64-20141215151110.x86_64.rpm...done
 zimbra-dnscache......zimbra-dnscache-8.6.0_GA_1153.RHEL7_64-20141215151110.x86_64.rpm...done
 zimbra-snmp......zimbra-snmp-8.6.0_GA_1153.RHEL7_64-20141215151110.x86_64.rpm...done
 zimbra-store......zimbra-store-8.6.0_GA_1153.RHEL7_64-20141215151110.x86_64.rpm...done
 zimbra-apache......zimbra-apache-8.6.0_GA_1153.RHEL7_64-20141215151110.x86_64.rpm...done
 zimbra-spell......zimbra-spell-8.6.0_GA_1153.RHEL7_64-20141215151110.x86_64.rpm...done
 zimbra-memcached......zimbra-memcached-8.6.0_GA_1153.RHEL7_64-20141215151110.x86_64.rpm...done
 zimbra-proxy......zimbra-proxy-8.6.0_GA_1153.RHEL7_64-20141215151110.x86_64.rpm...done
Operations logged to /tmp/zmsetup04052016-142051.log
Installing LDAP configuration database...done.
Setting defaults...No results returned for A lookup of localhost.localdomain
Checked nameservers:
 192.168.2.1
No results returned for AAAA lookup of localhost.localdomain
Checked nameservers:
 192.168.2.1


DNS ERROR resolving localhost.localdomain
It is suggested that the hostname be resolvable via DNS
Change hostname [Yes] n


DNS ERROR resolving MX for localhost.localdomain
It is suggested that the domain name have an MX record configured in DNS
Change domain name? [Yes] 
Create domain: [localhost.localdomain] bales.lan


DNS ERROR resolving MX for bales.lan
It is suggested that the domain name have an MX record configured in DNS
Re-Enter domain name? [Yes] n
done.
Checking for port conflicts
Port conflict detected: 53 (zimbra-dnscache)
Port conflicts detected! - Press Enter/Return key to continue 

Main menu

 1) Common Configuration: 
 2) zimbra-ldap: Enabled 
 3) zimbra-logger: Enabled 
 4) zimbra-mta: Enabled 
 5) zimbra-dnscache: Enabled 
 6) zimbra-snmp: Enabled 
 7) zimbra-store: Enabled 
 +Create Admin User: yes 
 +Admin user to create: admin@bales.lan 
******* +Admin Password UNSET 
 +Anti-virus quarantine user: virus-quarantine.uvmuwcz5w@bales.lan
 +Enable automated spam training: yes 
 +Spam training user: spam.mbtzylhss@bales.lan 
 +Non-spam(Ham) training user: ham.pgd3_8yom@bales.lan 
 +SMTP host: localhost.localdomain 
 +Web server HTTP port: 8080 
 +Web server HTTPS port: 8443 
 +Web server mode: https 
 +IMAP server port: 7143 
 +IMAP server SSL port: 7993 
 +POP server port: 7110 
 +POP server SSL port: 7995 
 +Use spell check server: yes 
 +Spell server URL: http://localhost.localdomain:7780/aspell.php
 +Enable version update checks: TRUE 
 +Enable version update notifications: TRUE 
 +Version update notification email: admin@bales.lan 
 +Version update source email: admin@bales.lan 
 +Install mailstore (service webapp): yes 
 +Install UI (zimbra,zimbraAdmin webapps): yes 

 8) zimbra-spell: Enabled 
 9) zimbra-proxy: Enabled 
 10) Default Class of Service Configuration: 
 s) Save config to file 
 x) Expand menu 
 q) Quit 

Address unconfigured (**) items (? - help) 


It’s said ‘localhost.localdomain’ does not have AAAA record or MX record.  I didn’t change the AAAA record but I changed the MX record to bales.lan.

Setting defaults...No results returned for A lookup of localhost.localdomain
Checked nameservers:
 127.0.1.1
No results returned for AAAA lookup of localhost.localdomain
Checked nameservers:
 127.0.1.1


DNS ERROR resolving localhost.localdomain
It is suggested that the hostname be resolvable via DNS
Change hostname [Yes] n


DNS ERROR resolving MX for localhost.localdomain
It is suggested that the domain name have an MX record configured in DNS
Change domain name? [Yes] 
Create domain: [localhost.localdomain] bales.lan


DNS ERROR resolving MX for bales.lan
It is suggested that the domain name have an MX record configured in DNS
Re-Enter domain name? [Yes] n
done.

It said there is a port conflict with 53 and pressed Enter/Return.  It seems to make no difference with Zimbra running.

Checking for port conflicts
Port conflict detected: 53 (zimbra-dnscache)
Port conflicts detected! - Press Enter/Return key to continue

At the end it asking to you configure and/or make changes to what is being installed. The only one needs to be changed is the admin account password.  Hit 7 and then 4, type it your password, then r.

Store configuration

 1) Status: Enabled 
 2) Create Admin User: yes 
 3) Admin user to create: admin@bales.lan 
** 4) Admin Password UNSET 
 5) Anti-virus quarantine user: virus-quarantine.ip8aroih@bales.lan
 6) Enable automated spam training: yes 
 7) Spam training user: spam.trqg42ubbj@bales.lan 
 8) Non-spam(Ham) training user: ham.5kjyg4g6@bales.lan 
 9) SMTP host: localhost.localdomain 
 10) Web server HTTP port: 8080 
 11) Web server HTTPS port: 8443 
 12) Web server mode: https 
 13) IMAP server port: 7143 
 14) IMAP server SSL port: 7993 
 15) POP server port: 7110 
 16) POP server SSL port: 7995 
 17) Use spell check server: yes 
 18) Spell server URL: http://localhost.localdomain:7780/aspell.php
 19) Enable version update checks: TRUE 
 20) Enable version update notifications: TRUE 
 21) Version update notification email: admin@bales.lan 
 22) Version update source email: admin@bales.lan 
 23) Install mailstore (service webapp): yes 
 24) Install UI (zimbra,zimbraAdmin webapps): yes 

Select, or 'r' for previous menu [r] 4

Password for admin@bales.lan (min 6 characters): [5BX_MY5nzx] ******* 


Then ‘a’ to apply the configuration:

Select, or 'r' for previous menu [r] r

Main menu

 1) Common Configuration: 
 2) zimbra-ldap: Enabled 
 3) zimbra-logger: Enabled 
 4) zimbra-mta: Enabled 
 5) zimbra-dnscache: Enabled 
 6) zimbra-snmp: Enabled 
 7) zimbra-store: Enabled 
 8) zimbra-spell: Enabled 
 9) zimbra-proxy: Enabled 
 10) Enable VMware HA: no 
 11) Default Class of Service Configuration: 
 s) Save config to file 
 x) Expand menu 
 q) Quit 

*** CONFIGURATION COMPLETE - press 'a' to apply
Select from menu, or press 'a' to apply config (? - help)

The rest of installing sequence of Zimbra.

Save configuration data to a file? [Yes] 
Save config in file: [/opt/zimbra/config.13376] 
Saving config in /opt/zimbra/config.13376...done.
The system will be modified - continue? [No] y
Operations logged to /tmp/zmsetup04052016-113405.log
Setting local config values...done.
Initializing core config...Setting up CA...done.
Deploying CA to /opt/zimbra/conf/ca ...done.
Creating SSL zimbra-store certificate...done.
Creating new zimbra-ldap SSL certificate...done.
Creating new zimbra-mta SSL certificate...done.
Creating new zimbra-proxy SSL certificate...done.
Installing mailboxd SSL certificates...done.
Installing MTA SSL certificates...done.
Installing LDAP SSL certificate...done.
Installing Proxy SSL certificate...done.
Initializing ldap...done.
Setting replication password...done.
Setting Postfix password...done.
Setting amavis password...done.
Setting nginx password...done.
Setting BES searcher password...done.
Creating server entry for localhost.localdomain...done.
Setting Zimbra IP Mode...done.
Saving CA in ldap ...done.
Saving SSL Certificate in ldap ...done.
Setting spell check URL...done.
Setting service ports on localhost.localdomain...done.
Setting zimbraFeatureTasksEnabled=TRUE...done.
Setting zimbraFeatureBriefcasesEnabled=TRUE...done.
Setting Master DNS IP address(es)...done.
Setting DNS cache tcp lookup preference...done.
Setting DNS cache udp lookup preference...done.
Setting DNS tcp upstream preference...done.
Setting TimeZone Preference...done.
Initializing mta config...done.
Setting services on localhost.localdomain...done.
Adding localhost.localdomain to zimbraMailHostPool in default COS...done.
Creating domain bales.lan...done.
Setting default domain name...done.
Creating domain bales.lan...already exists.
Creating admin account admin@bales.lan...done.
Creating root alias...done.
Creating postmaster alias...done.
Creating user spam.trqg42ubbj@bales.lan...done.
Creating user ham.5kjyg4g6@bales.lan...done.
Creating user virus-quarantine.ip8aroih@bales.lan...done.
Setting spam training and Anti-virus quarantine accounts...done.
Initializing store sql database...done.
Setting zimbraSmtpHostname for localhost.localdomain...done.
Configuring SNMP...done.
Setting up syslog.conf...done.
Starting servers...done.
Installing common zimlets...
 com_zimbra_bulkprovision...done.
 com_zimbra_attachmail...done.
 com_zimbra_tooltip...done.
 com_zimbra_email...done.
 com_zimbra_viewmail...done.
 com_zimbra_ymemoticons...done.
 com_zimbra_cert_manager...done.
 com_zimbra_url...done.
 com_zimbra_phone...done.
 com_zimbra_proxy_config...done.
 com_zimbra_srchhighlighter...done.
 com_zimbra_attachcontacts...done.
 com_zimbra_mailarchive...done.
 com_zimbra_date...done.
 com_zimbra_clientuploader...done.
 com_zimbra_webex...done.
 com_zimbra_adminversioncheck...done.
Finished installing common zimlets.
Restarting mailboxd...done.
Creating galsync account for default domain...done.

You have the option of notifying Zimbra of your installation.
This helps us to track the uptake of the Zimbra Collaboration Server.
The only information that will be transmitted is:
 The VERSION of zcs installed (8.6.0_GA_RHEL7_64)
 The ADMIN EMAIL ADDRESS created (admin@bales.lan)

Notify Zimbra of your installation? [Yes] n
Notification skipped
Setting up zimbra crontab...done.


Moving /tmp/zmsetup04052016-113405.log to /opt/zimbra/log


Configuration complete - press return to exit

Then reboot.

Installing the Upgrade:

Log in as root and cd to the directory where the tar file is saved. Type tar xzf zcs-patch-8.6.0_GA_1194.tgz cd zcs-patch-8.6.0_GA_1194.

As root, install the patch.

./installPatch.sh

Switch to user zimbra su – zimbra, or reboot the Zimbra server.

zmcontrol restart or if you reboot it,
zmcontrol status

Make sure all the services are running, excpet the ‘vmwar-ha’ because it’s not including the Open Source Zimbra.

Then go the browser and type in https:<Server IP> or <mail server name>:7017, then use the admin@domain.name and the password, and you are ready to go!

 

References:

https://files.zimbra.com/website/docs/8.6/Zimbra_OS_Quick_Start_8.6.0.pdf

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s