[Dovecot] Dovecot2 and mdbox problem

Michael Grosseck liox at elso.mine.nu
Thu Sep 16 17:54:29 EEST 2010


Hello,

I've just installed Dovecot from the http://xi.rename-it.nl/debian/ 
repository. But I have a problem with the mdbox Format.
When the home folder is empty Dovecot should  create the folder 
structure if the first mail arrived or the user logs in the first time.
But I get following error:
Sep 16 12:30:41 smtp dovecot: lmtp(31244): Connect from local
Sep 16 12:30:41 smtp dovecot: lmtp(31244, info at example.de): Error: 
file_dotlock_open() failed with file 
/var/mail/es030107p1/mdbox/mailboxes/INBOX/dbox-Mails/dovecot.index.log: 
No such file or directory
Sep 16 12:30:41 smtp dovecot: lmtp(31244, info at example.de): Error: 
Opening INBOX failed: Mailbox doesn't exist: INBOX
Sep 16 12:30:41 smtp dovecot: lmtp(31244, info at example.de): 
0ZQgDbkNkkwMegAA00WXAw: 
msgid=<20100916123041.4781A4F4138 at smtp.example.de>: save failed to 
INBOX: Mailbox doesn't exist: INBOX
Sep 16 12:30:41 smtp dovecot: lmtp(31244, info at example.de): Error: BUG: 
Saving failed to unknown storage
Sep 16 12:30:41 smtp dovecot: lmtp(31244): Disconnect from local: Client 
quit

Also if I try to create a mailbox by hand I get a similar error.
doveadm(info at example.de): Error: file_dotlock_open() failed with file 
/var/mail/es030107p1/mdbox/mailboxes/INBOX/dbox-Mails/dovecot.index.log: 
No such file or directory
doveadm(info at example.de): Error: Can't create mailbox INBOX: Internal 
error occurred. Refer to server log for more information. [2010-09-16 
14:07:42]

If I now create the dbox-Mails directory and the dovecot.index.log by 
hand and make a
doveadm -v force-resync -u info at example.de INBOX
everthing is alright.

Also I can not create a new IMAP-folder with Thunderbird.
It seems Dovecot forgets to create the dbox-Mails directory and the 
dovecot.index.log file.

Now my config:
# 2.0.2 (eb5adb193064): /etc/dovecot/dovecot.conf
# OS: Linux 2.6.26-2-xen-amd64 x86_64 Debian 5.0.6
auth_debug = yes
auth_debug_passwords = yes
auth_mechanisms = plain login
auth_verbose = yes
auth_verbose_passwords = plain
base_dir = /var/run/dovecot/
disable_plaintext_auth = no
first_valid_gid = 10000
first_valid_uid = 10000
last_valid_gid = 10000
last_valid_uid = 10000
login_greeting = Webfixx Dovecot ready.
mail_debug = yes
mail_gid = vmail
mail_location = mdbox:%h/mdbox
mail_uid = vmail
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope 
encoded-character vacation subaddress comparator-i;ascii-numeric 
relational regex imap4flags copy include variables body enotify 
environment mailbox date
passdb {
   args = /etc/dovecot/dovecot-sql.conf.ext
   driver = sql
}
plugin {
   sieve = ~/.dovecot.sieve
   sieve_dir = ~/sieve
}
postmaster_address = liox at elso.mine.nu
service auth {
   unix_listener /var/spool/postfix/private/auth {
     group = postfix
     mode = 0660
     user = postfix
   }
   unix_listener auth-userdb {
     group = vmail
     mode = 0600
     user = vmail
   }
}
service lmtp {
   unix_listener /var/spool/postfix/private/dovecot-lmtp {
     group = postfix
     mode = 0660
     user = postfix
   }
   user = vmail
}
ssl_cert = </etc/ssl/certs/dovecot.pem
ssl_key = </etc/ssl/private/dovecot.pem
userdb {
   args = /etc/dovecot/dovecot-sql.conf.ext
   driver = sql
}




More information about the dovecot mailing list