Jump to content

Jb india Zimbra NE server instllation and user migration

From TetraWiki


Public IP: 180.151.240.83

Private IP: 192.168.0.228

Zimbra version: Release 8.6.0_GA_1153.RHEL7_64_20141215151204 RHEL7_64 NETWORK edition, Patch 8.6.0_P5.

Hostname: zimbra.jbindia.co.in


Admin Account: (Admin account is alias of harish.kumar )


#nmcli connection modify eno1 ipv4.addresses 192.168.0.228/24 ipv4.gateway 192.168.0.234  ipv4.dns "192.168.0.228 8.8.8.8" connection.autoconnect yes ipv4.method manual 
#systemctl restart network
#vim /etc/sysconfig/selinux

(and make SELINUX=disabled)

#reboot
#systemctl disable postfix
#systemctl stop postfix
#systemctl stop firewalld
#systemctl disable firewalld
#systemctl mask firewalld
#yum install iptables-services
#systemctl enable iptables
#systemctl unmask iptables
#hostnamectl set-hostname zimbra.jbindia.co.in

#vim /etc/hosts

Add below lines,

192.168.0.288 zimbra.jbindia.co.in zimbra

#yum install bind
#systemctl enable named
#vim /etc/named.conf

// // named.conf //

// Provided by Red Hat bind package to configure the ISC BIND named(8) DNS

// server as a caching only nameserver (as a localhost DNS resolver only). //

// See /usr/share/doc/bind*/sample/ for example named configuration files. //

options { listen-on port 53 { 127.0.0.1; 192.168.0.228; }; directory "/var/named"; dump-file "/var/named/data/cache_dump.db"; statistics-file "/var/named/data/named_stats.txt"; memstatistics-file "/var/named/data/named_mem_stats.txt"; allow-query { localhost; 192.168.0.228; };

/* - If you are building an AUTHORITATIVE DNS server, do NOT enable recursion. - If you are building a RECURSIVE (caching) DNS server, you need to enable recursion. - If your recursive DNS server has a public IP address, you MUST enable access control to limit queries to your legitimate users. Failing to do so will cause your server to become part of large scale DNS amplification attacks. Implementing BCP38 within your network would greatly reduce such attack surface */ recursion yes;

dnssec-enable yes; dnssec-validation yes;

/* Path to ISC DLV key */ bindkeys-file "/etc/named.iscdlv.key";

managed-keys-directory "/var/named/dynamic";

pid-file "/run/named/named.pid"; session-keyfile "/run/named/session.key"; };

logging {

       channel default_debug {
               file "data/named.run";
               severity dynamic;
       };

};


zone "jbindia.co.in" IN {

       type master;
       file "jbindia.co.in.fwd";
       allow-update { none; };

};

zone "0.168.192.in-addr.arpa" IN {

       type master;
       file "jbindia.co.in.rvs";
       allow-update { none; };

};


zone "." IN { type hint; file "named.ca"; };

include "/etc/named.rfc1912.zones"; include "/etc/named.root.key";


#cd /var/named/
#vim jbindia.co.in.fwd

$ORIGIN jbindia.co.in. $TTL 86400 @ IN SOA dns1.jbindia.co.in. hostmaster.jbindia.co.in. ( 20160119 ; serial 1D ; refresh 1H ; retry 1W ; expire 3H ) ; minimum IN NS dns1.jbindia.co.in. IN MX 10 zimbra.jbindia.co.in. IN A 192.168.0.228 dns1 IN A 192.168.0.228 hostmaster IN A 192.168.0.228 zimbra IN A 192.168.0.228


#vim jbindia.co.in.rvs

$ORIGIN 0.168.192.in-addr.arpa. $TTL 86400 @ IN SOA dns1.jbindia.co.in. hostmaster.jbindia.co.in. ( 20160119 ; serial 1D ; refresh 1H ; retry 1W ; expire 3H ) ; minimum IN NS dns1.jbindia.co.in.

228.0.168.192.in-addr.arpa. IN PTR dns1.jbindia.co.in. 228.0.168.192.in-addr.arpa. IN PTR hostmaster.jbindia.co.in. 228.0.168.192.in-addr.arpa. IN PTR zimbra.jbindia.co.in.


