Hi Anton,
On Mon, 07 Apr 2025 at 12:21:39PM -0000, Anton Shevtsov via dovecot wrote:
No success yet.
anyway, thanks for changing the config and the feedback.
After
grep ^auth_socket_path 10-mail.conf
auth_socket_path = /var/run/dovecot/auth-userdb
OK
grep -A 5 'unix_listener auth-userdb' 10-master.conf
unix_listener auth-userdb { #mode = 0666 user = mail group = mail }
Please only show the output of 'doveconf -n'. The content of the config file(s) is not relevant as we must be sure that the effective config is fine.
shared-mailboxes.db is present
ll /var/mail/mymail.domain/shared-mailboxes.db
-rw-rw---- 1 mail mail 120 apr 4 17:12 /var/mail/mymail.domain/shared-mailboxes.db
OK
If I delete the file /var/mail/mymail.domain/shared-mailboxes.db, it will still be created
cat /var/mail/mymail.domain/shared-mailboxes.db
shared/shared-boxes/user/domainuser1/apr07@mymail.domain 1 shared/shared-boxes/user/domainuser1/domainuser2@mymail.domain 1
I'm not sure, but I would expect that there is content like this:
shared/shared-boxes/user/domainuser1@mymail.domain/apr07@mymail.domain 1 shared/shared-boxes/user/domainuser1@mymail.domain/domainuser2@mymail.domain 1
(domainuser2 share "newfolder1" for domainuser1. And apr07 share "sharefolder" for domainuser1)
ll /var/mail/mymail.domain/apr07/dovecot-acl-list
-rw------- 1 mail mail 23 apr 7 17:11 /var/mail/mymail.domain/apr07/dovecot-acl-list
OK
cat /var/mail/mymail.domain/apr07/dovecot-acl-list
1744027894 sharefolder
OK
cat /var/mail/mymail.domain/domainuser2/dovecot-acl-list
1744027957 newfolder1
OK
ll /var/mail/mymail.domain/domainuser2/ | grep newfolder1
drwx--S--- 5 mail mail 4096 apr 7 17:12 .newfolder1/
ll /var/mail/mymail.domain/apr07/ | grep sharefolder
drwx--S--- 5 mail mail 4096 apr 7 17:11 .sharefolder/
Please have a look at the folders '.newfolder1' and '.sharefolder' - are there files named 'dovecot-acl' and if yes, what's their content?
You could also check this:
doveadm acl get -u apr07@mymail.domain sharefolder doveadm acl get -u domainuser2@mymail.domain newfolder1
Regards, Markus