This procedure can be used anytime messages need to be migrated from one messaging server to a different messaging server. It is useful for migrating IMAP mailboxes from a non-Sun Messaging Server to the Sun Java System Messaging Server. Consider the advantages and disadvantages before moving mailboxes using this method.
The advantages of moving mailboxes using the MoveUser command are as follows:
System administrators have complete responsibility for moving mailboxes from the old system to the new system. Users do not have to do anything.
Works with any IMAP servers.
The disadvantages of moving mailboxes using the MoveUser command are as follows:
Requires that both the old and new systems be simultaneously running and accessible to users.
This method takes longer to move mailboxes than the other non-IMAP methods.
Users access to mailboxes must be disabled while mailboxes are being moved.
The size of the new message store will be significantly larger than the old message store until the re-linking operation is performed.
Install and configure the new Messaging Server.
Set local.store.relinker.enabled to yes.
This will reduce the message store size on the new system caused by duplicate storage of identical messages. See 20.11.7 Reducing Message Store Size Due to Duplicate Storage of Identical Messages for more information.
Halt incoming mail to the messaging servers.
Set the user attribute mailUserStatus to hold .
Provision users on the new Messaging Server if needed.
If you are migrating from a previous version of messaging server, you can use the same LDAP directory and server. MoveUser changes the mailhost attribute in each user entry.
Run the MoveUser command.
To move all users from host1 to host2, based on account information in the Directory Server siroe.com:
MoveUser -l \ "ldap://siroe.com:389/o=siroe.com???(mailhost=host1.domain.com)" \ -D "cn=Directory Manager" -w password -s host1 -x admin \ -p password -d host2 -a admin -v password
See the MoveUser in Sun Java System Messaging Server 6.3 Administration Reference for details on the MoveUser command.
Enable user access to the new messaging store.
Set the mailUserStatus LDAP attribute to active.
Shut down the old system.