I am trying to convert from mbox to maildir on our mail server here at work. The
specs are as follows:
Fedora 11 x86-64
dovecot-1.2.11-3.fc11.x86_64
postfix-2.5.6-3.fc11.x86_64
dovecot-managesieve-1.2.11-3.fc11.x86_64
We are currently using mbox format with the users INBOX set to
/var/spool/mail/username and other mail is in /home/username/Mail. I would like
to migrate to maildir format. I tried using the convert plugin as the wiki
suggested:
mail_location = maildir:~/Maildir
protocol imap {
mail_plugins = convert
}
protocol pop3 {
mail_plugins = convert
}
plugin {
convert_mail = mbox:/home/%u/Mail:INBOX=/var/spool/mail/%u
}
When doing this I get this scrolling in the /var/log/maillog...
Sep 11 14:41:38 roark dovecot: IMAP(username): Mailbox conversion: Lock creation
timeouted
Sep 11 14:41:39 roark dovecot: IMAP(username): Fatal: Mailbox conversion failed,
exiting
Sep 11 14:56:53 roark dovecot: POP3(otheruser): Mailbox conversion:
rename(/home/otheruser/Mail, /home/otheruser/Mail-converted) failed: Directory
not empty
it does this for some users only. Mine for instance never errored and completed
perfectly from what I can tell (other than the new mail issue below). The server
load has skyrocketed though, so that is most likely part of it.
Also, while testing this, new mail was not delivered to the maildir but rather
to the old mbox in /var/spool/mail/username. The new mail never showed up until
I switched the config back over to the mbox settings. Am I missing something
here?
Thanks for any insight
--
Donny B.
On Sat, 2010-09-11 at 15:22 -0500, Donny Brooks wrote:> Sep 11 14:41:38 roark dovecot: IMAP(username): Mailbox conversion: Lock creation timeouted > Sep 11 14:41:39 roark dovecot: IMAP(username): Fatal: Mailbox conversion failed, exitingIf the mailbox is large I guess this can happen..> Sep 11 14:56:53 roark dovecot: POP3(otheruser): Mailbox conversion: rename(/home/otheruser/Mail, /home/otheruser/Mail-converted) failed: Directory not emptyENOTEMPTY or EEXIST newpath is a non-empty directory, that is, contains entries other than "." and "..". The Mail-converted directory already exists?> Also, while testing this, new mail was not delivered to the maildir > but rather to the old mbox in /var/spool/mail/username.Either disable mail delivery or enable convert plugin also in protocol lda {}. With v2.0 you could also use dsync, which would work more nicely.