Results 1 to 7 of 7

Thread: Zimbra to Zimbra migration

  1. #1
    Join Date
    Aug 2006
    Location
    Austin, TX
    Posts
    51
    Rep Power
    9

    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.

  2. #2
    Join Date
    Oct 2005
    Location
    USA, Canada and India
    Posts
    777
    Rep Power
    10

    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

  3. #3
    Join Date
    Aug 2006
    Location
    Austin, TX
    Posts
    51
    Rep Power
    9

    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?

  4. #4
    Join Date
    Oct 2005
    Location
    USA, Canada and India
    Posts
    777
    Rep Power
    10

    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

  5. #5
    Join Date
    Aug 2006
    Location
    Austin, TX
    Posts
    51
    Rep Power
    9

    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?

  6. #6
    Join Date
    Oct 2005
    Location
    USA, Canada and India
    Posts
    777
    Rep Power
    10

    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

  7. #7
    Join Date
    Apr 2007
    Location
    Los Gatos, CA
    Posts
    138
    Rep Power
    8

    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.

Similar Threads

  1. postfix relay=none status=bounced for local mails
    By vdd in forum Administrators
    Replies: 1
    Last Post: 08-06-2009, 08:05 AM
  2. [SOLVED] Clamav problem ? What's happening ?
    By aNt1X in forum Installation
    Replies: 23
    Last Post: 02-14-2008, 04:43 AM
  3. Replies: 31
    Last Post: 12-15-2007, 08:05 PM
  4. Replies: 22
    Last Post: 12-02-2007, 04:05 PM
  5. Replies: 16
    Last Post: 09-07-2006, 06:39 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •