# Problems with files ownership under dovecot

**URL:** <https://forum.hestiacp.com/t/problems-with-files-ownership-under-dovecot/4075>\
**Category:** Uncategorized\
**Created:** [July 19, 2021, 3:33pm UTC](https://forum.hestiacp.com/t/problems-with-files-ownership-under-dovecot/4075 "2021-07-19T15:33:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![blockademarc](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/b/f14d63/32.png) [@blockademarc](https://forum.hestiacp.com/u/blockademarc)\
**Post date:** [July 19, 2021, 3:33pm UTC](https://forum.hestiacp.com/t/problems-with-files-ownership-under-dovecot/4075/1 "2021-07-19T15:33:24Z")

</div>

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([info@XXXXX.com](mailto:info@XXXXX.com))\<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([info@XXXXX.com](mailto:info@XXXXX.com))\<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([info@XXXXX.com](mailto:info@XXXXX.com))\<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 [Change Group Operation Not Permitted — Dovecot documentation](http://wiki2.dovecot.org/Errors/ChgrpNoPerm))

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](http://subdomain.yyyyy.com) for hestiauser which already had a domain called [yyyyy.com](http://yyyyy.com).

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

Thank you for your support !

Marc
