Still attempting to get email folder sharing working. I think I'm closer. I tried the above modifications but they don't seem to work as expected. Below is a diff of my modifications of the dovecot.conf.mas thus far. The shared folder show up for users, the shared-mailboxes.db gets written to, but shared folders don't yet appear under the "Shared" folder just yet.
I think the shared-mailboxes.db is not correct, so I'm taking that on next. I think it as something to do with the user name. Contents is currently formated like this:
shared/shared-boxes/user/{user1}/{user2}@{domain}
Probably has to be more like shared/shared-boxes/user/{user1}/{user2} or shared/shared-boxes/user/{user1}@{domain}/{user2}@{domain}, but not the mix of them I'm seeing. I'll have to read the Dovecot docs to be sure.
Diff results:
/usr/share/ebox/stubs/mail$ diff dovecot.conf.mas dovecot.conf.mas.orig
268c268
< namespace private {
---
> #namespace private {
272c272
< separator = /
---
> #separator =
276c276
< prefix =
---
> #prefix =
284c284
< inbox = yes
---
> #inbox = no
300,301c300,301
< subscriptions = yes
< }
---
> #subscriptions = yes
> #}
304,305c304,305
< namespace shared {
< separator = /
---
> #namespace shared {
> #separator = /
309c309
< prefix = Shared/%%u/
---
> #prefix = shared/%%u/
315d314
< location = maildir:<% $mailboxesDir %>/%%d/%%n:INDEX=<% $mailboxesDir %>/%d/%n/Shared/%%u
318c317
< subscriptions = no
---
> #subscriptions = no
322,323c321
< list = yes
< }
---
> #}
607c605
< % my @imapPlugins = qw(quota imap_quota autocreate acl imap_acl);
---
> % my @imapPlugins = qw(quota imap_quota autocreate);
1261d1258
< acl = vfile
1266d1262
< acl_shared_dict = file:<% $mailboxesDir %>/%d/shared-mailboxes.db