Zimbra Suite Plus/Zimbra Backup Plus/Moving a mailbox between two mailboxd servers

Revision as of 10:30, 3 September 2016 by Jorge de la Cruz (talk | contribs) (Created page with "<div class="col-md-12"><br></div> <div class="col-md-12"><br></div> <ol class="breadcrumb"> <li>Zimbra Wiki</li> <li>Zimbra_Suite_Plus</li> <li>Zimbr...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.



Zimbra Backup Plus - Moving a mailbox between two mailboxd servers

Zimbra Backup Plus - Moving a mailbox between two mailboxd servers

Moving a mailbox between two different mailboxd servers

This little guide will walk through the steps required to move a mailbox between different mailboxd servers in a Zimbra infrastructure using Zimbra Backup Plus.

Please note that this is just a "workaround" that will lead to a very small downtime for the mailbox being moved, and that a proper "move mailbox" feature will be added to Zimbra Suite Plus in the future.

Naming

For clarity purpouses, the following naming will be used in the guide:

  • account@domain.com : Fictional name for the mailbox to be moved
  • "Original Mailbox": The mailbox to be moved
  • "New Mailbox": The resulting mailbox
  • "Original Server": The server on which the mailbox was originally hosted
  • "New Server": The server on which the mailbox will be moved

Important Warning

Template:WarningBoxxy

Requirements

  • Zimbra Backup Plus is required in order to proceed. The Realtime Scanner engine must be active and functional (during part of the process it will be disabled and it will then be re-enabled).
  • The backup path of the Original Server must be mounted on the New Server and the 'zimbra' user on the destination server must have r/w access to it.
  • It's very important that no Scan operations are started during the move.

Step-by-step guide

  • Log into the Original Server's shell and switch to the 'zimbra' user
  • STOP the Real Time Scanner
 zxsuite backup setProperty ZxBackup_RealTimeScanner false
  • Run an Account Scan on the Original Account
 zxsuite backup doAccountScan account@domain.com
  • Rename the original account to a provisional name
 zmprov ra account@domain.com account_old@domain.com 
  • Log into the Destination Server's shell and switch to the 'zimbra' user
  • Start an "External Restore" using the original account name and specifying the original server's backup path as the source path. It's important to use all the "skip" directives described.
 zxsuite backup doExternalRestore /path/to/originalserver/backup/ accounts user@domain.com skip_aliases true skip_system_accounts true skip_distribution_lists true skip_coses true
  • Once the restore is completed, remove any existing aliases from the original mailbox
  • Flush Zimbra's cache on both servers (failing to do so might lead to "Alias already existing" during the next step)
 zmprov fc all
  • Create all due aliases on the new mailbox
  • Finally, re-start the Realtime Scanner
 zxsuite backup setProperty ZxBackup_RealTimeScanner true

Zimbra Suite Plus Resources

Here you can find useful resources for your Zimbra Suite Plus environment



Try Zimbra

Try Zimbra Collaboration with a 60-day free trial.
Get it now »

Want to get involved?

You can contribute in the Community, Wiki, Code, or development of Zimlets.
Find out more. »

Looking for a Video?

Visit our YouTube channel to get the latest webinars, technology news, product overviews, and so much more.
Go to the YouTube channel »

Jump to: navigation, search