[Dovecot] workaround for shared maildirs

Giuliano Gavazzi dev+lists at humph.com
Sun Oct 19 11:10:17 EEST 2008


On S 18 Oct, 2008, at 22:06 , Giuliano Gavazzi wrote:
[...]
>
> namespace public {
>   separator = .
>   prefix = INBOX.Public.
>   inbox = no
>   location = maildir:/SharedMaildirs/Public:CONTROL=~/Maildir/ 
> control/Public:INDEX=~/Maildir/index/Public
>   hidden = yes
>   list = yes
>   subscriptions = yes
> }


Tested also with dovecot-1.2.alpha2.
As for file permission, my dovecot-shared is

  -rw-------+ 1 dovecot     staff    0 Oct 18 14:58 dovecot-shared

(all users belong to group staff).
Since this does not give access to the group, I have also an inherited  
ACL (file system ACL) that gives read/write access those users (or  
group of users) who need access to the public folders.
Works well, as far as I can tell, with no more:

... fchown() failed with file ...

on the index file. It turned out that this was happening when the  
shared folders had group access.

Now, I have to work out how to limit delete to message owners (and the  
T flag private) so that only owners or the administrator can delete  
files.

Giuliano


More information about the dovecot mailing list