[Dovecot] Cyrus MailDir to Dovecot mbox

CJ Keist cj.keist at colostate.edu
Wed Oct 8 00:02:29 EEST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Timo,
    Thanks.  The cyrus2dovecot looks to have worked.  So if I understand
the process I now just move the MailDir folder that was created to the
users home directory on our mail server.  I will try the dovecot convert
plugin.  Just make sure I'm doing this correct in the config file:

mail_location = mbox:~/:INBOX=/userM/mail/%u
protocol imap {
  mail_plugins = convert
}
plugin {
  convert_mail = Maildir:~/Maildir:INBOX=/userM/mail/%u
}

Is this correct? The example on the website only shows how to convert
from mbox to MailDir.


Timo Sirainen wrote:
> On Oct 7, 2008, at 6:04 PM, CJ Keist wrote:
> 
>> Anyone out there know of a tool that can convert a Cyrus MailDir format
>> to Dovecot mbox?  I have a user that I need to move over from a mail
>> server running cyrus using MailDir format.  At first I told him to setup
>> second account with Thunderbird to our mail server and then use
>> Thunderbird to move the messages over.  But he has over 100K messages so
>> not as easy to do.
>>   Is there a tool out there for doing this sort of conversion?  I tried
>> to simply cat all the messages into a single file, but just got a "Not
>> valid mbox format" when I tried to read the mail folder.
> 
> You could use either cyrus2dovecot or cyrus2courier tools to convert to
> Maildir format (http://wiki.dovecot.org/Migration/Cyrus). From there use
> some maildir to mbox conversion tool (e.g. Dovecot's convert-tool).
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFI685lA29OFr7C6jcRAj5TAJ4pFrKhGVhLA/87U31oiEMNWW3jSQCfVfGM
JhEJPPZTdgwpX/0QzpyOZug=
=VpaM
-----END PGP SIGNATURE-----


More information about the dovecot mailing list