<div dir="ltr"><div>Dear Aki,</div><div>i think I got it.</div><div>Many thanks. it has to do with the permission settings.</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Feb 25, 2019 at 12:59 PM Aki Tuomi <<a href="mailto:aki.tuomi@open-xchange.com">aki.tuomi@open-xchange.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">drwx-----x kunal kunal Storage <br>
<br>
I'm guessing this point is being more restrictive. Can you try changing this into 0755?<br>
<br>
Also suddenly you are no longer using vmail but random user IDs. This only works with vmail.<br>
<br>
Aki<br>
<br>
> On 25 February 2019 19:56 Kunal A. <<a href="mailto:kunal.oa@gmail.com" target="_blank">kunal.oa@gmail.com</a>> wrote:<br>
> <br>
> <br>
> Hi,<br>
> Yes. Output ;-<br>
> <br>
> dr-xr-xr-x root root /<br>
> drwxr-xr-x root root run<br>
> drwxr-xr-x root root media<br>
> drwxr-x--x root root computer<br>
> drwx-----x kunal kunal Storage<br>
> drwx------ vmail vmail Email<br>
> drwx------ vmail vmail tmp<br>
> <br>
> <br>
> <br>
> On Mon, Feb 25, 2019 at 12:53 PM Aki Tuomi <<a href="mailto:aki.tuomi@open-xchange.com" target="_blank">aki.tuomi@open-xchange.com</a>> wrote:<br>
> > Can you run<br>
> > <br>
> > namei -vl /run/media/computer/Storage/Email/tmp<br>
> > <br>
> > the + at the end does not mean that, it means there is an extended POSIX ACL.<br>
> > <br>
> > Aki<br>
> > <br>
> > > On 25 February 2019 19:50 Kunal A. <<a href="mailto:kunal.oa@gmail.com" target="_blank">kunal.oa@gmail.com</a>> wrote:<br>
> > > <br>
> > > <br>
> > > Hey Aki,<br>
> > > Sorry for the trouble but I am still unable to get it working. The file permissions for upper files are now drwxr-xr-x. but I think they need to be drwxr-x--x+ ? <br>
> > > Any idea how to change it to that? <br>
> > > <br>
> > > <br>
> > > Error log is below:-<br>
> > > <br>
> > > doveadm(lightdm): Error: Can't open mailbox Storage/Email: stat(/run/media/computer/Storage/Email/tmp) failed: Permission denied (euid=976(lightdm) egid=976(lightdm) missing +x perm: /run/media/computer/Storage/Email, dir owned by 5000:5000 mode=0700)<br>
> > > doveadm(setroubleshoot): Error: stat(/run/media/computer/Storage/Email/tmp) failed: Permission denied (euid=975(setroubleshoot) egid=975(setroubleshoot) missing +x perm: /run/media/computer/Storage/Email, dir owned by 5000:5000 mode=0700)<br>
> > > doveadm(setroubleshoot): Error: Can't open mailbox Storage/Email: stat(/run/media/computer/Storage/Email/tmp) failed: Permission denied (euid=975(setroubleshoot) egid=975(setroubleshoot) missing +x perm: /run/media/computer/Storage/Email, dir owned by 5000:5000 mode=0700)<br>
> > > doveadm(dovenull): Error: stat(/run/media/computer/Storage/Email/tmp) failed: Permission denied (euid=974(dovenull) egid=973(dovenull) missing +x perm: /run/media/computer/Storage/Email, dir owned by 5000:5000 mode=0700)<br>
> > > ~ <br>
> > > <br>
> > > <br>
> > > <br>
> > > <br>
> > > On Mon, Feb 25, 2019 at 11:58 AM Kunal A. <<a href="mailto:kunal.oa@gmail.com" target="_blank">kunal.oa@gmail.com</a>> wrote:<br>
> > > > Dear Aki,<br>
> > > > Many thanks again. Thanks for explaining this. <br>
> > > > Very grateful for your assistance.<br>
> > > > Thanks a bunch !<br>
> > > > Kunal<br>
> > > > <br>
> > > > <br>
> > > > <br>
> > > > On Mon, Feb 25, 2019 at 11:56 AM Aki Tuomi <<a href="mailto:aki.tuomi@open-xchange.com" target="_blank">aki.tuomi@open-xchange.com</a>> wrote:<br>
> > > > > At minimum directories <br>
> > > > > <br>
> > > > > /run/media/computer/Storage/<br>
> > > > > <br>
> > > > > need to have o+x, so you can do<br>
> > > > > <br>
> > > > > chmod o+x /run /run/media /run/media/computer /run/media/computer/Storage<br>
> > > > > <br>
> > > > > and<br>
> > > > > <br>
> > > > > chown -R vmail:vmail /run/media/computer/Storage/Email<br>
> > > > > <br>
> > > > > Aki<br>
> > > > > <br>
> > > > > > On 25 February 2019 18:47 Kunal A. via dovecot <<a href="mailto:dovecot@dovecot.org" target="_blank">dovecot@dovecot.org</a>> wrote:<br>
> > > > > > <br>
> > > > > > <br>
> > > > > > Dear Aki,<br>
> > > > > > I have given permission to the folders Storage/Email to vmail.<br>
> > > > > > But the upper hierarchy is not under vmail .<br>
> > > > > > <br>
> > > > > > Full directory = /run/media/computer/Storage/Email<br>
> > > > > > <br>
> > > > > > /run/media/computer = not vmail <br>
> > > > > > Storage/Email = vmail<br>
> > > > > > <br>
> > > > > > How do I get this corrected ? It seems like vmail needs access through all through run/media/computer .<br>
> > > > > > <br>
> > > > > > Please excuse my ignorance as I am not very familiar with filesystem permissions. :-/ <br>
> > > > > > <br>
> > > > > > Sincere apologies for the trouble.<br>
> > > > > > <br>
> > > > > > Thanks<br>
> > > > > > Kunal A.<br>
> > > > > > <br>
> > > > > > <br>
> > > > > > <br>
> > > > > > <br>
> > > > > > <br>
> > > > > > <br>
> > > > > > <br>
> > > > > > <br>
> > > > > > On Mon, Feb 25, 2019 at 11:36 AM Aki Tuomi <<a href="mailto:aki.tuomi@open-xchange.com" target="_blank">aki.tuomi@open-xchange.com</a>> wrote:<br>
> > > > > > > I would only run it for the mail folders to be safe.<br>
> > > > > > > <br>
> > > > > > > Aki<br>
> > > > > > > <br>
> > > > > > > > On 25 February 2019 18:34 Kunal A. via dovecot <<a href="mailto:dovecot@dovecot.org" target="_blank">dovecot@dovecot.org</a>> wrote:<br>
> > > > > > > > <br>
> > > > > > > > <br>
> > > > > > > > Dear Aki,<br>
> > > > > > > > Many thanks for your feedback. Its what I figured I should do but I was not sure how safe it was.<br>
> > > > > > > > <br>
> > > > > > > > Would it make sense to execute the following to /run/media/computer so that the user/group is vmail?<br>
> > > > > > > > sudo chown -R vmail:vmail to the /run folder ? <br>
> > > > > > > > <br>
> > > > > > > > Also if this practice is safe to perform? <br>
> > > > > > > > <br>
> > > > > > > > Thanks<br>
> > > > > > > > Kunal A<br>
> > > > > > > > <br>
> > > > > > > > <br>
> > > > > > > > <br>
> > > > > > > > On Mon, Feb 25, 2019 at 11:20 AM Aki Tuomi <<a href="mailto:aki.tuomi@open-xchange.com" target="_blank">aki.tuomi@open-xchange.com</a>> wrote:<br>
> > > > > > > > > <br>
> > > > > > > > > > On 25 February 2019 18:19 Aki Tuomi via dovecot <<a href="mailto:dovecot@dovecot.org" target="_blank">dovecot@dovecot.org</a>> wrote:<br>
> > > > > > > > > > <br>
> > > > > > > > > > <br>
> > > > > > > > > > > On 25 February 2019 17:56 Kunal A. via dovecot <<a href="mailto:dovecot@dovecot.org" target="_blank">dovecot@dovecot.org</a>> wrote:<br>
> > > > > > > > > > > <br>
> > > > > > > > > > > <br>
> > > > > > > > > > > Hey Guys!<br>
> > > > > > > > > > > Many thanks for your feedback. I have kind of gotten it to work but I just struggling to get the permissions of the folder correct. Highly appreciate if someone could help me set the correct permission settings for it . Terribly sorry for my ignorance. <br>
> > > > > > > > > > > <br>
> > > > > > > > > > > My error msg is listed below : -<br>
> > > > > > > > > > > <br>
> > > > > > > > > > > doveadm(vmail): Error: stat(/run/media/computer/Storage/Email/tmp) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +x perm: /run/media/computer, dir owned by 0:0 mode=0750)<br>
> > > > > > > > > > > doveadm(vmail): Error: Can't open mailbox Storage/Email: stat(/run/media/computer/Storage/Email/tmp) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +x perm: /run/media/computer, dir owned by 0:0 <br>
> > > > > > > > > > > <br>
> > > > > > > > > > <br>
> > > > > > > > > > You need to give write permissions to vmail on /run/media/computer/Storage/Email<br>
> > > > > > > > > > <br>
> > > > > > > > > > You can <br>
> > > > > > > > > > - change owner to vmail<br>
> > > > > > > > > > - change group to vmail and add rwx for group<br>
> > > > > > > > > > - use posix ACLs<br>
> > > > > > > > > > - change mode to 0777 (unsafe)<br>
> > > > > > > > > > <br>
> > > > > > > > > > Aki<br>
> > > > > > > > > <br>
> > > > > > > > > And the same applies for all files & directories under /run/media/computer/Storage/Email<br>
> > > > > > > > > <br>
> > > > > > > > > Aki<br>
> > > > > > > > ><br>
> > > > > > ><br>
> > > > ><br>
> ><br>
</blockquote></div>