#chown named:named jbindia.co.in.fwd 
#chown named:named jbindia.co.in.rvs
#systemctl restart named
#yum install nmap-ncat  perl-core sudo libidn gmp libaio libstdc++ unzip  sysstat sqlite

Now register to zimbra website (It will give you a key file on your Email id.)and copy the key into /tmp location

#cp -rvp ZCSLicense.xml /tmp/
#tar -xvzf zcs-NETWORK-8.6.0_GA_1153.RHEL7_64.20141215151204.tgz 
#cd zcs-NETWORK-8.6.0_GA_1153.RHEL7_64.20141215151204/
#[root@zimbra zcs-NETWORK-8.6.0_GA_1153.RHEL7_64.20141215151204]# ./install.sh --platform-override

Operations logged to /tmp/install.log.3233 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


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

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-13
    FOUND: libidn-1.28-3
    FOUND: gmp-6.0.0-11
    FOUND: libaio-0.3.109-12
    FOUND: libstdc++-4.8.3-9
    FOUND: unzip-6.0-13
    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-convertd Found zimbra-memcached Found zimbra-proxy Found zimbra-archiving


Select the packages to install

Install zimbra-ldap [Y] y

Install zimbra-logger [Y] y

Install zimbra-mta [Y] y

Install zimbra-dnscache [Y] n

Install zimbra-snmp [Y] y

Install zimbra-store [Y] y

Install zimbra-apache [Y] y

Install zimbra-spell [Y] y

Install zimbra-convertd [Y] y

Install zimbra-memcached [Y] n

Install zimbra-proxy [Y] n

Install zimbra-archiving [N] y Checking required space for zimbra-core Checking space for zimbra-store Checking required packages for zimbra-store

    MISSING: libreoffice
    MISSING: libreoffice-headless
###WARNING###

One or more suggested packages for zimbra-store are missing. Some features may be disabled due to the missing package(s).


Installing:

   zimbra-core
   zimbra-ldap
   zimbra-logger
   zimbra-mta
   zimbra-snmp
   zimbra-store
   zimbra-apache
   zimbra-spell
   zimbra-convertd
   zimbra-archiving

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

Exit? [N] y Exiting - the system is unchanged

Because it is showing waring for libreoffice.So I installed it.Because it helps to view document in zimbra webmail.

#[root@zimbra zcs-NETWORK-8.6.0_GA_1153.RHEL7_64.20141215151204]# yum install libreoffice libreoffice-headless
#[root@zimbra zcs-NETWORK-8.6.0_GA_1153.RHEL7_64.20141215151204]# ./install.sh --platform-override

Operations logged to /tmp/install.log.6073 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


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

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-16
    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-convertd Found zimbra-memcached Found zimbra-proxy Found zimbra-archiving


Select the packages to install

Install zimbra-ldap [Y] y

Install zimbra-logger [Y] y

Install zimbra-mta [Y] y

Install zimbra-dnscache [Y] n

Install zimbra-snmp [Y] y

Install zimbra-store [Y] y

Install zimbra-apache [Y] y

Install zimbra-spell [Y] y

Install zimbra-convertd [Y] y

Install zimbra-memcached [Y] n

Install zimbra-proxy [Y] n

Install zimbra-archiving [N] y Checking required space for zimbra-core Checking space for zimbra-store Checking required packages for zimbra-store

    FOUND: libreoffice-4.3.7.2-5
    FOUND: libreoffice-headless-4.3.7.2-5

zimbra-store package check complete.

Installing:

   zimbra-core
   zimbra-ldap
   zimbra-logger
   zimbra-mta
   zimbra-snmp
   zimbra-store
   zimbra-apache
   zimbra-spell
   zimbra-convertd
   zimbra-archiving

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-20141215151204.x86_64.rpm...done
   zimbra-ldap......zimbra-ldap-8.6.0_GA_1153.RHEL7_64-20141215151204.x86_64.rpm...done
   zimbra-logger......zimbra-logger-8.6.0_GA_1153.RHEL7_64-20141215151204.x86_64.rpm...done
   zimbra-mta......zimbra-mta-8.6.0_GA_1153.RHEL7_64-20141215151204.x86_64.rpm...done
   zimbra-snmp......zimbra-snmp-8.6.0_GA_1153.RHEL7_64-20141215151204.x86_64.rpm...done
   zimbra-store......zimbra-store-8.6.0_GA_1153.RHEL7_64-20141215151204.x86_64.rpm...done
   zimbra-apache......zimbra-apache-8.6.0_GA_1153.RHEL7_64-20141215151204.x86_64.rpm...done
   zimbra-spell......zimbra-spell-8.6.0_GA_1153.RHEL7_64-20141215151204.x86_64.rpm...done
   zimbra-convertd......zimbra-convertd-8.6.0_GA_1153.RHEL7_64-20141215151204.x86_64.rpm...done
   zimbra-archiving......zimbra-archiving-8.6.0_GA_1153.RHEL7_64-20141215151204.x86_64.rpm...done

