[Dovecot] ACL in public folders
# dovecot --version 1.2.1
I'm trying to configure ACLs for public folders. I have:
namespace public { separator = / prefix = shared2/ location = maildir:/home/pubfolders2:INDEX=~/Maildir/public2 subscriptions = no list = children } protocol imap { mail_plugins = acl } plugin { acl = vfile }
I have /home/pubfolders2/dovecot-acl containing:
user=xyz lrwstiekxa
I've also hardlinked the file to /home/pubfolders2/.info (one of the public folders: that dir contains cur,tmp,new).
Since enabling ACLs in dovecot.conf, none of the users see the 'shared2' namespace.
I've clearly misunderstood something. I'm expecting user xyz to be able to see the public folder.
Grateful for any pointers.
Thanks, Keith
I have /home/pubfolders2/dovecot-acl containing:
The file isn't read by 1.2.1. Upgrade.
Thanks Timo. I think the Wiki is misleading: it says (on page http://wiki.dovecot.org/ACL):
"Dovecot v1.0 and v1.1 supports administrator-configured ACL files. v1.2+ supports also IMAP ACL extension..."
If 1.2.1 doesn't read the dovecot-acl file, how are ACLs configured in that version? Also, which from which version is the dovecot-acl file supported? There's no mention of it being version specific (other than
=v1.0) on the Wiki.
Thanks, Keith
On Fri, 2009-08-28 at 15:50 +0100, Keith Edmunds wrote:
I have /home/pubfolders2/dovecot-acl containing:
The file isn't read by 1.2.1. Upgrade.
Thanks Timo. I think the Wiki is misleading: it says (on page http://wiki.dovecot.org/ACL):
"Dovecot v1.0 and v1.1 supports administrator-configured ACL files. v1.2+ supports also IMAP ACL extension..."
If 1.2.1 doesn't read the dovecot-acl file, how are ACLs configured in that version?
I mean 1.2.1 doesn't read default acls from dovecot-acl file in mail root directory. I added that to 1.2.4. With older versions you'd have to put the dovecot-acl file to each maildir separately, or perhaps create a global ACL file named .DEFAULT (which kinda does the same for mailboxes in root directory).
[Sorry, sent to Timo at first attempt]
With older versions you'd have to put the dovecot-acl file to each maildir separately
Thanks, but it still isn't clear to me. I have (the same, hardlinked) dovecot-acl file in lots of different places:
# tree /home/pubfolders2/ -a
/home/pubfolders2/
|-- .info
| |-- cur
| |-- dovecot-acl
| |-- dovecot-shared
| |-- new
| | -- 1251457688.H922394P13547.magenta.tiger-computing.wbp |
-- tmp
|-- Maildir
| -- dovecot-acl
-- dovecot-acl
There isn't a 'maildir' folder as such for the public folders (I created the one shown above in desperation just to see if Dovecot would look there). Here's the dovecot.conf:
protocols = imap imaps disable_plaintext_auth = no log_timestamp = "%Y-%m-%d %H:%M:%S " namespace private { separator = / prefix = inbox = yes } namespace public { separator = / prefix = shared2/ location = maildir:/home/pubfolders2:INDEX=~/Maildir/public2 subscriptions = no list = children } mail_privileged_group = mail mail_access_groups = pubfolders2 protocol imap { mail_plugins = acl }
protocol pop3 { pop3_uidl_format = %08Xu%08Xv } protocol managesieve { } auth default { mechanisms = plain passdb pam { } userdb passwd { } user = root } dict { } plugin { acl = vfile }
That isn't working, so exactly where should the dovecot-acl file go for it to work?
Thanks, Keith
On Fri, 2009-08-28 at 16:28 +0100, Keith Edmunds wrote:
[Sorry, sent to Timo at first attempt]
With older versions you'd have to put the dovecot-acl file to each maildir separately
Thanks, but it still isn't clear to me. I have (the same, hardlinked) dovecot-acl file in lots of different places:
# tree /home/pubfolders2/ -a /home/pubfolders2/
Do you have dovecot-acl-list file here? See if deleting it helps?
On Fri, 2009-08-28 at 13:43 +0100, Keith Edmunds wrote:
namespace public { separator = / prefix = shared2/ location = maildir:/home/pubfolders2:INDEX=~/Maildir/public2 subscriptions = no list = children } .. Since enabling ACLs in dovecot.conf, none of the users see the 'shared2' namespace.
Does it work if you use list=yes instead of list=children?
participants (2)
-
Keith Edmunds
-
Timo Sirainen