Problems with files ownership under dovecot

Hi,

I was not able to find any posting regarding this issue:

In found in /var/log/dovecot.log this error messages:

Jul 19 16:58:31 imap([email protected])<24810><THOoK3vHzOp/AAAB>: Error: Couldn’t create mailbox list lock /home/hestiauser/mail/XXXXX.com/info/mailboxes.lock: file_create_locked(/home/hestiauser/mail/XXXXX.com/info/mailboxes.lock) failed: safe_mkstemp(/home/hestiauser/mail/XXXXX.com/info/mailboxes.lock) failed: Operation not permitted
Jul 19 16:58:31 imap([email protected])<24810><THOoK3vHzOp/AAAB>: Error: Mailbox Archive: Failed to autocreate mailbox: Internal error occurred. Refer to hestiauserer log for more information. [2021-07-19 16:58:31]
Jul 19 16:58:31 imap([email protected])<24810><THOoK3vHzOp/AAAB>: Error: fchown(/home/hestiauser/mail/XXXXX.com/info/mailboxes.lock48442a3aa4b61088, group=1006(hestiauser)) failed: Operation not permitted (egid=8(mail), group based on /home/hestiauser/mail/XXXXX.com/info - see Errors/ChgrpNoPerm - Dovecot Wiki)

After some google search I changed the owner for all files at /home/hestiauser/mail/XXXXX.com/info:

chown -R serv:mail /home/hestiauser/mail/XXXXX.com/info/

Now it seems to work properly.

The way how I got into this was I created a new domain "subdomain.yyyyy.com for hestiauser which already had a domain called yyyyy.com.

I am using Hestia 1.4.7 on Debian 10. Any idea on it?

Thank you for your support !

Marc