Dovecot can't read mail, creates duplicate directories
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@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@localhost ~]$ sudo ls -l /var/vmail/testuser1/ total 4 drwx------. 3 vmail vmail 4096 Sep 10 15:00 mail [joliver@localhost ~]$ sudo ls -l /var/vmail/testuser1/mail/ total 0 [joliver@localhost ~]$ sudo ls -l /var/vmail/testUser1/ total 4 drwx------. 5 vmail vmail 4096 Sep 10 14:59 Maildir [joliver@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@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@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@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@localhost ~]$ grep vmail /etc/passwd vmail:x:504:505:Vmail:/var/vmail:/sbin/nologon
--
- John Oliver http://www.john-oliver.net/ *
*
On 9/10/2014 5:37 PM, John Oliver wrote:
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@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@localhost ~]$ sudo ls -l /var/vmail/testuser1/ total 4 drwx------. 3 vmail vmail 4096 Sep 10 15:00 mail [joliver@localhost ~]$ sudo ls -l /var/vmail/testuser1/mail/ total 0 [joliver@localhost ~]$ sudo ls -l /var/vmail/testUser1/ total 4 drwx------. 5 vmail vmail 4096 Sep 10 14:59 Maildir [joliver@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@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@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@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@localhost ~]$ grep vmail /etc/passwd vmail:x:504:505:Vmail:/var/vmail:/sbin/nologon
Bump, been having the same troubles configuring this in dovecot.
participants (2)
-
John Oliver
-
Peter Cook