Operations logged to /tmp/zmsetup01192016-140535.log Installing LDAP configuration database...done. Setting defaults...

DNS ERROR resolving MX for zimbra.jbindia.co.in It is suggested that the domain name have an MX record configured in DNS Change domain name? [Yes] yes Create domain: [zimbra.jbindia.co.in] jbindia.co.in MX: zimbra.jbindia.co.in (192.168.0.228)

Interface: 127.0.0.1 Interface: ::1 Interface: 192.168.0.228 done. Checking for port conflicts

Main menu

  1) Common Configuration:                                                  
  2) zimbra-ldap:                             Enabled                       
  3) zimbra-logger:                           Enabled                       
  4) zimbra-mta:                              Enabled                       
  5) zimbra-snmp:                             Enabled                       
  6) zimbra-store:                            Enabled                       
       +Create Admin User:                    yes                           
       +Admin user to create:                 admin@jbindia.co.in           
              • +Admin Password UNSET
       +Anti-virus quarantine user:           virus-quarantine.yxyuflzs@jbindia.co.in
       +Enable automated spam training:       yes                           
       +Spam training user:                   spam.3yzx25j1t8@jbindia.co.in 
       +Non-spam(Ham) training user:          ham.m6nnkhqxve@jbindia.co.in  
       +SMTP host:                            zimbra.jbindia.co.in          
       +Web server HTTP port:                 80                            
       +Web server HTTPS port:                443                           
       +Web server mode:                      https                         
       +IMAP server port:                     143                           
       +IMAP server SSL port:                 993                           
       +POP server port:                      110                           
       +POP server SSL port:                  995                           
       +Use spell check server:               yes                           
       +Spell server URL:                     http://zimbra.jbindia.co.in:7780/aspell.php
       +Configure for use with mail proxy:    FALSE                         
       +Configure for use with web proxy:     FALSE                         
       +Enable version update checks:         TRUE                          
       +Enable version update notifications:  TRUE                          
       +Version update notification email:    admin@jbindia.co.in           
       +Version update source email:          admin@jbindia.co.in           
       +Install mailstore (service webapp):   yes                           
       +Install UI (zimbra,zimbraAdmin webapps): yes                           
              • +License filename: UNSET
  7) zimbra-spell:                            Enabled                       
  8) zimbra-convertd:                         Enabled                       
  9) Default Class of Service Configuration:                                
 10) Enable default backup schedule:          yes                           
  s) Save config to file                                                    
  x) Expand menu                                                            
  q) Quit                                    

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


Store configuration

  1) Status:                                  Enabled                       
  2) Create Admin User:                       yes                           
  3) Admin user to create:                    admin@jbindia.co.in           
    • 4) Admin Password UNSET
  5) Anti-virus quarantine user:              virus-quarantine.yxyuflzs@jbindia.co.in
  6) Enable automated spam training:          yes                           
  7) Spam training user:                      spam.3yzx25j1t8@jbindia.co.in 
  8) Non-spam(Ham) training user:             ham.m6nnkhqxve@jbindia.co.in  
  9) SMTP host:                               zimbra.jbindia.co.in          
 10) Web server HTTP port:                    80                            
 11) Web server HTTPS port:                   443                           
 12) Web server mode:                         https                         
 13) IMAP server port:                        143                           
 14) IMAP server SSL port:                    993                           
 15) POP server port:                         110                           
 16) POP server SSL port:                     995                           
 17) Use spell check server:                  yes                           
 18) Spell server URL:                        http://zimbra.jbindia.co.in:7780/aspell.php
 19) Configure for use with mail proxy:       FALSE                         
 20) Configure for use with web proxy:        FALSE                         
 21) Enable version update checks:            TRUE                          
 22) Enable version update notifications:     TRUE                          
 23) Version update notification email:       admin@jbindia.co.in           
 24) Version update source email:             admin@jbindia.co.in           
 25) Install mailstore (service webapp):      yes                           
 26) Install UI (zimbra,zimbraAdmin webapps): yes                           
    • 27) License filename: UNSET

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

