[Dovecot] Shared maildirs

Reikan - Sidney Ferreira sidney at reikan.com.br
Sun Jan 29 19:39:13 EET 2006


	Well, aout 2 month ago, I made the same question and this is what I got:

---------
Now, correct me if I'm wrong.  Although the symlink option would work,
wouldn't he have to run Dovecot rootless then?  And I believe that is a
security risk then, no?

Public folders should be a bit easier than symlinks which seems to be quite
a kludge.  I have experience with the public folders in MS Exchange, but not
in IMAP or anything.  It has to be possible without a kludge.  But, then
again, I'm probably wrong.

TedSki


Peter Fern wrote:

 >>
 >> Are you familiar with symlinking/hardlinking under unix?  If
 >> not, it's
 >> fairly straight forward, and yes - they are like file aliases.  I
 >> suggest you google for it to see how it works, or 'man ln'.
 >> You'll need
 >> to understand this to make the solution below work.
 >>
 >> For your scenario, linking individual files into user's mailboxes
 >> probably isn't the best method - better to use the inbuilt
 >> shared folder
 >> support in dovecot.  There are two methods of provisioning shared
 >> mailboxes in dovecot - using the namespace configuration
 >> directives, or
 >> symlinking the folders in.  The namespace method will make shared
 >> folders available to *all* mail users, so if you want
 >> opt-in/-out you'll
 >> need to use the symlink method, so for your setup, this would be the
 >> easiest method.
 >>
 >> A quick outline on how to make this happen:
 >>
 >> 1.  Create a central store somewhere containing your folders
 >> to be shared.
 >> eg:
 >> /var/mail/public/.MySQL
 >> /var/mail/public/.PostgreSQL
 >> etc...
 >> 2.  In each of these folders create a file called
 >> 'dovecot-shared' and
 >> set file permissions to 0644 and set the group to one that your mail
 >> users will be members of - this will determine the
 >> permissions of mails
 >> within the folder.
 >> 3.  When a user signs up to the folder, create a symlink to
 >> the relevant
 >> folder under the user's maildir.
 >>
 >> Then just drop mails into these maildirs.  This is all a little
 >> off-the-cuff, so if anyone disagrees yell out.
 >>
 >> Cheers,
 >> Pete
 >>

[SNIP]
------------------------




Charles Marcus wrote:
>>>> Can anyone give a realistic timeframe for when Shred maildirs will 
>>>> be officially supported?
> 
> 
>>> What do you need from shared folders? Is it enough if administrator sets
>>> them up, or would users also need to set them up via ACLs?
> 
> 
>> the most important thing regarding shared folders for me would be
>> users having their own seen flags on the mailbox.
> 
> 
> But... I would also like for these to be configurable, because there is 
> actually one set of Shared folders we have right now that I *don't* want 
> this to happen on - our incoming Fax folder. We have 5 people who have 
> access to this folder, and incoming faxes get routed on a first-seen 
> basis - and once one has gotten routed (shows as 'read' by the person 
> doing the routing), I want it to be seen as read by the others.
> 
> I also need support for ACLs, because some people/groups will need full 
> control, and others will need read-only access. Unix perms (one group 
> and one owner) is not enough.
> 
> Yes, it will be nice if/when you get around to supporting the ability 
> for Users to Share their own folders, but all I care about is official 
> support (not a 'kludge') via administrator assigning the ACLs.
> 
> Thanks!
> 
> Charles
> 
> 
> 
> 



More information about the dovecot mailing list