Update u_e-dovecot-public_folder.md

Dieser Commit ist enthalten in:
André Peters 2020-07-07 20:42:26 +02:00 committet von GitHub
Ursprung 963e0ef7b2
Commit 5d5f164869
Es konnte kein GPG-SchlĂĽssel zu dieser Signatur gefunden werden
GPG-SchlĂĽssel-ID: 4AEE18F83AFDEB23

Datei anzeigen

@ -19,7 +19,7 @@ namespace {
The new mailbox in the public namespace will be auto-subscribed by users. The new mailbox in the public namespace will be auto-subscribed by users.
To allow all authenticated users access full to that new mailbox, run: To allow all authenticated users access full to that new mailbox (not the whole namespace), run:
``` ```
docker-compose exec dovecot-mailcow doveadm acl set -A "Public/Develcow" "authenticated" lookup read write write-seen write-deleted insert post delete expunge create docker-compose exec dovecot-mailcow doveadm acl set -A "Public/Develcow" "authenticated" lookup read write write-seen write-deleted insert post delete expunge create
@ -27,6 +27,8 @@ docker-compose exec dovecot-mailcow doveadm acl set -A "Public/Develcow" "authen
Adjust the command to your needs if you like to assign more granular rights per user (use `-u user@domain` instead of `-A` for example). Adjust the command to your needs if you like to assign more granular rights per user (use `-u user@domain` instead of `-A` for example).
## Allow authenticated users access to the whole public namespace
To allow all authenticated users access full access to the whole public namespace and its subfolders, create a new `dovecot-acl` file in the namespace root directory: To allow all authenticated users access full access to the whole public namespace and its subfolders, create a new `dovecot-acl` file in the namespace root directory:
Open/edit/create `/var/lib/docker/volumes/mailcowdockerized_vmail-vol-1/_data/public/dovecot-acl` (adjust the path accordingly) to create the global ACL file with the following content: Open/edit/create `/var/lib/docker/volumes/mailcowdockerized_vmail-vol-1/_data/public/dovecot-acl` (adjust the path accordingly) to create the global ACL file with the following content:
@ -37,4 +39,6 @@ authenticated kxeilprwts
`kxeilprwts` equals to `lookup read write write-seen write-deleted insert post delete expunge create`. `kxeilprwts` equals to `lookup read write write-seen write-deleted insert post delete expunge create`.
You can use `doveadm acl set -u user@domain "Public/Develcow" user=user@domain lookup read` to limit access for a single user. You may also turn it around to limit access for all users to "lr" while only some users are allowed full access.
See [Dovecot ACL](https://doc.dovecot.org/settings/plugin/acl/) for further information about ACL. See [Dovecot ACL](https://doc.dovecot.org/settings/plugin/acl/) for further information about ACL.