[Dovecot] permissions problem reading INBOX
Hello,
I'm sorry if I'm asking something that is documented - I could swear I saw something about this (dovecot changing to the uid of the entry in the userdb when accessing the mailbox), but now I cannot find it anywhere in the wiki!
Dovecot seems to be getting the right uid for the mailbox, but then it is having permissions problems. The error is:
Feb 27 17:31:08 rm-002-02 dovecot: auth(default): client in: AUTH 1 PLAIN service=POP3 lip=65.23.159.123 rip=65.23.128.14 resp= <hidden> Feb 27 17:31:08 rm-002-02 dovecot: auth(default): client out: OK 1 user=kclair Feb 27 17:31:08 rm-002-02 dovecot: auth(default): master in: REQUEST 1 17052 1 Feb 27 17:31:08 rm-002-02 dovecot: auth(default): master out: USER 1 kclair system_user=kclair uid=12346 gid=12346 home=/home/kclair Feb 27 17:31:08 rm-002-02 dovecot: POP3(kclair): open(/var/spool/mail/kclair, O_CREAT) failed: Permission denied Feb 27 17:31:08 rm-002-02 dovecot: POP3(kclair): stat() failed with mbox file /var/spool/mail/kclair: Permission denied
The mbox file permissions are: -rw-rw---- 1 kclair mail 489 Feb 27 16:40 /var/spool/mail/kclair
The /etc/passwd file entry is: kclair:x:12346:12346::/home/kclair:/bin/bash
I am trying to use the following passdb combination: passdb: driver: pam args: dovecot deny: no pass: no master: no passdb: driver: passwd-file args: /usr/local/etc/passwd.dovecot deny: no pass: no master: no
and userdb combination: userdb: driver: passwd args: userdb: driver: passwd-file args: /usr/local/etc/passwd.dovecot
Am I missing something obvious?
Thanks, Kristina
On Wed, 2007-02-28 at 14:31 -0600, K. Clair wrote:
Feb 27 17:31:08 rm-002-02 dovecot: POP3(kclair): open(/var/spool/mail/kclair, O_CREAT) failed: Permission denied Feb 27 17:31:08 rm-002-02 dovecot: POP3(kclair): stat() failed with mbox file /var/spool/mail/kclair: Permission denied
The mbox file permissions are: -rw-rw---- 1 kclair mail 489 Feb 27 16:40 /var/spool/mail/kclair
To me it looks like that the user doesn't have execute permission to /var/spool/mail.
Maybe also related to http://wiki.dovecot.org/VarMailDotLock
participants (2)
-
K. Clair
-
Timo Sirainen