If I understand you correctly this is what you want or are requesting;
- If its possible to edit dovecot-acl directly
- You want to share folder for users who you dont always know the passwords
Again, assuming this is what you want;
As David says, Its not advisable, it didnt even work for me when I tried to edit the ACL file directly.
Well, there is a second method I found out for sharing User folders !
With this method you do not have to know the User_B, User_C etc password ! I only listed method one (in my above previous post) because I thought you only needed to share one or two users folders.
With the second method you can share several users, line by line. Its much faster and easier, though the command looks crude.
Going by above example of User_A wanting to share User_B INBOX and needs read, lookup and insert ACLs
doveadm acl set -u User_A@example.com Shared/User_B@example.com/INBOX "User_A@example.com" lookup read insert
That's it. Notice that this time you use the full ACL name and not abbreviation. It wont work if you use lri in the example above.
= Check if the folder got shared
doveadm mailbox list -u User_A@example.com
= Confirm the acls that got created
doveadm acl get -u User_A@example.com Shared/User_B@example.com/INBOX
I hope this is you want.