[Dovecot] default ACL - in namespace's mail root directory ?
I have a namespace like this:
namespace { type = private separator = / prefix = location = maildir:/var/ferrari/users/%d/%n:INDEX=/var/ferrari/indexes/3/4/%u:CONTROL=/var/ferrari/indexes/3/4/%u
inbox = no list = yes subscriptions = yes }
Where do I store "dovecot-acl" as the default ACL ?
/Per Jessen, Zürich
On Thu, Sep 16, 2010 at 08:51:16AM +0200, Per Jessen wrote:
I have a namespace like this:
namespace { type = private separator = / prefix = location = maildir:/var/ferrari/users/%d/%n:INDEX=/var/ferrari/indexes/3/4/%u:CONTROL=/var/ferrari/indexes/3/4/%u
inbox = no list = yes subscriptions = yes }
Where do I store "dovecot-acl" as the default ACL ?
Based on the assumption this is a current version, one option would be setting a global acl for the INBOX like:
plugin { acl = vfile:/var/ferrari/acls/%d:cache_secs=300 }
$ cat /var/ferrari/acls/<%d>/INBOX owner lrwstiekxap
Putting the 'dovecot-acl' inside the maildir root should also work, but may require deploying it to new users via some mechanism.
Regards Thomas
Thomas Leuxner wrote:
On Thu, Sep 16, 2010 at 08:51:16AM +0200, Per Jessen wrote:
I have a namespace like this:
namespace { type = private separator = / prefix = location =
maildir:/var/ferrari/users/%d/%n:INDEX=/var/ferrari/indexes/3/4/%u:CONTROL=/var/ferrari/indexes/3/4/%u
inbox = no list = yes subscriptions = yes }
Where do I store "dovecot-acl" as the default ACL ?
Based on the assumption this is a current version,
Sorry, yes, this is 2.0.1.
[snip]
Putting the 'dovecot-acl' inside the maildir root should also work, but may require deploying it to new users via some mechanism.
In the above, what is the maildir root? /var/ferrari/users/?
I've got a global ACL working, but the problem I'm trying to solve is:
/etc/dovecot/acl/<maildir1> /etc/dovecot/acl/<maildir2> /etc/dovecot/acl/<maildir3> /etc/dovecot/acl/<maildir4>
These all say the same: "owner lr". Every now and then I will be altering the list of <maildirX>, e.g. add <maildir5> etc. I would prefer not to have create /etc/dovecot/acl/<maildir5>, hence I was looking to use set a default ACL.
/Per Jessen, Zürich
On 16.09.2010 at 17:12 Per Jessen wrote:
In the above, what is the maildir root? /var/ferrari/users/?
I've got a global ACL working, but the problem I'm trying to solve is:
You can put 'dovecot-acl' files inside a mailbox at the ( cur | new | tmp ) hierarchy level for maildirs, but note there is no recursion across subtrees.
Regards Thomas
Timo Sirainen wrote:
On Thu, 2010-09-16 at 08:51 +0200, Per Jessen wrote:
Where do I store "dovecot-acl" as the default ACL ?
There is currently no support for default ACL file.
Thanks for clearing that up Timo - I was beginning to think so too, but the wiki was contradicting me.
"The default ACLs are read from "dovecot-acl" file in the namespace's mail root directory".
/Per Jessen, Zürich
On Thu, 2010-09-16 at 23:08 +0200, Per Jessen wrote:
"The default ACLs are read from "dovecot-acl" file in the namespace's mail root directory".
Well, it makes more sense if you read the previous paragraph about what the "default ACLs" are :) But yeah, I'll make it a bit clearer.
Timo Sirainen wrote:
On Thu, 2010-09-16 at 23:08 +0200, Per Jessen wrote:
"The default ACLs are read from "dovecot-acl" file in the namespace's mail root directory".
Well, it makes more sense if you read the previous paragraph about what the "default ACLs" are :) But yeah, I'll make it a bit clearer.
Uh, I thought I had, but I am new to dovecot. My understanding is that I should be able to put a "dovecot-acl" file in a <root> somewhere and that would then act as the default.
/Per Jessen, Zürich
On 17.9.2010, at 20.34, Per Jessen wrote:
Uh, I thought I had, but I am new to dovecot. My understanding is that I should be able to put a "dovecot-acl" file in a <root> somewhere and that would then act as the default.
Yeah, that would be a nice feature to have some day. But probably will have to wait until v2.1.
participants (3)
-
Per Jessen
-
Thomas Leuxner
-
Timo Sirainen