Password for admin@jbindia.co.in (min 6 characters): [SDUHlQ41]

Store configuration

  1) Status:                                  Enabled                       
  2) Create Admin User:                       yes                           
  3) Admin user to create:                    admin@jbindia.co.in           
  4) Admin Password                           set                           
  5) Anti-virus quarantine user:              virus-quarantine.yxyuflzs@jbindia.co.in
  6) Enable automated spam training:          yes                           
  7) Spam training user:                      spam.3yzx25j1t8@jbindia.co.in 
  8) Non-spam(Ham) training user:             ham.m6nnkhqxve@jbindia.co.in  
  9) SMTP host:                               zimbra.jbindia.co.in          
 10) Web server HTTP port:                    80                            
 11) Web server HTTPS port:                   443                           
 12) Web server mode:                         https                         
 13) IMAP server port:                        143                           
 14) IMAP server SSL port:                    993                           
 15) POP server port:                         110                           
 16) POP server SSL port:                     995                           
 17) Use spell check server:                  yes                           
 18) Spell server URL:                        http://zimbra.jbindia.co.in:7780/aspell.php
 19) Configure for use with mail proxy:       FALSE                         
 20) Configure for use with web proxy:        FALSE                         
 21) Enable version update checks:            TRUE                          
 22) Enable version update notifications:     TRUE                          
 23) Version update notification email:       admin@jbindia.co.in           
 24) Version update source email:             admin@jbindia.co.in           
 25) Install mailstore (service webapp):      yes                           
 26) Install UI (zimbra,zimbraAdmin webapps): yes                           
    • 27) License filename: UNSET

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


Store configuration

  1) Status:                                  Enabled                       
  2) Create Admin User:                       yes                           
  3) Admin user to create:                    admin@jbindia.co.in           
  4) Admin Password                           set                           
  5) Anti-virus quarantine user:              virus-quarantine.yxyuflzs@jbindia.co.in
  6) Enable automated spam training:          yes                           
  7) Spam training user:                      spam.3yzx25j1t8@jbindia.co.in 
  8) Non-spam(Ham) training user:             ham.m6nnkhqxve@jbindia.co.in  
  9) SMTP host:                               zimbra.jbindia.co.in          
 10) Web server HTTP port:                    80                            
 11) Web server HTTPS port:                   443                           
 12) Web server mode:                         https                         
 13) IMAP server port:                        143                           
 14) IMAP server SSL port:                    993                           
 15) POP server port:                         110                           
 16) POP server SSL port:                     995                           
 17) Use spell check server:                  yes                           
 18) Spell server URL:                        http://zimbra.jbindia.co.in:7780/aspell.php
 19) Configure for use with mail proxy:       FALSE                         
 20) Configure for use with web proxy:        FALSE                         
 21) Enable version update checks:            FALSE                         
 22) Install mailstore (service webapp):      yes                           
 23) Install UI (zimbra,zimbraAdmin webapps): yes                           
    • 24) License filename: UNSET

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

Enter the name of the file that contains the license: /tmp/ZCSLicense.xml

