Shared inbox?

Chris Ross cross+dovecot at distal.com
Thu May 28 02:57:52 UTC 2015


On May 25, 2015, at 15:55 , andy at thecsillags.com wrote:
> I'll assume you've seen these:
> http://wiki2.dovecot.org/SharedMailboxes/Shared and http://wiki2.dovecot.org/ACL

  Yup, I'd looked at those, but still left not understanding all of the options.  And you gave a doveadm command, which I appreciate very much, but surprises me since the materials in the ACL wiki page are all about file contents.  But I'll try your command.

> When I set them up that way, I shared the target inbox (we'll call it foo at example.com) to be accessible by user bar at example.com.  When I go into my email client, I'll see something like: shared/foo at example.com/INBOX as a folder.

  When you say "set them up that way", do you mean following the example config at SharedMailboxes/Shared ?  In that example, a mail_location is set at the outer level, which I think I don't want to do, and overridden in the shared namespace.  I'm assuming I don't want either of those, or at least that's what I'm going to try first.

  A question I have given your example above, is, did you set mail_shared_explicit_inbox ?  It's only briefly described what that effects, so I'm not sure which setting (on or off) will cause the shared/foo at example.com/INBOX you describe seeing.  I assume on, so I've turned it on.

> To give bar@ access to foo@'s INBOX, I ran something like this:
> 
> doveadm acl add \
>    -u foo at example.com \
>    INBOX user=bar at example.com \
>    lookup read write write-seen write-deleted insert\
>    post expunge create delete admin
> 
> http://wiki2.dovecot.org/Tools/Doveadm/ACL covers the details of what all of the "lookup read..." bits and more do.
> 
> The boxes don't have to be shared publicly if you use the "private" namespace.

  By "use the "private" namespace", do you mean specifying a separate namespace block in the config, like the one is declared in the example at http://wiki2.dovecot.org/SharedMailboxes/Shared ?  If so, that's what I've done.  If there is a way to have a single namespace declared that's both private and shared, I don't see that, so I have two as presented on that wiki page.

  And did/do you have "subscriptions=no" and "list=children" defined?  Again, as their only briefly described, I'm not 100% sure I understand the difference in behavior I'll see with different settings.

  And I'm pretty sure I read that there are ways to have mailboxes shared such that who has or hasn't read contents of the mailboxes is stored within the mailbox, and also ways to have it stored per reading user.  I'm not sure which I'll be seeing/using here.

  Thanks.  I'll ask more questions if I have more questions after a little trial and error on my own server.  :-)  Thanks for your help!

                                                       - Chris




More information about the dovecot mailing list