Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Migration

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-20-2009, 06:48 PM
Trained Alumni
 
Posts: 51
Exclamation Zimbra to Zimbra migration

We need to migrate mailboxes from one zimbra install to a remote one. I can't do a backup/restore or rsync method as the remote has it's own LDAP and settings it must maintain and I can't overwrite that. I've read all the migration stuff I could find. Looked into zmztozmig, REST, zmmailbox options. So I think I have a plan for the actual data move. However all of these require the accounts/domains to be pre-created on the target server. Ok, no problem there either - can bulk provision those. HOWEVER, what I can't find is how to capture the password on the source in order to set it up on the target. Will that get set when the tgz is loaded by zmztozmig or REST or zmmailbox? If not, how do I get it from the source to target account? In other words how do I pull it out of the existing Zimbra install in order to set it up on the target?

We need to make this a seamless migration for the users. It will involve changing DNS and such in order to point them to the new remote servers. We don't want them to have to change anything - just log into the new servers without knowing and finding their mailboxes.

Please advise.
Reply With Quote
  #2 (permalink)  
Old 08-20-2009, 07:33 PM
raj raj is offline
Moderator
 
Posts: 768
Default

you need to extrat all the "userPassword" fields for each user in zimbra..
once you have the list you can create it on target server using
* zimbra passwords are in hash..you dont need to know what they are..you can just MOVE the HASH to target. i.e.:

zmprov ca user@domain displayName MyName userPassword '{crypt}kiV2nC14UfcK6'

i think zimbra takes all the stuff openLDAP can take for example..
userPassword: {SHA}OAPD3WRiNcowtGILlMmgqW7EbQ8=
userPassword: {MD5}f0llSo0iGQ1hq3E1L5RP1Q==
userPassword: {crypt}kiV2nC14UfcK6

once all the users are created you can imapsync the mails..there are ways on fourm to migrate email without knowing the password using admin passwords.

Raj
__________________
i2k2 Networks
Dedicated & Shared Zimbra Hosting Provider
Reply With Quote
  #3 (permalink)  
Old 08-24-2009, 04:36 AM
Trained Alumni
 
Posts: 51
Default

Excellent, that did the trick! One last question on this, if I create the accounts via the new bulk provision tool, can I set the password directly there via this method or do I have to go back and zmprov ma to do that?
Reply With Quote
  #4 (permalink)  
Old 08-24-2009, 06:20 AM
raj raj is offline
Moderator
 
Posts: 768
Default

u should use the scripting using ZMPROV for maximum control and that way you use only one thing to create stuff.
bulk provisioning will not give you lot of control

* can you document here in few lines how you extracted the hash for users in existing zimbra.

Raj
__________________
i2k2 Networks
Dedicated & Shared Zimbra Hosting Provider
Reply With Quote
  #5 (permalink)  
Old 08-24-2009, 06:28 AM
Trained Alumni
 
Posts: 51
Default

I tried several different attempts at zmprov ga to get the password including -z to no avail - always said "VALUE BLOCKED". However, when I physically went on the LDAP server and tried it, I was able to pull it out directly with zmprov ga.

Is that what you were looking for?
Reply With Quote
  #6 (permalink)  
Old 08-24-2009, 07:31 AM
raj raj is offline
Moderator
 
Posts: 768
Default

yes i dont see a documented process to extarct user pass hash using commandline for migrations..
can you please do that..i can create wiki from it once i have all info

Raj
__________________
i2k2 Networks
Dedicated & Shared Zimbra Hosting Provider
Reply With Quote
  #7 (permalink)  
Old 08-24-2009, 10:58 AM
Special Member
 
Posts: 126
Default

Quote:
Originally Posted by raj View Post
yes i dont see a documented process to extarct user pass hash using commandline for migrations..

Raj
Would be great if you guys could figure that out.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.