[Dovecot] Error: Opening INBOX failed: Mailbox doesn't exist: INBOX

2010-09-26 Thread Christian Felsing
Hello,

there is one user which has a Error: Opening INBOX failed: Mailbox
doesn't exist: INBOX problem:

doveadm mailbox status -u u...@foo.local -t all \*

doveadm(u...@foo.local): Error: Opening INBOX failed: Mailbox doesn't
exist: INBOX
doveadm(u...@foo.local): Error: Opening mailbox INBOX failed: Mailbox
doesn't exist: INBOX

doveadm -v force-resync -u u...@foo.local INBOX
doveadm(u...@foo.local): Error: Opening INBOX failed: Mailbox doesn't
exist: INBOX
doveadm(u...@foo.local): Error: Opening mailbox INBOX failed: Mailbox
doesn't exist: INBOX

doveadm mailbox list -u u...@foo.local
Archiv Old
Gesendete Objekte
INBOX
INBOX.old
INBOX.ix
INBOX.ct
INBOX.telepolis
INBOX.bild
INBOX.fotos.highres
INBOX.computerbild
Junk-E-Mail
Trash
Gesendet


System has several hundred users, but this is the only user on which
that happens. Users client is Microsoft Outlook 2003, but there are more
users which are using Microsoft Outlook 2003.

dovecot -n (some parts masked with *** for privacy reasons):

# 2.0.3: /opt/dovecot/etc/dovecot/dovecot.conf
# OS: Linux 2.6.26-2-amd64 x86_64 Debian 5.0.6 xfs
auth_master_user_separator = *
auth_mechanisms = plain login
auth_realms = ***
auth_username_format = %Lu
disable_plaintext_auth = no
first_valid_uid = 124
last_valid_uid = 124
listen = [::], *
log_timestamp = %Y-%m-%d %H:%M:%S
login_greeting = imap4/pop3 ready.
mail_location = maildir:/mail/%d/%u/Maildir
mail_privileged_group = 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 imapflags notify
passdb {
  args = ***
  driver = passwd-file
  master = yes
}
passdb {
  args = /opt/dovecot/etc/dovecot/dovecot-ldap.conf
  driver = ldap
}
plugin {
  quota = maildir:User quota
  quota_rule = *:storage=500M
  quota_rule2 = Trash:storage=+100M
  quota_warning = storage=95%% quota-warning 95 %u
  quota_warning2 = storage=80%% quota-warning 80 %u
  sieve = ~/.dovecot.sieve
  sieve_dir = ~/sieve
  sieve_extensions = +imapflags +notify
}
protocols = imap pop3 sieve lmtp
service auth {
  client_limit = 8000
  unix_listener /var/run/dovecot/auth-master {
group = vmail
mode = 0660
user = vmail
  }
  unix_listener /var/spool/postfix/private/auth {
group = postfix
mode = 0660
user = postfix
  }
  user = vmail
}
service imap-login {
  process_limit = 1024
}
service imap-postlogin {
  executable = script-login /opt/dovecot-cf/lastlogin.sh
  user = cadm
}
service imap {
  executable = imap imap-postlogin
}
service lmtp {
  unix_listener /var/spool/postfix/private/dovecot-lmtp {
group = postfix
mode = 0660
user = postfix
  }
}
service managesieve-login {
  inet_listener sieve-obsolete {
port = 2000
  }
  inet_listener sieve {
port = 4190
  }
  process_limit = 1024
}
service pop3-login {
  process_limit = 1024
}
service pop3-postlogin {
  executable = script-login /opt/dovecot-tools/lastlogin.sh
  user = cadm
}
service pop3 {
  executable = pop3 pop3-postlogin
}
service quota-warning {
  executable = script /opt/dovecot-tools/quota-warning.sh
  user = vmail
}
ssl_ca = /opt/dovecot/etc/cacert.pem
ssl_cert = /opt/apache/apache/conf/ssl/cert.crt
ssl_cipher_list = HIGH:MEDIUM:!SSLv2:!ADH:!aNULL:!eNULL:!NULL
ssl_key = /opt/apache/apache/conf/ssl/cert.key
userdb {
  args = /opt/dovecot/etc/dovecot/dovecot-ldap.conf
  driver = ldap
}
protocol lmtp {
  mail_plugins = quota sieve
}
protocol sieve {
  managesieve_logout_format = bytes ( in=%i : out=%o )
}
protocol imap {
  imap_client_workarounds = tb-extra-mailbox-sep
  mail_plugins = quota imap_quota
}
protocol pop3 {
  mail_plugins = quota
  pop3_uidl_format = %08Xu%08Xv
}
protocol lda {
  auth_socket_path = /var/run/dovecot/auth-master
  hostname = mail.foo.local
  lda_mailbox_autocreate = yes
  mail_plugin_dir = /opt/dovecot/lib/dovecot/lda
  mail_plugins = $mail_plugins sieve
  postmaster_address = postmas...@foo.local
  sendmail_path = /usr/lib/sendmail
}

dovecot-ldap.conf omitted, because auth works flawless. Homedir etc.
looks like other users homedirs:

tsnetMailHomeDir: /mail/foo.local/u...@foo.local
tsnetMailMessageStore: /mail/foo.local/u...@foo.local/Maildir

As temporary workaround user set a sieve rule to forward mail to other
account. This Sieve script works.

Is there a way to fix that w/o deleting that mailbox ?

Christian


Re: [Dovecot] Error: Opening INBOX failed: Mailbox doesn't exist: INBOX

2010-09-26 Thread Timo Sirainen
On Sun, 2010-09-26 at 09:11 +0200, Christian Felsing wrote:

 there is one user which has a Error: Opening INBOX failed: Mailbox
 doesn't exist: INBOX problem:
 
 doveadm mailbox status -u u...@foo.local -t all \*
 
 doveadm(u...@foo.local): Error: Opening INBOX failed: Mailbox doesn't
 exist: INBOX
 doveadm(u...@foo.local): Error: Opening mailbox INBOX failed: Mailbox
 doesn't exist: INBOX

Does this user have Maildir/cur/, new/ and tmp/ directories? Does it
help if you delete Maildir/dovecot.index* files?



Re: [Dovecot] Error: Opening INBOX failed: Mailbox doesn't exist: INBOX

2010-09-26 Thread Timo Sirainen
On Sun, 2010-09-26 at 18:29 +0100, Timo Sirainen wrote:
  doveadm(u...@foo.local): Error: Opening INBOX failed: Mailbox doesn't
  exist: INBOX
  doveadm(u...@foo.local): Error: Opening mailbox INBOX failed: Mailbox
  doesn't exist: INBOX
 
 Does this user have Maildir/cur/, new/ and tmp/ directories? Does it
 help if you delete Maildir/dovecot.index* files?

No, forget it. This user most likely didn't have tmp/ directory (because
of another bug) which was causing this problem. Fixed:
http://hg.dovecot.org/dovecot-2.0/rev/5b0a1974fc6f




Re: [Dovecot] Error: Opening INBOX failed: Mailbox doesn't exist: INBOX

2010-09-26 Thread Christian Felsing
Hello Timo,

tmp/ was missing. Creating tmp/ and chown/chmod to dovecot user solved
doveadm issue. If that user reports successful access to his maildir
this issue is definitely solved.

I did not delete dovecot.index* files.

many thanks to you
Christian

Am 26.09.2010 19:29, schrieb Timo Sirainen:
 Does this user have Maildir/cur/, new/ and tmp/ directories? Does it
 help if you delete Maildir/dovecot.index* files?