{"id":1168,"date":"2012-10-01T17:13:15","date_gmt":"2012-10-01T16:13:15","guid":{"rendered":"http:\/\/blog.spanger.org\/?p=1168"},"modified":"2013-02-01T15:32:48","modified_gmt":"2013-02-01T14:32:48","slug":"zimbra-migration-from-centos-5-8-32bit-to-ubuntu-10-04-64bit","status":"publish","type":"post","link":"https:\/\/blog.spanger.org\/?p=1168","title":{"rendered":"Zimbra migration from 7 to 8 + 32 bit to 64 bit server"},"content":{"rendered":"<p><strong>WHAT IS THE GOAL<\/strong><\/p>\n<p>Migrate Zimbra 7 (mailboxes, documents,&#8230;) to new 64 bit server with Zimbra 8.0.<\/p>\n<p>STEP BY STEP GUIDE<\/p>\n<p><strong>1. PREPARE OLD SERVER<\/strong><\/p>\n<p>name: mail.domain.tld<br \/>\nOS: Centos 5.8 32 bit<br \/>\nZimbra: Zimbra 7.2.0<\/p>\n<pre>\r\n<code>[zimbra@oldserver ~]$ cat \/etc\/redhat-release <\/code>\r\n<code>CentOS release 5.8 (Final) <\/code>\r\n\r\n<code>[zimbra@oldserver ~]$ zmcontrol -v <\/code>\r\n<code>Release 7.2.0_GA_2669.RHEL5_20120410001957 CentOS5 FOSS edition.<\/code>\r\n<\/pre>\n<p>UPGRADE to latest zimbra for Centos 5.8(ZIMBRA 7.2.1)<\/p>\n<pre>\r\n# wget http:\/\/files2.zimbra.com\/downloads\/7.2.1_GA\/zcs-7.2.1_GA_2790.RHEL5.20120815212042.tgz \r\n# tar xvzf zcs-7.2.1_GA ...\r\n# cd zcs-7.2.1_GA ...\r\n# .\/install \u2013platform-override\r\n<\/pre>\n<p>ERROR<\/p>\n<p>Do you want to verify message store database integrity? [Y]<br \/>\nVerifying integrity of message store databases. This may take a while.<\/p>\n<p>mysqld is alive<\/p>\n<p>Database errors found.<\/p>\n<p>\/opt\/zimbra\/mysql\/bin\/mysqlcheck &#8211;defaults-file=\/opt\/zimbra\/conf\/my.cnf -S \/opt\/zimbra\/db\/mysql.sock -A -C -s -u root &#8211;auto-repair &#8211;password=XXXXXXXX<\/p>\n<p>mysql.general_log<br \/>\nError : You can&#8217;t use locks with log tables.<br \/>\nmysql.slow_log<br \/>\nError : You can&#8217;t use locks with log tables.<\/p>\n<p>This is a bug in mysql and does no hurm !!!<\/p>\n<p>Upgrade was successfull. \ud83d\ude42<\/p>\n<p>Show new zimbra version:<\/p>\n<pre>\r\n[zimbra@oldserver ~]$ zmcontrol -v \r\nRelease 7.2.1_GA_2790.RHEL5_20120815212042 CentOS5 FOSS edition.<\/pre>\n<p>Create backup directory for LDAP<\/p>\n<pre>\r\n<code># mkdir \/backup # chown zimbra:zimbra \/backup<\/code><\/pre>\n<p>Backup LDAP<\/p>\n<pre>\r\n<code>[zimbra@oldserver ~]$ \/opt\/zimbra\/libexec\/zmslapcat -c \/backup <\/code>\r\n<code>[zimbra@oldserver ~]$ \/opt\/zimbra\/libexec\/zmslapcat \/backup<\/code>\r\n<\/pre>\n<p>BACKUP localconfig.xml<\/p>\n<pre><code>[zimbra@oldserver ~]$ cp \/opt\/zimbra\/conf\/localconfig.xml \/backup<\/code><\/pre>\n<p>Change IP ADDRESS<\/p>\n<pre>\r\n<code>[root@oldserver ~]# vim \/etc\/sysconfig\/network-scripts\/ifcfg-eth0 <\/code>\r\n<code>change IP to something else<\/code><\/pre>\n<p>Change HOSTNAME<\/p>\n<pre>\r\n<code># vim \/etc\/hostname <\/code>\r\n<code># vim \/etc\/hosts <\/code>\r\n<code>change IP and hostname<\/code>\r\n<\/pre>\n<p>Save mail address for SPAM and HAM accounts<\/p>\n<pre>\r\n<code>[zimbra@mail ~]$ zmprov gacf | grep -i spamis <\/code>\r\n<code>zimbraSpamIsNotSpamAccount: ham.r4qmxkaq4@domain.tld <\/code>\r\n<code>zimbraSpamIsSpamAccount: spam.ydhu3gfxuh@domain.tld <\/code>\r\n<code>zimbraAmavisQuarantineAccount: virus-quarantine.jllqjtji@domain.tld<\/code>\r\n<\/pre>\n<p><strong>2. PREPARE NEW SERVER<\/strong><\/p>\n<p>name: mail.domain.tld<br \/>\nOS: Ubuntu 10.04 TLS 64bit<br \/>\nZimbra: Zimbra 8.0 (first install 7.2.1)<\/p>\n<p>Install Ubuntu server 10.04 LTS (minimal install + ssh server)<\/p>\n<p>Create separate partition \/opt for zimbra installation (size depend on size and quantity of mailboxes)<\/p>\n<p>Use old mailserver hostname and IP adress<\/p>\n<pre>\r\n<code># vim \/etc\/hostname<code>\r\n<code>mail<\/code>\r\n<\/pre>\n<p>Prepare HOSTS file !!!<\/p>\n<pre># vim \/etc\/hosts\r\n127.0.0.1 localhost\r\n192.168.1.X mail.domain.tld mail<\/pre>\n<p>Setup SSH<\/p>\n<pre># vim \/etc\/ssh\/sshd_config\r\nAllowUsers zimbra \u2190 add this line at the end<\/pre>\n<p>Download ZIMBRA 7.2.1<\/p>\n<pre># wget http:\/\/files2.zimbra.com\/downloads\/7.2.1_GA\/zcs-7.2.1_GA_2790.UBUNTU10_64.20120815212201.tgz<\/pre>\n<p>Untar Zimbra<\/p>\n<pre># tar xvzf zcs-7.2.1...<\/pre>\n<p>Install ZIMBRA 7.2.1 to the NEW SERVER<\/p>\n<pre># cd zcs-7.2.1...\r\n# .\/install.sh\r\n... <\/pre>\n<p>DNS ERROR resolving MX for mail.domain.tld<br \/>\nIt is suggested that the domain name have an MX record configured in DNS<br \/>\nChange domain name? [Yes]<br \/>\nCreate domain: [mail.domain.tld] domain.tld<br \/>\nCreate domain: [mail.domain.tld] domain.tld<br \/>\nMX: mail.domain.tld (192.168.10.7)<br \/>\nInterface: 192.168.10.7<br \/>\nInterface: 127.0.0.1<\/p>\n<p>done.<\/p>\n<p>Checking for port conflicts<\/p>\n<p>Main menu<\/p>\n<p>1) Common Configuration:<br \/>\n2) zimbra-ldap: Enabled<br \/>\n3) zimbra-store: Enabled<br \/>\n+Create Admin User: yes<br \/>\n+Admin user to create: admin@domain.tld<br \/>\n******* +Admin Password UNSET<br \/>\n+Anti-virus quarantine user: virus-quarantine.lsmlhshnmy@domain.tld<br \/>\n+Enable automated spam training: yes<br \/>\n+Spam training user: spam.wyqzbievu@domain.tld<br \/>\n+Non-spam(Ham) training user: ham.vccas9hrzf@domain.tld<br \/>\n+SMTP host: mail.domain.tld<br \/>\n+Web server HTTP port: 80<br \/>\n+Web server HTTPS port: 443<br \/>\n+Web server mode: http<br \/>\n+IMAP server port: 143<br \/>\n+IMAP server SSL port: 993<br \/>\n+POP server port: 110<br \/>\n+POP server SSL port: 995<br \/>\n+Use spell check server: yes<br \/>\n+Spell server URL: http:\/\/mail.domain.tld:7780\/aspell.php<br \/>\n+Configure for use with mail proxy: FALSE<br \/>\n+Configure for use with web proxy: FALSE<br \/>\n+Enable version update checks: TRUE<br \/>\n+Enable version update notifications: TRUE<br \/>\n+Version update notification email: admin@domain.tld<br \/>\n+Version update source email: admin@domain.tld<br \/>\n4) zimbra-mta: Enabled<br \/>\n5) zimbra-snmp: Enabled<br \/>\n6) zimbra-logger: Enabled<br \/>\n7) zimbra-spell: Enabled<br \/>\n8) Default Class of Service Configuration:<br \/>\nr) Start servers after configuration yes<br \/>\ns) Save config to file<br \/>\nx) Expand menu<br \/>\nq) Quit<\/p>\n<p>CHANGE admin password \u2026<\/p>\n<p>4) Admin Password set<\/p>\n<p>CHANGE antivirus quarantine user from old server.<\/p>\n<p>5) Anti-virus quarantine user: virus-quarantine.jllqjtji@domain.tld<\/p>\n<p>CHANGE spam training user from old server.<\/p>\n<p>7) Spam training user: spam.ydku3gfyuh@domain.tld<\/p>\n<p>CHANGE ham training user from old server.<\/p>\n<p>8) Non-spam(Ham) training user: ham.r4ujxkaq4@domain.tld<\/p>\n<p>*** CONFIGURATION COMPLETE - press 'a' to apply<br \/>\nSelect from menu, or press 'a' to apply config (? - help) a<br \/>\nSave configuration data to a file? [Yes]<br \/>\n...<\/p>\n<p>As zimbra user do:<\/p>\n<pre>zmcontrol stop\r\nrm -rf \/opt\/zimbra\/data\/ldap\/config\/*\r\nrm -rf \/opt\/zimbra\/data\/ldap\/hdb\/*\r\nmkdir -p \/opt\/zimbra\/data\/ldap\/hdb\/db \/opt\/zimbra\/data\/ldap\/hdb\/logs<\/pre>\n<pre># chown -R zimbra:zimbra \/opt\/zimbra\/data\/ldap<\/pre>\n<p><strong>3. COPY DATA TO NEW SERVER<\/strong><\/p>\n<p>Copy DB_CONFIG from old server to new server<\/p>\n<pre># scp \/opt\/zimbra\/data\/ldap\/hdb\/db\/DB_CONFIG mail:\/opt\/zimbra\/data\/ldap\/hdb\/db\/<\/pre>\n<p>Create BACKUP directory on NEW SERVER<\/p>\n<pre>root@mail:~# mkdir \/backup<\/pre>\n<p>Copy LDAP DATA from OLD SERVER to NEW SERVER<\/p>\n<pre># scp \/backup\/ldap.bak mail:\/backup\/\r\n# scp \/backup\/ldap-config.bak mail:\/backup\/<\/pre>\n<pre>root@mail:~# chown -R zimbra:zimbra \/backup\/<\/pre>\n<p>IMPORT LDAP DATA<\/p>\n<p><code><\/code><\/p>\n<pre>zimbra@mail:~$ \/opt\/zimbra\/openldap\/sbin\/slapadd -q -n 0 -F \/opt\/zimbra\/data\/ldap\/config -cv -l \/backup\/ldap-config.bak\r\nadded: \"cn=config\" (00000001)\r\nadded: \"cn=module{0},cn=config\" (00000001)\r\nadded: \"cn=schema,cn=config\" (00000001)\r\nadded: \"cn={0}core,cn=schema,cn=config\" (00000001)\r\nadded: \"cn={1}cosine,cn=schema,cn=config\" (00000001)\r\nadded: \"cn={2}inetorgperson,cn=schema,cn=config\" (00000001)\r\nadded: \"cn={3}zimbra,cn=schema,cn=config\" (00000001)\r\nadded: \"cn={4}amavisd,cn=schema,cn=config\" (00000001)\r\nadded: \"olcDatabase={-1}frontend,cn=config\" (00000001)\r\nadded: \"olcDatabase={0}config,cn=config\" (00000001)\r\nadded: \"olcDatabase={1}monitor,cn=config\" (00000001)\r\nadded: \"olcDatabase={2}hdb,cn=config\" (00000001)\r\n_#################### 100.00% eta   none elapsed            none fast! \r\nClosing DB...<\/pre>\n<p>IMPORT LDAP CONFIG<\/p>\n<p><code><\/code><\/p>\n<pre>zimbra@mail:~$ \/opt\/zimbra\/openldap\/sbin\/slapadd -q -b \"\" -F \/opt\/zimbra\/data\/ldap\/config -cv -l \/backup\/ldap.bak\r\nadded: \"cn=zimbra\" (00000001)\r\nadded: \"cn=admins,cn=zimbra\" (00000002)\r\nadded: \"uid=zimbra,cn=admins,cn=zimbra\" (00000003)\r\nadded: \"uid=zmreplica,cn=admins,cn=zimbra\" (00000004)\r\nadded: \"cn=appaccts,cn=zimbra\" (00000005)\r\nadded: \"uid=zmnginx,cn=appaccts,cn=zimbra\" (00000006)\r\nadded: \"uid=zmpostfix,cn=appaccts,cn=zimbra\" (00000007)\r\nadded: \"uid=zmamavis,cn=appaccts,cn=zimbra\" (00000008)\r\nadded: \"cn=zimlets,cn=zimbra\" (00000009)\r\nadded: \"cn=cos,cn=zimbra\" (0000000a)\r\nadded: \"cn=servers,cn=zimbra\" (0000000b)\r\nadded: \"cn=xmppcomponents,cn=zimbra\" (0000000c)\r\nadded: \"cn=globalgrant,cn=zimbra\" (0000000d)\r\nadded: \"cn=config,cn=zimbra\" (0000000e)\r\nadded: \"cn=default,cn=cos,cn=zimbra\" (0000000f)\r\nadded: \"cn=mime,cn=config,cn=zimbra\" (00000010)\r\nadded: \"cn=message\/rfc822,cn=mime,cn=config,cn=zimbra\" (00000011)\r\nadded: \"cn=text\/html,cn=mime,cn=config,cn=zimbra\" (00000012)\r\nadded: \"cn=text\/enriched,cn=mime,cn=config,cn=zimbra\" (00000013)\r\nadded: \"cn=text\/plain,cn=mime,cn=config,cn=zimbra\" (00000014)\r\nadded: \"cn=text\/calendar,cn=mime,cn=config,cn=zimbra\" (00000015)\r\nadded: \"cn=all,cn=mime,cn=config,cn=zimbra\" (00000016)\r\nadded: \"cn=mail.domain.tld,cn=servers,cn=zimbra\" (00000017)\r\nadded: \"dc=tld\" (00000018)\r\nadded: \"dc=domain,dc=tld\" (00000019)\r\nadded: \"uid=root,ou=people,dc=domain,dc=tld\" (0000001b)\r\nadded: \"uid=postmaster,ou=people,dc=domain,dc=tld\" (0000001c)\r\nadded: \"cn=conference.mail.domain.tld,cn=xmppcomponents,cn=zimbra\" (0000001d)\r\nadded: \"cn=com_zimbra_adminversioncheck,cn=zimlets,cn=zimbra\" (0000001e)\r\nadded: \"cn=com_zimbra_bulkprovision,cn=zimlets,cn=zimbra\" (0000001f)\r\nadded: \"cn=com_zimbra_ymemoticons,cn=zimlets,cn=zimbra\" (00000020)\r\nadded: \"cn=com_zimbra_cert_manager,cn=zimlets,cn=zimbra\" (00000021)\r\nadded: \"cn=com_zimbra_phone,cn=zimlets,cn=zimbra\" (00000022)\r\nadded: \"cn=com_zimbra_date,cn=zimlets,cn=zimbra\" (00000023)\r\nadded: \"cn=com_zimbra_email,cn=zimlets,cn=zimbra\" (00000024)\r\n\u2026.\r\n#################### 100.00% eta   none elapsed            none fast!         \r\nClosing DB...<\/pre>\n<p>COPY localconfig.xml from OLDSERVER to NEWSERVER<\/p>\n<pre>#  scp \/backup\/localconfig.xml mail:\/backup\/<\/pre>\n<p>EDIT localconfig.xml<\/p>\n<p>BACKUP localconfig.xml on the NEWSERVER<\/p>\n<pre>zimbra@mail:~$ cp \/opt\/zimbra\/conf\/localconfig.xml \/opt\/zimbra\/conf\/localconfig.xml.orig<\/pre>\n<p>EDIT localconfig.xml and change values to values from OLDSERVER<br \/>\n(from \/backup\/localconfig.xml)<br \/>\n...<br \/>\na. zimbra_mysql_password<br \/>\nb. mysql_root_password<br \/>\nc. zimbra_logger_mysql_password (Note: Transfer\/copy this value to the new 64-bit server only if available from the old 32-bit server.)<br \/>\nd. mailboxd_keystore_password (Note: Transfer\/copy this value to the new 64-bit server only if available from the old 32-bit server.)<br \/>\ne. mailboxd_truststore_password<br \/>\nf. mailboxd_keystore_base_password<br \/>\ng. zimbra_ldap_password<br \/>\nh. ldap_root_password<br \/>\ni. ldap_postfix_password<br \/>\nj. ldap_amavis_password<br \/>\nk. ldap_nginx_password<br \/>\nl. ldap_replication_password<\/p>\n<p>REMOVE data from NEW SERVER<\/p>\n<pre>zimbra@mail:~$ rm -rf \/opt\/zimbra\/db\/data\/*<\/pre>\n<p>COPY DATA from OLD SERVER<\/p>\n<pre>[root@oldserver ~]# scp -r \/opt\/zimbra\/db\/data\/* mail:\/opt\/zimbra\/db\/data\/<\/pre>\n<p>Copy MESSAGES and INDEX files from OLD SERVER to NEW SERVER<\/p>\n<pre>[root@oldserver ~]# scp -r \/opt\/zimbra\/store\/* mail:\/opt\/zimbra\/store\/<\/pre>\n<pre><code>[root@oldserver ~]# scp -r \/opt\/zimbra\/index\/* mail:\/opt\/zimbra\/index\/<\/code><\/pre>\n<p>Transfer KEYSTORE<\/p>\n<pre>[root@oldserver ~]# scp \/opt\/zimbra\/mailboxd\/etc\/keystore mail:\/opt\/zimbra\/mailboxd\/etc\/keystore<\/pre>\n<p> + Change keystore PASSWORD<\/p>\n<pre>[zimbra@oldserver ~]$ zmlocalconfig -s mailboxd_keystore_password\r\nmailboxd_keystore_password = oldpassword<\/pre>\n<pre>zimbra@mail:~$ zmlocalconfig -e mailboxd_keystore_password=oldpassword \u2190 use oldpassword<\/pre>\n<p>COPY smtp,ldap,nginx CERTIFICATE and KEY from OLD to NEW server<\/p>\n<pre>\r\n# scp \/opt\/zimbra\/conf\/smtpd.crt mail:\/opt\/zimbra\/conf\/smtpd.crt\r\n# scp \/opt\/zimbra\/conf\/smtpd.key mail:\/opt\/zimbra\/conf\/smtpd.key\r\n# scp \/opt\/zimbra\/conf\/slapd.* mail:\/opt\/zimbra\/conf\/\r\n# scp \/opt\/zimbra\/conf\/nginx.* mail:\/opt\/zimbra\/conf\/\r\n<\/pre>\n<p>COPY ZIMLETS FROM OLD SERVER<\/p>\n<pre>root@mail:~# scp -r root@oldserver:\/opt\/zimbra\/zimlets-deployed\/* \/opt\/zimbra\/zimlets-deployed\/<\/pre>\n<p>FIX PERMISSION as root<\/p>\n<pre>root@mail:~# chown -R zimbra.zimbra \/opt\/zimbra\r\nroot@mail:~# \/opt\/zimbra\/libexec\/zmfixperms<\/pre>\n<p>Start ZIMBRA 7.2.1 on NEW SERVER<\/p>\n<pre>zimbra@mail:~$ zmcontrol start<\/pre>\n<p><strong>FIX ERRORS<\/strong><\/p>\n<p>ERROR 1<\/p>\n<p>Host mail.domain.tld<br \/>\nStarting ldap...Done.<br \/>\nUnable to determine enabled services from ldap.<br \/>\nEnabled services read from cache. Service list may be inaccurate.<br \/>\nStarting zmconfigd...Done.<br \/>\nStarting logger...Failed.<\/p>\n<p>Starting logswatch...ERROR: service.FAILURE (system failure: ZimbraLdapContext) (cause: javax.net.ssl.SSLHandshakeException sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: signature check failed)<\/p>\n<p>zimbra logger service is not enabled! failed.<br \/>\nStarting mailbox...Done.<br \/>\nStarting antispam...Done.<br \/>\nStarting antivirus...Failed.<br \/>\nStarting amavisd...Config file \"\/opt\/zimbra\/conf\/amavisd.conf\" does not exist, at \/opt\/zimbra\/amavisd\/sbin\/amavisd line 1799.<br \/>\nfailed.<\/p>\n<p>Starting freshclam...done.<br \/>\nStarting clamd...ERROR: Can't open\/parse the config file \/opt\/zimbra\/conf\/freshclam.conf<br \/>\nfailed.<br \/>\nStarting snmp...Done.<br \/>\nStarting spell...Done.<br \/>\nStarting mta...Failed.<br \/>\nStarting saslauthd...saslauthd[8646] :set_auth_mech : failed to initialize mechanism zimbra<\/p>\n<p>failed.<br \/>\nzmsaslauthdctl failed to start<br \/>\nStarting stats...Done.<\/p>\n<p>SOLUTION 1<\/p>\n<pre>\r\n[root@oldserver ~]# scp \/opt\/zimbra\/conf\/amavisd.conf mail:\/opt\/zimbra\/conf\/\r\n[root@oldserver ~]# scp \/opt\/zimbra\/conf\/freshclam.conf mail:\/opt\/zimbra\/conf\/\r\nroot@mail:~# \/opt\/zimbra\/libexec\/zmfixperms \u2190 fix permission\r\n<\/pre>\n<p>ERROR 2<\/p>\n<p>Starting logswatch...ERROR: service.FAILURE (system failure: ZimbraLdapContext) (cause: javax.net.ssl.SSLHandshakeException sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: signature check failed)<br \/>\nzimbra logger service is not enabled!  Failed.<\/p>\n<p>SOLUTION 2<\/p>\n<p>CREATE CERTIFICATES<\/p>\n<p><code><\/code><\/p>\n<pre># sh reg-ssl-zimbra.sh \u2190 run script as root\r\n\r\nscript to regenerate certificate\r\n***********************************************************************************\r\n#!\/bin\/bash\r\n################################################################################################################\r\n# Regenerate SSL Cert\r\n################################################################################################################\r\nsu - zimbra -c 'zmcontrol stop'\r\nrm -rf \/opt\/zimbra\/ssl\/*\r\nrm -rf \/opt\/zimbra\/ssl\/.rnd\r\n\/opt\/zimbra\/java\/bin\/keytool -delete -alias my_ca -keystore \/opt\/zimbra\/java\/jre\/lib\/security\/cacerts -storepass changeit\r\n\/opt\/zimbra\/java\/bin\/keytool -delete -alias jetty -keystore \/opt\/zimbra\/mailboxd\/etc\/keystore -storepass `su - zimbra -c 'zmlocalconfig -s -m nokey mailboxd_keystore_password'`\r\nvi  \/opt\/zimbra\/bin\/zmcertmgr\r\n\r\n# Find line \r\n# SUBJECT=\"\/C=US\/ST=N\\\/A\/L=N\\\/A\/O=Zimbra Collaboration Suite\/OU=Zimbra Collaboration Suite\/CN=${zimbra_server_hostname}\" \r\n# and change to your company name\r\n\r\n# then find and change you want value days expire cert validation_days=365 to validation_days=3650\r\n# save \/opt\/zimbra\/bin\/zmcertmgr\r\n\r\n\/opt\/zimbra\/bin\/zmcertmgr createca -new\r\n\/opt\/zimbra\/bin\/zmcertmgr deployca -localonly\r\n\/opt\/zimbra\/bin\/zmcertmgr createcrt self -new\r\n\/opt\/zimbra\/bin\/zmcertmgr deploycrt self\r\n\r\nsu - zimbra -c 'zmcontrol start'\r\n\r\n\/opt\/zimbra\/bin\/zmcertmgr deploycrt self\r\n\/opt\/zimbra\/bin\/zmcertmgr deployca\r\n\r\nsu - zimbra -c 'zmupdateauthkeys'\r\n\/opt\/zimbra\/bin\/zmcertmgr viewdeployedcrt\r\n### End Script **********************************************************************<\/pre>\n<p>......<\/p>\n<p>Host mail.domain.tld<br \/>\nStarting ldap...Done.<br \/>\nStarting zmconfigd...Done.<br \/>\nStarting logger...Done.<br \/>\nStarting mailbox...Done.<br \/>\nStarting antispam...Done.<br \/>\nStarting antivirus...Done.<br \/>\nStarting snmp...Done.<br \/>\nStarting spell...Done.<br \/>\nStarting mta...Done.<br \/>\nStarting stats...Done.<\/p>\n<p>** Saving server config key zimbraSSLCertificate...done.<br \/>\n** Saving server config key zimbraSSLPrivateKey...done.<br \/>\n** Installing mta certificate and key...done.<br \/>\n** Installing slapd certificate and key...done.<br \/>\n** Installing proxy certificate and key...done.<br \/>\n** Creating pkcs12 file \/opt\/zimbra\/ssl\/zimbra\/jetty.pkcs12...done.<br \/>\n** Creating keystore file \/opt\/zimbra\/mailboxd\/etc\/keystore...done.<br \/>\n** Installing CA to \/opt\/zimbra\/conf\/ca...done.<br \/>\n** Importing CA \/opt\/zimbra\/ssl\/zimbra\/ca\/ca.pem into CACERTS...done.<br \/>\n** Saving global config key zimbraCertAuthorityCertSelfSigned...done.<br \/>\n** Saving global config key zimbraCertAuthorityKeySelfSigned...done.<br \/>\n** Copying CA to \/opt\/zimbra\/conf\/ca...done.<br \/>\nUpdating keys for mail.domain.tld<br \/>\nFetching key for mail.domain.tld<br \/>\nUpdating keys for mail.domain.tld<br \/>\nUpdating \/opt\/zimbra\/.ssh\/authorized_keys<\/p>\n<p>::service mta::<\/p>\n<p>notBefore=Sep 30 13:19:52 2012 GMT<br \/>\nnotAfter=Sep 29 13:19:52 2017 GMT<br \/>\nsubject= \/C=US\/ST=N\/A\/O=ClickME\/OU=IT\/CN=mail.domain.tld<br \/>\nissuer= \/C=US\/ST=N\/A\/L=N\/A\/O=ClickME\/OU=IT\/CN=mail.domain.tld<br \/>\nSubjectAltName=<\/p>\n<p>::service proxy::<\/p>\n<p>notBefore=Sep 30 13:19:52 2012 GMT<br \/>\nnotAfter=Sep 29 13:19:52 2017 GMT<br \/>\nsubject= \/C=US\/ST=N\/A\/O=ClickME\/OU=IT\/CN=mail.domain.tld<br \/>\nissuer= \/C=US\/ST=N\/A\/L=N\/A\/O=ClickME\/OU=IT\/CN=mail.domain.tld<br \/>\nSubjectAltName=<\/p>\n<p>::service mailboxd::<\/p>\n<p>notBefore=Sep 30 13:19:52 2012 GMT<br \/>\nnotAfter=Sep 29 13:19:52 2017 GMT<br \/>\nsubject= \/C=US\/ST=N\/A\/O=ClickME\/OU=IT\/CN=mail.domain.tld<br \/>\nissuer= \/C=US\/ST=N\/A\/L=N\/A\/O=ClickME\/OU=IT\/CN=mail.domain.tld<br \/>\nSubjectAltName=<\/p>\n<p>::service ldap::<\/p>\n<p>notBefore=Sep 30 13:19:52 2012 GMT<br \/>\nnotAfter=Sep 29 13:19:52 2017 GMT<br \/>\nsubject= \/C=US\/ST=N\/A\/O=ClickME\/OU=IT\/CN=mail.domain.tld<br \/>\nissuer= \/C=US\/ST=N\/A\/L=N\/A\/O=ClickME\/OU=IT\/CN=mail.domain.tld<br \/>\nSubjectAltName=<\/p>\n<p>ERROR 3<\/p>\n<p>Message: system failure: Cannot WRITE index directory (mailbox=6 idxPath=\/opt\/zimbra\/index\/0\/6\/index\/0) Error code: service.FAILURE Method: [unknown] Details:soap:Receiver<\/p>\n<p>SOLUTION 3<\/p>\n<pre># chown -R zimbra.zimbra \/opt\/zimbra\r\n# \/opt\/zimbra\/libexec\/zmfixperms<\/pre>\n<p>ERROR 4<\/p>\n<p>Click to MAILQUEUE on WEB CONSOLE produce:<\/p>\n<p>Message: system failure: exception during auth {RemoteManager: mail.domain.tld-&gt;zimbra@mail.domain.tld:22} Error code: service.FAILURE Method: [unknown] Details:soap:Receiver<\/p>\n<p>Message: system failure: exception during auth {RemoteManager: mail.domain.tld-&gt;zimbra@mail.domain.tld:22} Error code: service.FAILURE Method: [unknown] Details:soap:Receiver<\/p>\n<p>SOLUTION 4 ???<\/p>\n<p>zimbra@mail:~$ zmprov ms mail.domain.tld zimbraRemoteManagementPort 22<\/p>\n<p>PROBABLY INTERFACES FILE !!!!<\/p>\n<p>There was no gateway in \/etc\/network\/interfaces<\/p>\n<p>add gateway 192.168.1.1<\/p>\n<p>After I changed interfaces file, restart network with<\/p>\n<p># service networking restart<\/p>\n<p>Pay attention at hosts file !!!<\/p>\n<pre>zimbra@mail:~$ cat \/etc\/hosts\r\n127.0.0.1      localhost\r\n192.168.1.X    mail.domain.tld   mail<\/pre>\n<p>NOW everything works fine.<\/p>\n<p>Test MAIL SERVER by sending and receiving mail.<\/p>\n<p><strong>4. UPGRADE TO ZIMBRA 8.0<\/strong><\/p>\n<p>Download new Zimbra<\/p>\n<pre># wget http:\/\/files2.zimbra.com\/downloads\/8.0.0_GA\/zcs-8.0.0_GA_5434.UBUNTU10_64.20120907144627.tgz<\/pre>\n<p>Unpack ...<\/p>\n<pre># tar xvzf zcs-8.0.0_GA_5434.UBUNTU10_64.20120907144627.tgz <\/pre>\n<p>Install zimbra ... <\/p>\n<pre># cd zcs-8.0.0_GA_5434.UBUNTU10_64.20120907144627\r\n# screen .\/install.sh<\/pre>\n<p>\u2026.<\/p>\n<p>Starting mysql...done.<br \/>\nERROR 1133 (42000) at line 2: Can't find any matching row in the user table<br \/>\nERROR 1396 (HY000) at line 1: Operation DROP USER failed for ''@'mail'<\/p>\n<p><strong><i>Zimbra 8.0 now works. \ud83d\ude42<\/i><\/strong><\/p>\n<p>Check running SERVICES;<\/p>\n<pre># netstat -tupane | less\r\n\r\ntcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 0 105652 23807\/sshd\r\ntcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 0 310009 19028\/master\r\ntcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 0 321441 23103\/java\r\ntcp 0 0 0.0.0.0:7071 0.0.0.0:* LISTEN 0 321442 23103\/java\r\ntcp 0 0 0.0.0.0:7072 0.0.0.0:* LISTEN 0 321443 23103\/java\r\ntcp 0 0 0.0.0.0:993 0.0.0.0:* LISTEN 0 321436 23103\/java\r\ntcp 0 0 0.0.0.0:995 0.0.0.0:* LISTEN 0 321432 23103\/java\r\n<\/pre>\n<p>Setup a FIREWALL:<\/p>\n<pre># ufw allow proto tcp from 192.168.1.0\/24 to any port 22\r\n# ufw allow proto tcp from 192.168.1.0\/24 to any port 7071\r\n# ufw allow proto tcp from 192.168.1.0\/24 to any port 7072\r\n# ufw allow proto tcp from any to any port 25\r\n# ufw allow proto tcp from any to any port 443\r\n# ufw allow proto tcp from any to any port 993\r\n# ufw enable\r\n# ufw logging on\r\n<\/pre>\n<p>HELP from Zimbra wiki:<\/p>\n<p>http:\/\/wiki.zimbra.com\/wiki\/Platform_and_OS_Independent_ZCS_to_ZCS_Migration_Using_Rsync<br \/>\nhttp:\/\/wiki.zimbra.com\/wiki\/Network_Edition:_Moving_from_32-bit_to_64-bit_Server<br \/>\nhttp:\/\/wiki.zimbra.com\/wiki\/Server_Live_sync<\/p>\n","protected":false},"excerpt":{"rendered":"<p>WHAT IS THE GOAL Migrate Zimbra 7 (mailboxes, documents,&#8230;) to new 64 bit server with Zimbra 8.0. STEP BY STEP GUIDE 1. PREPARE OLD SERVER name: mail.domain.tld OS: Centos 5.8 32 bit Zimbra: Zimbra 7.2.0 [zimbra@oldserver ~]$ cat \/etc\/redhat-release CentOS release 5.8 (Final) [zimbra@oldserver ~]$ zmcontrol -v Release 7.2.0_GA_2669.RHEL5_20120410001957 CentOS5 FOSS edition. UPGRADE to latest [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,31],"tags":[95,125,21,66,124],"class_list":["post-1168","post","type-post","status-publish","format-standard","hentry","category-linux-stuff","category-zimbra","tag-centos","tag-migration","tag-ubuntu","tag-zimbra-7","tag-zimbra-8"],"_links":{"self":[{"href":"https:\/\/blog.spanger.org\/index.php?rest_route=\/wp\/v2\/posts\/1168","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.spanger.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.spanger.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.spanger.org\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.spanger.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1168"}],"version-history":[{"count":123,"href":"https:\/\/blog.spanger.org\/index.php?rest_route=\/wp\/v2\/posts\/1168\/revisions"}],"predecessor-version":[{"id":1435,"href":"https:\/\/blog.spanger.org\/index.php?rest_route=\/wp\/v2\/posts\/1168\/revisions\/1435"}],"wp:attachment":[{"href":"https:\/\/blog.spanger.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1168"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.spanger.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1168"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.spanger.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1168"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}