Skip to content

Commit 3948f5d

Browse files
committed
core/plugins/acl: Document named acl lists
1 parent f85c498 commit 3948f5d

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

docs/core/plugins/acl.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,44 @@ The [[setting,acl_groups]] setting can be dynamically set via
5656
To enable the IMAP ACL commands, you must load the [[plugin,imap_acl]]. This
5757
plugin should only be loaded inside a `protocol imap {}` block.
5858

59+
## Named ACL lists
60+
61+
You can use the [[link,settings_groups_includes]] to create named ACL lists.
62+
63+
```[dovecot.conf]
64+
group @acl_defaults team-a {
65+
acl team-a-can-read {
66+
id=group=team-a
67+
rights=lr
68+
}
69+
acl admin-can-admin {
70+
id=user=admin
71+
rights=lrwstipekxa
72+
}
73+
}
74+
75+
group @acl_defaults team-b {
76+
acl team-b-can-read {
77+
id=group=team-b
78+
rights=lr
79+
}
80+
acl admin-can-admin {
81+
id=user=admin
82+
rights=lrwstipekxa
83+
}
84+
}
85+
86+
87+
namespace public {
88+
mailbox team_a/* {
89+
@acl_defaults=team-a
90+
}
91+
mailbox team_b/* {
92+
@acl_defaults=team-b
93+
}
94+
}
95+
```
96+
5997
### Sample Configuration
6098

6199
```[dovecot.conf]

0 commit comments

Comments
 (0)