I'm running dovecot 2.2.16 on my FreeBSD mail server. I've read information on the wiki about setting up shared mailboxes, but I want to do something that isn't really coved by the instructions I was reading there. My son (now 7 years old) has an account on the system, but doesn't use it directly. But, for things he's interested in like Minecraft, and/or the local zoo, we have given out his email address in a small number of places. What I would like to set up, both for now while he's not actually ever reading his email himself, and perhaps even for the future when we teach and/or allow for that, is for my wife and I to be able to "view" his inbox from our accounts. The instructions for setting up shared folders all are written so that they're secondary folders to all accounts. Is there a way to either (a) configure sharing someone elses Inbox by other accounts, or (b) setting up a separately configured shared folder to _act_ as the inbox for a single account? Thanks. Any suggestions to achieve the above described end goal would be appreciated. - Chris
May 25 2015 1:01 PM, "Chris Ross" <cross+dovecot at distal.com> wrote:> I'm running dovecot 2.2.16 on my FreeBSD mail server. I've read information on the wiki about > setting up shared mailboxes, but I want to do something that isn't really coved by the instructions > I was reading there. My son (now 7 years old) has an account on the system, but doesn't use it > directly. But, for things he's interested in like Minecraft, and/or the local zoo, we have given > out his email address in a small number of places. What I would like to set up, both for now while > he's not actually ever reading his email himself, and perhaps even for the future when we teach > and/or allow for that, is for my wife and I to be able to "view" his inbox from our accounts. > > The instructions for setting up shared folders all are written so that they're secondary folders to > all accounts. Is there a way to either (a) configure sharing someone elses Inbox by other accounts, > or (b) setting up a separately configured shared folder to _act_ as the inbox for a single account? > > Thanks. Any suggestions to achieve the above described end goal would be appreciated. > > - ChrisI'll assume you've seen these: http://wiki2.dovecot.org/SharedMailboxes/Shared and http://wiki2.dovecot.org/ACL 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. 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. Hopefully that helps! Cheers, Drew Csillag
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/ACLYup, 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
On May 25, 2015 12:59:45 PM EDT, Chris Ross <cross+dovecot at distal.com> wrote:> >I'm running dovecot 2.2.16 on my FreeBSD mail server. I've read >information on the wiki about setting up shared mailboxes, but I want >to do something that isn't really coved by the instructions I was >reading there. My son (now 7 years old) has an account on the system, >but doesn't use it directly. But, for things he's interested in like >Minecraft, and/or the local zoo, we have given out his email address in >a small number of places. What I would like to set up, both for now >while he's not actually ever reading his email himself, and perhaps >even for the future when we teach and/or allow for that, is for my wife >and I to be able to "view" his inbox from our accounts. > >The instructions for setting up shared folders all are written so that >they're secondary folders to all accounts. Is there a way to either >(a) configure sharing someone elses Inbox by other accounts, or (b) >setting up a separately configured shared folder to _act_ as the inbox >for a single account? > >Thanks. Any suggestions to achieve the above described end goal would >be appreciated. > > - ChrisLook in to dovecot's master user feature as well.