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 be 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 to enable.
This will reduce the message store size on the new system caused by duplicate storage of identical messages. See 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 2005Q4 Administration Reference for details on the moveuser command.
Enable user access to the new messaging store.
Shut down the old system.