Copying mailbox from one user to another

Hello again,

Recently i was asked to rename one of the users to new name (she got married). So i tried to rename login / mail and everything to new name with "-" in betwen (for example FirstName.HusbandLastName-HerLastName@domain.pl).

I failed to do so as Delegated Admin was denying to do those i decided to create new user. After that i cp -R (on shell) files from old user to new user and i noticed that everything seems to be in place (320 mails in new inbox). So i left it on one day. The next day i came it was saying Access denied. So okey i deleted new user, deleted his mailbox with rm -rf, removed user from LDAP and added user again. Recreated new user but now i noticed that store.idx for that particualr new user has old mail in it (FirstName.HerLastName@domain.pl instead of FirstName.HusbandLastName-HerLastName@domain.pl) Instead the right one? Also when i was sending emails to new adress i saw them being delivred into mailbox but i couldn't see them in IMAP client. And i was still getting that access denied thru IMAP in some cases. So to make this short. What would be the proper way to do this?

Fleibo

[1150 byte] By [Fleibo] at [2007-11-26 10:35:25]
# 1

First, RE-naming a user is very, very difficult. That's one of the problems you get when you use names as UID.

Many things are keyed off the UID, including where in the mailstore the mail is stored. Calendar is even more complex.

However, if you really need to change a UID, then there is only one way to do it in Messaging Server:

1. Change the existing mail address to something, "dummy".

2. Create a new account for the user, with the correct new UID, mail address, and all.

3. Move the old messages to the new mailbox. You can use either mboxutil, MoveUser, or imsbackup/imsrestore.

4. Delete the old LDAP entry and mailbox, with the standard tools for doing that.

jay_plesset at 2007-7-7 2:45:52 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...
# 2
Tnx Jay, as always helpefull.1. Created new user with new mail / new login etc2. Can you give me example use of MoveUser so it would copy mails from one mailbox to another mailbox? With "dummy names" but as close to normal so i could easly use it in my situation?
Fleibo at 2007-7-7 2:45:52 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...
# 3
http://docs.sun.com/app/docs/doc/819-2651/6n4u5ce7b?a=view#acmdqMoveUser -u aldonza -U dulcinea -s host -x admin -p password \-d host -a admin -v password
jay_plesset at 2007-7-7 2:45:52 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...