Hello, I'm upgrading my mail server from UW to Dovecot and I'd like to convert from mbox to maildir. I've successfully convert myself and a few other users with the mb2md script. All is well. My question is, I have somewhere around 500 users and about 122gb of mail folders to convert (this does not include the inbox at /var/mail). mb2md needs to be run as each user to convert. Are there any programs or scripts out there that will allow me to convert everyone at the same time? I know there is a Dovecot plugin to convert mail, but we didn't want to use this option. I'm sure someone on this list was in the same situation as me, how did you handle a massive conversion? Any help or suggestions is much appreciated!
On 29.01.2009 18:29 Uhr, Mike Hobbs wrote:> Hello,Hi Mike,> I'm upgrading my mail server from UW to Dovecot and I'd like to convert > from mbox to maildir. I've successfully convert myself and a few other > users with the mb2md script. All is well. > > My question is, I have somewhere around 500 users and about 122gb of > mail folders to convert (this does not include the inbox at /var/mail). > > mb2md needs to be run as each user to convert. Are there any programs or > scripts out there that will allow me to convert everyone at the same time?I have created such a script which does a few checks before as well. We didn't do a 'real' batch conversion, because nothing was in a defined state at the time of the conversion. We did do it in batches of 10 users per hour and everyone got an email before, telling them in which timeframe the migration of their account will take place. A big help for the migration was perdition (imap proxy) so no reconfiguration of the client was needed.> I know there is a Dovecot plugin to convert mail, but we didn't want to > use this option. > > I'm sure someone on this list was in the same situation as me, how did > you handle a massive conversion?The attached script does a lot of other things as well, maybe just reading it will give you an idea of what to expect.> > Any help or suggestions is much appreciated! >cheers, dirk -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: m2f URL: <http://dovecot.org/pipermail/dovecot/attachments/20090130/4ffa2071/attachment-0002.pl>
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thu, 29 Jan 2009, Mike Hobbs wrote:> I'm upgrading my mail server from UW to Dovecot and I'd like to convert from > mbox to maildir. I've successfully convert myself and a few other users with > the mb2md script. All is well.At http://wiki.dovecot.org/Migration/MailFormat Julian Fitzell provides another variant of this script. I added another option "-o" to it, which inherits the ownership from the directory the item is created in. http://www2.inf.fh-bonn-rhein-sieg.de/skdata/mb2md-2008-11-12.tgz Because the script does not use Dovecot, you must know the destination path before hand. ============== On the same Wiki page there is the note: "Convert plugin Dovecot has a plugin which allows you to convert between any two mailbox formats supported by Dovecot. The conversion is done when the user logs in for the first time, or using convert-tool binary. See Plugins/Convert." Honestly, the phrase "using convert-tool binary" catches my eye the first time. Maybe you check it out?? Bye, - -- Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iQEVAwUBSYK2H3WSIuGy1ktrAQKSmwgAlpHsD1pNEU0t0/f9wnDWaEdK8Pdhtost eBuzWyxBA8S8kDC6SvNELby1GtRWky+sAPcosk9X9fmy3/FYXJl7EOSXMfgOFbqK SR8WyDzGUkCyZyYzDBOtq36ZdAQtcghduP9bks03pCiwJBjQZ2+uQeFJjchnvkPy 9fsiM77OKK5ZEOCyUEEiNshtftoHRLFWkf7OBm2obCfw0s+48lA/fr69j3V/BK6+ fYd65tfN/6Fo9nTQuTnomJ2yrx5pGQmZBOcX2f+X22TuU3TuJ9P8klyvu/IDI8D0 JHoiOcAcaOqzWGJyMQON0m0K0USba0RPbntmCzX11YYuk05nJvGOMQ==wSi0 -----END PGP SIGNATURE-----
Thanks guys for the suggestions and scripts! Adam, I haven't received your script yet.. I know you said you needed to clean it up, I'll ping you in a few days if I don't hear from you by then. Thank you everyone! mike