[Dovecot] sdbox to mdbox
Joan Moreau
jom at grosjo.net
Sat Dec 25 01:41:15 EET 2010
Thanks, but this keeps very unclear for me.
Concretely, I have in my dovecot.conf:
mail_gid = mail
mail_location = dbox:/data/mail/%d/%n
mail_uid = mailusers
What you are saying is that, I shall :
1 - plan to have all the new emails in a different folder (say
"/data/mail2" )
2 - make a script that go through all users & domains
3 - for each user (and therefore dbox folder), run "dsync -o
mail_location=sdbox:/data/mail/%d/%n mirror mdbox:/data/mail2/%d/%n"
(where %d and %n are updated correctly for each user)
4 - move /data/mail to /data/mailold and move /data/mail2 /data/mail
5 - update dovecot.conf with "mail_location = mdbox:/data/mail/%d/%n"
6 - Only then, restart dovecot in production ?
ISn't there a way to do that keeping dovecot running ?
You kind help is very much appreciated
Joan
On Fri, 24 Dec 2010 13:01:46 +0100, Daniel Luttermann wrote:
> Joan Moreau wrote on 12/24/2010:
>
>> Thanks for the link, but the page is not really speaking about the
>> matter.
>
>> I clarify my question:
> convert a "sdbox" system (in production) to "mdbox" without loosing
> any
>> email ?
> an use this command for example (without loosing emails): dsync -o
> mail_location=sdbox:/path_to_old_mailbox/sdbox mirror
> mdbox:/path_to_new_mailbox/mdbox You can stop Dovecot, convert your
> emails, change the Dovecot configuration to mdbox (instead of sdbox)
> and
> restart Dovecot. Maybe you could also use a script which runs after
> the
> user login. See http://wiki.dovecot.org/PostLoginScripting [1] --
> Daniel
Links:
------
[1] http://wiki.dovecot.org/PostLoginScripting
More information about the dovecot
mailing list