[Dovecot] Shared mailboxes unix permissions

Thomas Hummel hummel at pasteur.fr
Fri Apr 9 12:17:26 EEST 2010


On Wed, Mar 31, 2010 at 07:40:29PM +0200, Thomas Hummel wrote:
> Hello Timo,
> 
> I'm running dovecot-1.2.11/Maildir and plan to migrate to single UID mailboxes
> some day, but for now, I've got "system" users and I'm testing permissions
> handling in order to set up shared mailboxes.
> 
> The private namespace mailboxes location is
> 
>   location = maildir:/courriel/boites/%u:CONTROL=/courriel/meta/%u:INDEX=/var/dovecot-test/indexes/%1u/%u
> 
> I've 
> 
>   . created a 'doveshared' unix group
>   . added 'mail_access_groups = doveshared'
>   . chmod/chgrp the maildir and control dirs like this :
> 
>      drwxrws---  7 doveimap  doveshared  4096 Mar 31 18:47 /courriel/boites/doveimap
>      drwxrws---  5 doveimap  doveshared  4096 Mar 31 18:47 /courriel/meta/doveimap
> 
>    [which were empty]
> 
>   . added 'acl_shared_dict = file:/var/dovecot-test/dict/shared-mailboxes' with
> 
>       drwxrwxs--  2 root  doveshared  512 Mar 31 18:44 /var/dovecot-test/dict
> 
>    [which were empty]
> 
> Everything gets created with the permission I was expecting, except :
> 
>   -rw-------  1 doveimap  doveshared  8 Mar 31 18:47 /courriel/meta/doveimap/dovecot-uidvalidity
>   -rw-------  1 doveimap  doveshared  0 Mar 31 18:44 /courriel/meta/doveimap/dovecot-uidvalidity.4bb37be4
> 
> and
> 
>   -rw-------  1 doveimap  doveshared  0 Mar 31 18:44 /var/dovecot-test/dict/shared-mailboxes
> 
> I can't see the explanation in
> 
>   http://wiki.dovecot.org/SharedMailboxes/Permissions
> 
> and the 'dovecot-shared' file doesn't help (besides, my understanding is that
> in 1.2x, it's for backward compatibility reason).
> 
> Any idea ?

Timo ?

-- 
Thomas Hummel 	    | Institut Pasteur
<hummel at pasteur.fr> | Pôle informatique - systèmes et réseau


More information about the dovecot mailing list