Hi Aki,

Thanks. I was especially interested in documentation related to dovecot and it's users permissions, the way in which dovecot uses users. Till now I found only spread information on different articles from dovecot's website.

Thanks,
Mura Andrei

On Sat, Apr 11, 2020 at 9:49 AM Aki Tuomi <aki.tuomi@open-xchange.com> wrote:
Hi,

https://www.freedesktop.org/software/systemd/man/systemd.exec.html#ReadWritePaths=

although we probably need to add some words into doc.dovecot.org under known issues.

Aki

> On 11/04/2020 09:24 Andrei Petru Mura <mapandrei@gmail.com> wrote:
>
>
> Hi Aki,
>
> Any documentation on this topic?
>
> Mura Andrei
>
>
> On Mon, Apr 6, 2020 at 5:27 PM Aki Tuomi <aki.tuomi@open-xchange.com> wrote:
> > This is probably caused by systemd (or selinux or both).
> > 
> >  With systemd, you need to add
> > 
> >  ReadWritePaths=/home/mail
> > 
> >  to the systemd unit.
> > 
> >  Then you can check /var/log/audit/audit.log for any selinux specific problems. If you are using Centos/Redhat.
> > 
> >  Aki
> > 
> >  > On 06/04/2020 17:01 Andrei Petru Mura <mapandrei@gmail.com> wrote:
> >  >
> >  >
> >  > Hi,
> >  >
> >  > Dovecot version 2.2.36
> >  > In log files I get this error:
> >  > dovecot: imap(test): Namespace '': mkdir(/home/mail/domain/test/Maildir) failed: Permission denied (euid=1005(vmail) egid=1005(vmail) missing +w perm: /home/mail/domain, UNIX perms appear ok (ACL/MAC wrong?))
> >  >
> >  > My authentication configuration is this:
> >  > passdb {
> >  > driver = passwd-file
> >  > args = username_format=%n /etc/dovecot/users
> >  > }
> >  >
> >  > userdb {
> >  > driver = static
> >  > args = uid=vmail gid=vmail home=/home/mail/domain/%n username_format=%n /etc/dovecot/users
> >  >
> >  > }
> >  >
> >  > /home/mail/domain/test directory is owned by vmail user.
> >  > How to fix this?
> >  >
> >  > Mura Andrei
> >