Austin Witmer
2022-Aug-20 14:52 UTC
Permission denied UNIX perms appear ok (ACL/MAC wrong?))
Hello all! Recently I upgraded my mail server to Ubuntu 22.04 LTS and ever since then I am periodically getting some dovecot errors like the below in my mail log. As far as I can tell, my unix perms are just fine. What is ACL/MAC? Aug 20 14:41:58 mail dovecot: imap(user at domain.com)<56316><1NieGKPmuOdKwxVI>: Error: Mailbox INBOX: stat(/mnt/volume1/mailserver/plain/maildir/domain.com/user/dovecot.index.log) failed: Permission denied (euid=1000(austin) egid=1000(austin) UNIX perms appear ok (ACL/MAC wrong?)) And here is the listing showing the permissions for that file. austin at mail:~$ ls -la /mnt/volume1/mailserver/plain/maildir/domain.com/user/dovecot.index.log -rwxrwxr-- 1 austin austin 15796 Aug 20 14:41 /mnt/volume1/mailserver/plain/maildir/domain.com/user/dovecot.index.log What in the world is causing these errors, and what can I do about them? Thanks in advance! Austin Witmer -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://dovecot.org/pipermail/dovecot/attachments/20220820/bc44688e/attachment.htm>
Austin Witmer
2022-Aug-20 15:03 UTC
Permission denied UNIX perms appear ok (ACL/MAC wrong?))
Is there any chance that high memory utilization could be responsible for some of these errors? I?ve noticed recently that my memory is running anywhere from 80-85%. Austin Witmer> On Aug 20, 2022, at 8:52 AM, Austin Witmer <austin96 at emypeople.net> wrote: > > Hello all! > > Recently I upgraded my mail server to Ubuntu 22.04 LTS and ever since then I am periodically getting some dovecot errors like the below in my mail log. As far as I can tell, my unix perms are just fine. What is ACL/MAC? > > Aug 20 14:41:58 mail dovecot: imap(user at domain.com <mailto:user at domain.com>)<56316><1NieGKPmuOdKwxVI>: Error: Mailbox INBOX: stat(/mnt/volume1/mailserver/plain/maildir/domain.com/user/dovecot.index.log <http://domain.com/user/dovecot.index.log>) failed: Permission denied (euid=1000(austin) egid=1000(austin) UNIX perms appear ok (ACL/MAC wrong?)) > > And here is the listing showing the permissions for that file. > > austin at mail:~$ ls -la /mnt/volume1/mailserver/plain/maildir/domain.com/user/dovecot.index.log <http://domain.com/user/dovecot.index.log> > -rwxrwxr-- 1 austin austin 15796 Aug 20 14:41 /mnt/volume1/mailserver/plain/maildir/domain.com/user/dovecot.index.log <http://domain.com/user/dovecot.index.log> > > What in the world is causing these errors, and what can I do about them? > > Thanks in advance! > > Austin Witmer-------------- next part -------------- An HTML attachment was scrubbed... URL: <https://dovecot.org/pipermail/dovecot/attachments/20220820/8c04ad01/attachment.htm>
Erwan David
2022-Aug-20 15:06 UTC
Permission denied UNIX perms appear ok (ACL/MAC wrong?))
Le 20/08/2022 ? 16:52, Austin Witmer a ?crit?:> Hello all! > > Recently I upgraded my mail server to Ubuntu 22.04 LTS and ever since > then I am periodically getting some dovecot errors like the below in > my mail log. As far as I can tell, my unix perms are just fine. What > is ACL/MAC? > > Aug 20 14:41:58 mail dovecot: > imap(user at domain.com)<56316><1NieGKPmuOdKwxVI>: Error: Mailbox INBOX: > stat(/mnt/volume1/mailserver/plain/maildir/domain.com/user/dovecot.index.log > <http://domain.com/user/dovecot.index.log>) failed: Permission denied > (euid=1000(austin) egid=1000(austin) UNIX perms appear ok (ACL/MAC > wrong?)) > > And here is the listing showing the permissions for that file. > > *austin at mail*:*~*$ ls -la > /mnt/volume1/mailserver/plain/maildir/domain.com/user/dovecot.index.log > <http://domain.com/user/dovecot.index.log> > -rwxrwxr-- 1 austin austin 15796 Aug 20 14:41 > */mnt/volume1/mailserver/plain/maildir/domain.com/user/dovecot.index.log > <http://domain.com/user/dovecot.index.log>* > > What in the world is causing these errors, and what can I do about them? > > Thanks in advance! > > Austin WitmerDid you check wether your linux distribution uses SeLINUX or Apparmor ? In that case you would have to check their policy to give dovecot access to this directory.
Am 20.08.22 um 16:52 schrieb Austin Witmer:> Hello all! > > Recently I upgraded my mail server to Ubuntu 22.04 LTS and ever since > then I am periodically getting some dovecot errors like the below in > my mail log. As far as I can tell, my unix perms are just fine. What > is ACL/MAC? > > Aug 20 14:41:58 mail dovecot: > imap(user at domain.com)<56316><1NieGKPmuOdKwxVI>: Error: Mailbox INBOX: > stat(/mnt/volume1/mailserver/plain/maildir/domain.com/user/dovecot.index.log > <http://domain.com/user/dovecot.index.log>) failed: Permission denied > (euid=1000(austin) egid=1000(austin) UNIX perms appear ok (ACL/MAC > wrong?)) > > And here is the listing showing the permissions for that file. > > *austin at mail*:*~*$ ls -la > /mnt/volume1/mailserver/plain/maildir/domain.com/user/dovecot.index.log > <http://domain.com/user/dovecot.index.log> > -rwxrwxr-- 1 austin austin 15796 Aug 20 14:41 > */mnt/volume1/mailserver/plain/maildir/domain.com/user/dovecot.index.log > <http://domain.com/user/dovecot.index.log>* > > What in the world is causing these errors, and what can I do about them? > > Thanks in advance! > > Austin WitmerDo you use any ACLs? Is this just a block device mounted or do you use any network file sharing like nfs? ACLs you can check by 'getfacl foo'. -- Cheers spi