Store configuration

  1) Status:                                  Enabled                       
  2) Create Admin User:                       yes                           
  3) Admin user to create:                    admin@jbindia.co.in           
  4) Admin Password                           set                           
  5) Anti-virus quarantine user:              virus-quarantine.yxyuflzs@jbindia.co.in
  6) Enable automated spam training:          yes                           
  7) Spam training user:                      spam.3yzx25j1t8@jbindia.co.in 
  8) Non-spam(Ham) training user:             ham.m6nnkhqxve@jbindia.co.in  
  9) SMTP host:                               zimbra.jbindia.co.in          
 10) Web server HTTP port:                    80                            
 11) Web server HTTPS port:                   443                           
 12) Web server mode:                         https                         
 13) IMAP server port:                        143                           
 14) IMAP server SSL port:                    993                           
 15) POP server port:                         110                           
 16) POP server SSL port:                     995                           
 17) Use spell check server:                  yes                           
 18) Spell server URL:                        http://zimbra.jbindia.co.in:7780/aspell.php
 19) Configure for use with mail proxy:       FALSE                         
 20) Configure for use with web proxy:        FALSE                         
 21) Enable version update checks:            FALSE                         
 22) Install mailstore (service webapp):      yes                           
 23) Install UI (zimbra,zimbraAdmin webapps): yes                           

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-snmp:                             Enabled                       
  6) zimbra-store:                            Enabled                       
  7) zimbra-spell:                            Enabled                       
  8) zimbra-convertd:                         Enabled                       
  9) Default Class of Service Configuration:                                
 10) Enable default backup schedule:          yes                           
  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) a Save configuration data to a file? [Yes] yes Save config in file: [/opt/zimbra/config.15969] Saving config in /opt/zimbra/config.15969...done. The system will be modified - continue? [No] yes Operations logged to /tmp/zmsetup01192016-140535.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. Installing mailboxd SSL certificates...done. Installing MTA SSL certificates...done. Installing LDAP 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 zimbra.jbindia.co.in...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 zimbra.jbindia.co.in...done. Setting zimbraFeatureTasksEnabled=TRUE...done. Setting zimbraFeatureBriefcasesEnabled=TRUE...done. Setting convertd URL...done. Setting TimeZone Preference...done. Initializing mta config...done. Setting services on zimbra.jbindia.co.in...done. Adding zimbra.jbindia.co.in to zimbraMailHostPool in default COS...done. Creating domain jbindia.co.in...done. Setting default domain name...done. Setting up default domain admin UI components..done. Granting group zimbraDomainAdmins@jbindia.co.in domain right +domainAdminConsoleRights on jbindia.co.in...done. Granting group zimbraDomainAdmins@jbindia.co.in global right +domainAdminZimletRights...done. Setting up global distribution list admin UI components..done. Granting group zimbraDLAdmins@jbindia.co.in global right +adminConsoleDLRights...done. Granting group zimbraDLAdmins@jbindia.co.in global right +listAccount...done. Creating domain jbindia.co.in...already exists. Creating admin account admin@jbindia.co.in...done. Creating root alias...done. Creating postmaster alias...done. Creating user spam.3yzx25j1t8@jbindia.co.in...done. Creating user ham.m6nnkhqxve@jbindia.co.in...done. Creating user virus-quarantine.yxyuflzs@jbindia.co.in...done. Setting spam training and Anti-virus quarantine accounts...done. Initializing store sql database...done. Setting zimbraSmtpHostname for zimbra.jbindia.co.in...done. Configuring SNMP...done. Setting up syslog.conf...done. Setting default backup schedule...Done Looking for valid license to install...license installed. Starting servers...done. Installing common zimlets... com_zimbra_proxy_config...done. com_zimbra_tooltip...done. com_zimbra_ymemoticons...done. com_zimbra_viewmail...done. com_zimbra_url...done. com_zimbra_srchhighlighter...done. com_zimbra_attachcontacts...done. com_zimbra_webex...done. com_zimbra_email...done. com_zimbra_cert_manager...done. com_zimbra_date...done. com_zimbra_adminversioncheck...done. com_zimbra_mailarchive...done. com_zimbra_bulkprovision...done. com_zimbra_attachmail...done. com_zimbra_clientuploader...done. com_zimbra_phone...done. Finished installing common zimlets. Installing network zimlets... com_zimbra_hsm...done. com_zimbra_license...done. com_zimbra_smime...done. com_zimbra_xmbxsearch...done. com_zimbra_mobilesync...done. com_zimbra_convertd...done. com_zimbra_smime_cert_admin...done. com_zimbra_backuprestore...done. com_zimbra_archive...done. com_zimbra_ucconfig...done. com_zimbra_delegatedadmin...done. Finished installing network zimlets. Restarting mailboxd...done. Creating galsync account for default domain...done. Setting up zimbra crontab...done.


Moving /tmp/zmsetup01192016-140535.log to /opt/zimbra/log


Configuration complete - press return to exit


[root@zimbra zcs-NETWORK-8.6.0_GA_1153.RHEL7_64.20141215151204]#


Now Install zimbra Patch5

