[Dovecot] Convert mbox to maildir
Hello all
Ive installed a new Server with dovecot, started using it and had no problems until I noticed that I couldnt create sub-sub-folders on my imap account, Ive read for the past two days info on how to convert and I know now that instead of using mbox I need to user maildir, the issue is now to convert mbox to maildir, on the various searches I did, I found the convert wiki page (http://wiki.dovecot.org/Plugins/Convert) followed the instructions there and no luck, I always end up with an error:
Eopen(/.temp.chihuahua.intranet.acorporativa.com.mx.21409.1089e702ee50f317) failed: Permission denied
Error: imap dump-capability process returned 89
If I remove the line convert_mail = mbox:~/mail:INBOX=/var/mail/%u it starts correctly but I see no e-mails and no conversion takes place, since its a production server Ive reverted all changes and had to add a line (mail_location = mbox:~/mail:INBOX=/var/mail/%u) to be able to see my e-mails again. Ive tried stopping dovecot, making the changes and trying dovecot n to see the configuration, but with the same results.
Any ideas on what Ive been doing wrong?
TIA
Héctor
[root@chihuahua etc]# dovecot --version
1.0.rc15
[root@chihuahua etc]# dovecot -n
# /etc/dovecot.conf
login_dir: /var/run/dovecot/login
login_executable(default): /usr/libexec/dovecot/imap-login
login_executable(imap): /usr/libexec/dovecot/imap-login
login_executable(pop3): /usr/libexec/dovecot/pop3-login
mail_location: mbox:~/mail:INBOX=/var/mail/%u
mail_executable(default): /usr/libexec/dovecot/imap
mail_executable(imap): /usr/libexec/dovecot/imap
mail_executable(pop3): /usr/libexec/dovecot/pop3
mail_plugin_dir(default): /usr/lib/dovecot/imap
mail_plugin_dir(imap): /usr/lib/dovecot/imap
mail_plugin_dir(pop3): /usr/lib/dovecot/pop3
auth default:
passdb:
driver: pam
userdb:
driver: passwd
[root@chihuahua etc]#
On Fri, 2007-04-13 at 14:16 -0500, Héctor S. Mendoza O wrote:
Eopen(/.temp.chihuahua.intranet.acorporativa.com.mx.21409.1089e702ee50f317) failed: Permission denied
Error: imap dump-capability process returned 89
I think I should do something about this dump-capability code..
1.0.rc15
Don't bother trying to run convert plugin with this old version. It's since had a lot of bugfixes.
If you've only a few accounts, you could do the conversion with for example mb2md.pl. See http://wiki.dovecot.org/Migration/MailFormat
Timo:
Thanks so much, it worked like a charm, did a few scripts to convert all the mailboxes since I have already 200+ using procmail, and had to change also the .procmailrc for each user to accommodate Maildir has default incoming maildir.
Only one comment, on the page "Converting from mbox to Maildir" you specify on the second mb2md line "mb2md-3.20.pl -m -d /var/mail/incoming/someuser" and it should be "mb2md-3.20.pl -m -s /var/mail/incoming/someuser"
Thanks again for the help and great work with dovecot!
Hector
-----Mensaje original----- De: Timo Sirainen [mailto:tss@iki.fi] Enviado el: Sábado, 14 de Abril de 2007 04:01 a.m. Para: Héctor S. Mendoza O CC: dovecot@dovecot.org Asunto: Re: [Dovecot] Convert mbox to maildir
On Fri, 2007-04-13 at 14:16 -0500, Héctor S. Mendoza O wrote:
Eopen(/.temp.chihuahua.intranet.acorporativa.com.mx.21409.1089e702ee50f317)
failed: Permission denied
Error: imap dump-capability process returned 89
I think I should do something about this dump-capability code..
1.0.rc15
Don't bother trying to run convert plugin with this old version. It's since had a lot of bugfixes.
If you've only a few accounts, you could do the conversion with for example mb2md.pl. See http://wiki.dovecot.org/Migration/MailFormat
participants (2)
-
Héctor S. Mendoza O
-
Timo Sirainen