Re: Missing permissions

2020-04-12 Thread Andrei Petru Mura
Hi Aki, You did a great job. God bless you! :) I think it will work now. I'll come with feedback if that's the case after applying this on my server. I just want to mention one little thing bellow (which possibly has some importance). In my system, instead of /home/mail/domain/test/Maildir, I have

Re: Missing permissions

2020-04-12 Thread Aki Tuomi
> On 11/04/2020 15:57 Aki Tuomi wrote: > > > > > > On 11/04/2020 15:47 Alex JOST < jost+li...@dimejo.at> wrote: > > > > > > > > > > Am 11.04.2020 um 13:00 schrieb Andrei Petru Mura: > > > Hi, > > > > > > > > > After configuring systemd unit with ReadWritePaths=/home/mail, I get the > >

Re: Missing permissions

2020-04-11 Thread Aki Tuomi
On 11/04/2020 15:47 Alex JOST < jost+li...@dimejo.at> wrote: Am 11.04.2020 um 13:00 schrieb Andrei Petru Mura: Hi, After configuring systemd unit with ReadWritePaths=/home/mail, I g

Re: Missing permissions

2020-04-11 Thread Alex JOST
Am 11.04.2020 um 13:00 schrieb Andrei Petru Mura: Hi, After configuring systemd unit with ReadWritePaths=/home/mail, I get the following error logs in audit: type=AVC msg=audit(1586604621.637:6736): avc: denied { write } for pid=12750 comm="imap" name="Maildir" dev="dm-3" ino=438370738 scont

Re: Missing permissions

2020-04-11 Thread Andrei Petru Mura
Hi, After configuring systemd unit with ReadWritePaths=/home/mail, I get the following error logs in audit: type=AVC msg=audit(1586604621.637:6736): avc: denied { write } for pid=12750 comm="imap" name="Maildir" dev="dm-3" ino=438370738 scontext=system_u:system_r:dovecot_t:s0 tcontext=unconfine

Re: Missing permissions

2020-04-11 Thread Andrei Petru Mura
I think I found here what I'm interested in: https://doc.dovecot.org/admin_manual/system_users_used_by_dovecot/. On Sat, Apr 11, 2020 at 9:52 AM Andrei Petru Mura wrote: > Hi Aki, > > Thanks. I was especially interested in documentation related to dovecot > and it's users permissions, the way in

Re: Missing permissions

2020-04-10 Thread Andrei Petru Mura
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 w

Re: Missing permissions

2020-04-10 Thread Aki Tuomi
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 wrote: > > > Hi Aki, > > Any documentation on this topic? > > Mura Andrei

Re: Missing permissions

2020-04-10 Thread Andrei Petru Mura
Hi Aki, Any documentation on this topic? Mura Andrei On Mon, Apr 6, 2020 at 5:27 PM Aki Tuomi 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.l

Re: Missing permissions

2020-04-10 Thread Andrei Petru Mura
Hi Michael, I don't have apparmour installed in my system. Mura Andrei On Mon, Apr 6, 2020 at 10:11 PM Michael Hirmke 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

Re: Missing permissions

2020-04-06 Thread Michael Hirmke
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 authenti

Re: Missing permissions

2020-04-06 Thread Aki Tuomi
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 wr