#tar -xvzf zcs-patch-8.6.0_GA_1191.tgz 
# ./installPatch.sh
#su - zimbra
  1. [zimbra@zimbra ~]$ zmcontrol restart

Host zimbra.jbindia.co.in Stopping vmware-ha...Done. Stopping zmconfigd...Done. Stopping zimlet webapp...Done. Stopping zimbraAdmin webapp...Done. Stopping zimbra webapp...Done. Stopping service webapp...Done. Stopping stats...Done. Stopping mta...Done. Stopping spell...Done. Stopping snmp...Done. Stopping cbpolicyd...Done. Stopping archiving...Done. Stopping opendkim...Done. Stopping amavis...Done. Stopping antivirus...Done. Stopping antispam...Done. Stopping proxy...Done. Stopping memcached...Done. Stopping mailbox...Done. Stopping convertd...Done. Stopping logger...Done. Stopping dnscache...Done. Stopping ldap...Done. Host zimbra.jbindia.co.in Starting ldap...Done. Starting zmconfigd...Done. Starting logger...Done. Starting convertd...Done. Starting mailbox...Done. Starting amavis...Done. Starting antispam...Done. Starting antivirus...Done. Starting opendkim...Done. Starting snmp...Done. Starting spell...Done. Starting mta...Done. Starting stats...Done. Starting service webapp...Done. Starting zimbra webapp...Done. Starting zimbraAdmin webapp...Done. Starting zimlet webapp...Done.

# [zimbra@zimbra ~]$ zmcontrol -v

Release 8.6.0_GA_1153.RHEL7_64_20141215151204 RHEL7_64 NETWORK edition, Patch 8.6.0_P5.

Jbindia User migration process:

1. Get all user account password from old qmail server by below command,

# cat /home/vpopmail/domains/jbindia.co.in/vpasswd

and make userlist file in below format,

username;password


2. Run the below script and sync all mails to new zimbra server.

#!/bin/bash
   logfile="sinklog.txt"
   host1=192.168.0.227    # host1 is Source
   host2=192.168.0.228    # host2 is Dest
   domain=jbindia.co.in          # domain is where email account is
                            # everything after @ symbol
   ###### Do not modify past here ######
   date=`date +%X_-_%x`
   echo "" >> $logfile
   echo "------------------------------------" >> $logfile
   echo "IMAPSync started..  $date" >> $logfile
   echo "" >> $logfile
   { while IFS=';' read  u1 p1; do
           user=$u1"@"$domain
            echo "Syncing User $user"
           date=`date +%X_-_%x`
           echo "Start Syncing User $u1"
           echo "Starting $u1 $date" >> $logfile
imapsync --buffersize 8192000 --nosyncacls --syncinternaldates  --delete2 --subscribe_all --useuid --nofoldersizes  --host1 $host1 --user1 "$user" --password1  "$p1" --host2 $host2 --user2 "$user" --password2 "$p1"
imapsync --buffersize 8192000 --nosyncacls --syncinternaldates --subscribe_all --useuid --nofoldersizes  --host1 $host1 --user1 "$user" --password1  "$p1" --host2 $host2 --user2 "$user" --password2 "$p1"


           date=`date +%X_-_%x`
           echo "User $user done"
           echo "Finished $user $date" >> $logfile
           echo "" >> $logfile
           done ; } < userlist.txt
   date=`date +%X_-_%x`
   echo "" >> $logfile
   echo "IMAPSync Finished..  $date" >> $logfile
   echo "------------------------------------" >> $logfile


JBIndia user migration process:

3. Make entry in DNS for zimbra.jbindia.co.in in qmail old server.

4. Make zimbra.jbindia.co.in as alias of jbindia.co.in by below command,

# zmprov createAliasDomain zimbra.jbindia.co.in jbindia.co.in zimbraMailCatchAllForwardingAddress @jbindia.co.in

5. Go manage >> account >> then advance option in every account and make below entry,

smtp:192.168.0.227:25

6. then start migration of one by one user,

A. Fist make forwording for that perticular user like below in qmail server,

user@zimbra.jbindia.co.in

B. then go to manage >> accout >> advance in zimbra server and change smtp:192.168.0.227:25 to lmtp:zimbra.jbindia.co.in:7025


C. Then run imapsync script again.

D. Do this for all user one by one.