Dovecot can't read mail, creates duplicate directories

John Oliver joliver at john-oliver.net
Wed Sep 10 22:37:51 UTC 2014


CentOS 6.5, dovecot 2.0.9-7

I used http://www.linuxmail.info/postfix-dovecot-ldap-centos-5/ to
configure LDAP authentication for postfix and dovecot.

I can log in to dovecot via IMAP, but it cannot read messages.  It does
wind up creating alternate directories though:

[joliver at localhost ~]$ sudo ls -l /var/vmail/
total 8
drwx------. 3 vmail vmail 4096 Sep 10 15:00 testuser1
drwx------. 3 vmail vmail 4096 Sep 10 14:59 testUser1
[joliver at localhost ~]$ sudo ls -l /var/vmail/testuser1/
total 4
drwx------. 3 vmail vmail 4096 Sep 10 15:00 mail
[joliver at localhost ~]$ sudo ls -l /var/vmail/testuser1/mail/
total 0
[joliver at localhost ~]$ sudo ls -l /var/vmail/testUser1/
total 4
drwx------. 5 vmail vmail 4096 Sep 10 14:59 Maildir
[joliver at localhost ~]$ sudo ls -l /var/vmail/testUser1/Maildir/
total 12
drwx------. 2 vmail vmail 4096 Sep 10 14:59 cur
drwx------. 2 vmail vmail 4096 Sep 10 15:01 new
drwx------. 2 vmail vmail 4096 Sep 10 15:01 tmp
[joliver at localhost ~]$ sudo ls -l /var/vmail/testUser1/Maildir/new/
total 8
-rw-------. 1 vmail vmail 444 Sep 10 15:25
1410387938.Vfd02I1e89M2893.localhost.localdomain
-rw-------. 1 vmail vmail 453 Sep 10 15:26
1410387970.Vfd02I1e8cM685475.localhost.localdomain

[joliver at localhost ~]$ telnet localhost 143
Trying ::1...
Connected to localhost.
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE
IDLE STARTTLS AUTH=PLAIN] Dovecot ready.
a1 LOGIN testuser1 password
a1 OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE
IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS MULTIAPPEND
UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE
QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS]
Logged in
a2 EXAMINE INBOX
* FLAGS (\Answered \Flagged \Deleted \Seen \Draft)
* OK [PERMANENTFLAGS ()] Read-only mailbox.
* 0 EXISTS
* 0 RECENT
* OK [UIDVALIDITY 1410388142] UIDs valid
* OK [UIDNEXT 1] Predicted next UID
* OK [HIGHESTMODSEQ 1] Highest
a2 OK [READ-ONLY] Select completed.

[joliver at localhost ~]$ cat /etc/dovecot/conf.d/auth-ldap.conf.ext 
auth_username_format = %Lu

passdb {
  driver = ldap
  args = /etc/dovecot/dovecot-ldap.conf.ext
}

userdb {
  driver = static
  args = uid=504 gid=505 home=/var/vmail/%u
}

[joliver at localhost ~]$ grep vmail /etc/passwd
vmail:x:504:505:Vmail:/var/vmail:/sbin/nologon

-- 
***********************************************************************
* John Oliver                             http://www.john-oliver.net/ *
*                                                                     *
***********************************************************************


More information about the dovecot mailing list