Converting from mbox to maildir
converting from mbox to maildir for imap
problem: mbox format doesn't allow subfolders in imap.
mbox is a mailfile in /var/mail/ and maildir is 1 file per email in the users homedir/Maildir
Steps:
- replace popa3d with dovecot-pop3d
change protocols in dovecot
http://www.debiantutorials.com/installing-dovecot-imap-and-pop-daemon-with-mysql-backend/
- Get postfix to deliver in maildir format
postconf -e "home_mailbox = Maildir/"
postconf -e "mailbox_command ="
http://wiki.debian.org/Postfix#Maildir
- change the way procmail delivers mail
DEFAULT="$HOME/Maildir/"
MAILDIR="$HOME/Maildir/"
http://wiki.dovecot.org/procmail (with more options for faster delivery)
- change the way dovecot-pop3d picks up mail
- convert the mbox mailboxes to maildir format:
This converts mboxes to maildirs per user
http://batleth.sapienti-sat.org/projects/mb2md/
http://wiki.dovecot.org/Migration/MailFormat
But Dovecot has its' own system:
http://wiki.dovecot.org/Plugins/Convert <- NB also see alternative formats underneath page