Nate Duehr wrote:
Michael Perry wrote:
You can also migrate existing mbox folders to maildir if need be by
installing mb2md which will set everything up in the correct format and
also parse and relocate existing mbox folders. I've done this before for
dovecot with mbox folders with over a year of mail with no problems. It
will also create the cur, new, tmp stuff for you.
Dovecot does a nice job of scanning home directories and locating
supported mailboxes and I've used it with fetchmail, spamassassin,
postfix, procmail for quite awhile now.
Thanks for sharing this note/tool Michael.
I've been meaning to switch one of my older mail servers over from
exim/uw-imap/mbox to exim/dovecot/maildir for some time now and always
been kinda leery of the process.
I guess now I have to sit here and think about how to do this properly
in the right order, but all the tools are in-hand.
Off to go blow up the mailserver. Hmm, where's that backup...? ;-)
Nate
That went surprisingly well.
Steps on a stock Debian stable system that was just running basically
default configuration exim4 and uw-imap were:
1. Shut down incoming mail/Stop exim.
2. su to each user in /var/spool/mail and convert their mbox mailbox to
Maildir in their home directory. (This machine doesn't have a lot of
users or I would have written a little script to do it.) The default of
mb2md -m as long as you're the user you're converting works fine. The
examples in /usr/share/doc/mb2md/USAGE.gz worked fine for anything else.
3. Check each user's ~/Mail folder for additional IMAP folders, and
convert those.
4. Add these lines to each user's .procmailrc that had one:
MAILDIR=$HOME/Maildir/
DEFAULT=$MAILDIR
5. Munge paths in each user's .procmailrc to the new path with a
trailing / to tell procmail that this is now a Maildir folder.
6. Edit /etc/exim4/update-exim4.conf.conf and add:
dc_localdelivery=maildir_home
7. Use aptitude to replace uw-imap with courier-imap and
courier-imap-ssl (and the pop3 junk since a few people use it on this
box too), and leave courier-mta out.
8. Run squirrelmail-configure and set to "courier" and remove default
folder of ~/Mail for uw-imap.
9. Restart everything.
10. Reconfigure clients, fix subscriptions if needed, resynchronize, and
remove ~/Mail from any client configurations.
11. Get used to the huge performance increase and mailboxes named
INBOX.Something instead of a pretty tree. ;-) Benchmarking so far
appears to yield about a five-fold increase in speed on synchronization
and unmeasurable (it's too fast!) increases just looking at headers.
Should have done this long ago!
Nice!
Nate
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]