Moving/Renaming Top Level Mailboxes
Andrew Morgan
morgan at orst.edu
Mon Feb 28 13:22:18 EST 2005
On Mon, 28 Feb 2005, Greg Harris wrote:
>> I have not attempted user renames myself (we have a script to copy a
>> mailbox over IMAP, then delete the old mailbox). However, if you are
>> seeing the new mailbox under Other Users, then it sounds like the ACLs
>> were not updated during the move. I don't know if they are supposed to be
>> automatically updated or not, since this could cause unexpected access
>> changes.
>>
>> Andy
>
> A FAQ covering these issues would probably be helpful to a lot of people,
> however, a cyradm script should be extraordinarily easy to create, (if you
> know the perl to do it, which I currently don't.) Andy, you mention a
> script and it seems like the script does exactly what I have done the long
> hard way. Is there a link to this script? Is it something that is easily
> run? Slightly off list, but is this a script that could be easily added to
> web-cyradm? (This would be the most preferred way, so that we can have
> admins unfamiliar with CLI quickly do this stuff).
I use several different perl scripts to manage mailboxes on Cyrus. You
can find all of these at:
http://oregonstate.edu/~morgan/cyrus/public/
The steps would be:
1. Create new user in your auth backend.
2. Use create_user_inbox.pl to create the new mailbox for the user.
3. Use copy_user_mailbox.pl to copy the old mailbox to the new mailbox.
4. Use delete_user_mail.pl to delete the old mailbox.
5. Remove the old user from your auth backend.
I have never used web-cyradm, so I have no idea if these could be
integrated into that software...
Andy
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
More information about the Info-cyrus
mailing list