[Dovecot] migrating mailboxes on dovecot

Gedalya gedalya at gedalya.net
Sun Mar 25 11:23:50 EEST 2012


On 3/25/2012 3:24 AM, Spyros Tsiolis wrote:
> The directory structure is :
>
>
> "/var/MailRoot/domains/domainX/Username/Maildir/"

You can probably just:
1. Do something to prevent the user from logging in, and any deliveries 
from happening, e.g. delete the user.
2. Kick any existing connections.
3. Just move the Username directory from domainA to domainB.
4. Create the new user in the new domain

Test the procedure first.

Don't let a client log in to a mailbox and see something he's not 
supposed to see, like an empty mailbox. It can cause the client to drop 
its local cache and possibly other data.



More information about the dovecot mailing list