[Dovecot] ACLs - creating new top level folders
rog7993 at web.de
rog7993 at web.de
Wed May 22 20:29:40 EEST 2013
Hello,
Am 22.05.2013 18:35, schrieb Timo Sirainen:
> With v2.2.2: http://hg.dovecot.org/dovecot-2.2/rev/714dfc072d60
>
> Doesn't work for public namespaces though.
Thanks for this hint. It seems I should upgrade our server in near future.
Public namespaces do not have this problem. While I was looking for a
solution for my problem, I also played with them instead of a shared
namespace. With this config snippet:
namespace public {
separator = /
prefix = "Shared\ Folders/"
location =
maildir:/home/mail01/shared/Maildir:INDEX=/srv/dovecot/index/shared:CONTROL=/srv/dovecot/control/shared
subscriptions = no
list = children
}
This leads to this folder layout:
/home/mail01/shared/Maildir/.project1/cur
/home/mail01/shared/Maildir/.project1/new
/home/mail01/shared/Maildir/.project1/tmp
/home/mail01/shared/Maildir/.project1/dovecot-acl
/home/mail01/shared/Maildir/.project1.bbbb/cur
/home/mail01/shared/Maildir/.project1.bbbb/new
/home/mail01/shared/Maildir/.project1.bbbb/tmp
/home/mail01/shared/Maildir/.project1.bbbb/dovecot-acl
/home/mail01/shared/Maildir/.project1.bbbb/maildirfolder
/home/mail01/shared/Maildir/.project1.jjjjj/cur
/home/mail01/shared/Maildir/.project1.jjjjj/new
/home/mail01/shared/Maildir/.project1.jjjjj/tmp
/home/mail01/shared/Maildir/.project1.jjjjj/dovecot-acl
/home/mail01/shared/Maildir/.project1.jjjjj/maildirfolder
Now I have a parent folder, where I can place the dovecot-acl file:
/home/mail01/shared/Maildir/.project1/
Probably because this folder is not handled as INBOX like with private
and shared namespaces. It would be a little tricky to put new mail in
these kind of folders with Dovecot LDA. But it could be done. The next
question would be, where to put sieve scripts? The main reason, why I
don't like this solution, is the fear, that this can be problematic from
a performance view. Access permissions of public namespaces are not
listed in the file "shared-mailboxes". What if the folder
"/home/mail01/shared/Maildir" contains some thousand subfolders? Is this
a problem, because every imap process have to open all dovecot-acl files
in these directories?
Ingo Rogalsky
More information about the dovecot
mailing list