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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://dovecot.org/pipermail/dovecot/attachments/20200406/90963a2d/attachment.html>
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 at 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
Hi Andrei,>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?do you have apparmor up and running? If so, you have to modify its config for dovecot.>Mura AndreiBye. Michael. -- Michael Hirmke
Hi Michael, I don't have apparmour installed in my system. Mura Andrei On Mon, Apr 6, 2020 at 10:11 PM Michael Hirmke <mh at mike.franken.de> wrote:> Hi Andrei, > > >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? > > do you have apparmor up and running? > If so, you have to modify its config for dovecot. > > >Mura Andrei > > Bye. > Michael. > -- > Michael Hirmke >-------------- next part -------------- An HTML attachment was scrubbed... URL: <https://dovecot.org/pipermail/dovecot/attachments/20200411/465059d5/attachment-0001.html>
Hi Aki, Any documentation on this topic? Mura Andrei On Mon, Apr 6, 2020 at 5:27 PM Aki Tuomi <aki.tuomi at 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 at 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 >-------------- next part -------------- An HTML attachment was scrubbed... URL: <https://dovecot.org/pipermail/dovecot/attachments/20200411/da003d98/attachment.html>