Sun Java System Messaging Server 6.3 Administration Reference

Examples

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

To move one user from host1 which uses port 150 to host2, based on account information in the Directory Server siroe.com:


MoveUser -l \
"ldap://siroe.com:389/o=siroe.com???(uid=userid)" \
-D "cn=Directory Manager" -w password -s host1:150 -x admin \
-p password -d host2 -a admin -v password

To move a group of users whose uid starts with letter ”s’ from host1 to host2, based on account information in the Directory Server server1.siroe.com:


MoveUser -l \
"ldap://server1.siroe.com:389/o=siroe.com???(uid=s*)" \
-D "cn=Directory Manager" -w password -s host1 -x admin \
-p password -d host2 -a admin -v password

To move a user’s mailboxes from host1 to host2 when the user ID of admin is specified in the command line:


MoveUser -l \"ldap://server1.siroe.com:389/o=siroe.com???(uid=user1)"  \-s host1 -x admin -p password -d host2 -a admin \
-v password 

To move a user named aldonza from host1 to a new user ID named dulcinea on host2:


MoveUser -u aldonza -U dulcinea -s host1 -x admin -p password \
-d host2 -a admin -v password

MoveUser can authenticate to the server as the administrator and use proxyauth to migrate user mailboxes. To migrate mailboxes from servers that do not support the proxyauth command, the admin can use the id of the migrating user as the admin id. Proxyauth is not performed when the admin id is the same as the user id. The -x, -p, -a and -v options are not necessary for a proxyauth user.

To move a user named joe bypassing proxyauth:


MoveUser -u joe -s oldserver -x joe -p joepassword -d newserver -a admin
 -v adminpassword