Using a Postfix - Dovecot - LDAP Combo, I want to configure my Dovecot that it uses one query for "normal" inboxes for users and another query for shared mailboxes.
My goal is that I have users e.g. "[email protected]" with an inbox and a shared imap folder "Shared/" that contains shared folders every user has access to.
The users come from one LDAP query (e.g. having a special field or a special class) and another query should define what shared folders exist (the shared folders would also have an own email address, e.g. press@, stage@, team@ etc.)
I know how I configure the normal mailboxes, but how can I setup the shared folders from a different query?
Is there any easy way to also setup access control to some of those shared folders from LDAP, e.g. that the user only has access of the user and the shared folder are in the same group or share an attribute?