Inexplicable missing permissions issue

Aki Tuomi aki.tuomi at dovecot.fi
Tue Sep 19 10:40:46 EEST 2017



On 19.09.2017 05:28, Nelson Crosby wrote:
> Greetings all.
>
> I've been having great difficulty getting Dovecot working. I'm getting
> stuck with using mbox directories outside of /home. Dovecot keeps giving
> me this message:
>
>     imap(ncrosby): Namespace '': stat(/var/logmail/mbox/ncrosby) failed: Permis
>     sion denied (euid=1001(ncrosby) egid=1001(ncrosby) missing +w perm: /var/lo
>     gmail/mbox/ncrosby stat(/var/logmail/mbox/ncrosby) failed: Permission denie
>     d, dir owned by 0:0 mode=0755) in=0 out=340
>
> I've tried letting Dovecot create this directory, I've tried creating this
> directory manually and giving it any permission I can think of, I've tried
> playing about with the permissions throughout the entire /var/logmail tree,
> but to no avail.
>
> Below is my setup. I appreciate any input.
>
> Here's `tree -apug /var/logmail`:
>
>     /var/logmail
>     ├── [drwx------ root     root    ]  lost+found
>     ├── [drwxr-xr-x root     root    ]  mbox

this is owned by root, and it's complaining about
/var/logmail/**mbox**/ncrosby
and dovecot cannot create this because mbox is only writable by root

Aki


More information about the dovecot mailing list