ACL - Unterordner und andere Ordner als INBOX sharen

Martin Bock dovecotbuch at mnbo.de
So Mai 1 19:52:09 CEST 2016


Hallo allerseits,

ich komme mit meiner Konfiguration von Shared Foldern nicht weiter. Es
ist zwar möglich, die INBOX zu sharen, das wird beim Gegenüber auch
korrekt angezeigt. Unterordner oder andere Ordner als die INBOX bekomme
ich aber nicht geshared.
Was mich verwirrt ist die Debug-Meldung, er könne in mail/.INBOX.Server/
keine dovecot-acl finden - wieso sucht er überhaupt nach einem Pfad mit
Punkten (als falschen Separator?)?

Vielleicht kann mir hier jemand weiterhelfen, denn ich stehe komplett
auf dem Schlauch...

Danke und viele Grüße
Martin Bock

Bei der Anmeldung vom Gegenüber gibt mail_debug Folgendes aus:
> Debug: Namespace : type=shared, prefix=shared/%u/, sep=/, inbox=no,
> hidden=no, list=children, subscriptions=yes
> location=maildir:%h/mail:INDEX=/var/vmail/bock.online/admin/shared/%u:CONTROL=/var/vmail/bock.online/admin/shared/%u
> [...]
> Debug: acl vfile: reading file
> /var/vmail/bock.online/martin.bock/mail/dovecot-acl
> Debug: acl vfile: file
> /var/vmail/bock.online/martin.bock/mail/.INBOX.Server/dovecot-acl not
> found
> Debug: acl: No lookup right to mailbox:
> shared/martin.bock at bock.online/INBOX/Server
In martin.bock at bock.online/INBOX/Server/dovecot-acl steht aber:
> user=admin at bock.online lrs
In dovecot-acl-list:
> 1462122060 Spam
> 1462123023 INBOX/Server
> 1462121648 INBOX/Test
> 1462121130 INBOX
Außerdem findet sich in /var/lib/dovecot/db/shared-mailboxes.db:
> shared/shared-boxes/user/admin at bock.online/martin.bock at bock.online
doveconf -n:
> # 2.2.13: /etc/dovecot/dovecot.conf
> # OS: Linux 3.16.0-4-amd64 x86_64 Debian 8.4
> auth_mechanisms = plain login
> base_dir = /var/run/dovecot/
> mail_debug = yes
> mail_location = maildir:~/mail:LAYOUT=fs
> mail_plugins = quota zlib acl
> mail_shared_explicit_inbox = yes
> managesieve_notify_capability = mailto
> managesieve_sieve_capability = fileinto reject envelope
> encoded-character vacation subaddress comparator-i;ascii-numeric
> relational regex imap4flags copy include variables body enotify
> environment mailbox date ihave
> namespace {
>   hidden = no
>   ignore_on_failure = no
>   inbox = no
>   list = children
>   location = maildir:%%h/mail:INDEX=%h/shared/%%u:CONTROL=%h/shared/%%u
>   prefix = shared/%%u/
>   separator = /
>   subscriptions = yes
>   type = shared
> }
> namespace inbox {
>   hidden = no
>   ignore_on_failure = no
>   inbox = yes
>   list = yes
>   location =
>   mailbox Archive {
>     auto = no
>     special_use = \Archive
>   }
>   mailbox Archives {
>     auto = subscribe
>     special_use = \Archive
>   }
>   mailbox Drafts {
>     auto = subscribe
>     special_use = \Drafts
>   }
>   mailbox Sent {
>     auto = subscribe
>     special_use = \Sent
>   }
>   mailbox "Sent Messages" {
>     special_use = \Sent
>   }
>   mailbox Spam {
>     auto = subscribe
>     special_use = \Junk
>   }
>   mailbox Trash {
>     auto = subscribe
>     special_use = \Trash
>   }
>   prefix =
>   separator = /
>   subscriptions = yes
>   type = private
> }
> passdb {
>   args = /etc/dovecot/dovecot-sql.conf.ext
>   driver = sql
> }
> plugin {
>   acl = vfile
>   acl_shared_dict = file:/var/lib/dovecot/db/shared-mailboxes.db
>   quota = maildir:User quota
>   quota_rule = *:storage=10G
>   quota_rule2 = Trash:storage=+100M
>   quota_rule3 = Sent:storage=+100M
>   quota_warning = storage=95%% quota-warning 95 %u
>   quota_warning2 = storage=80%% quota-warning 80 %u
>   sieve = /var/vmail/%d/%n/sieve/active-script.sieve
>   sieve_before = /var/vmail/sieve/spam-global.sieve
>   sieve_default = /var/lib/dovecot/sieve/default.sieve
>   sieve_dir = /var/vmail/%d/%n/sieve/scripts/
>   zlib_save = gz
>   zlib_save_level = 6
> }
> postmaster_address = postmaster at bock.online
> protocols = " imap lmtp sieve pop3 sieve"
> service auth {
>   unix_listener /var/spool/postfix/private/auth {
>     group = postfix
>     mode = 0660
>     user = postfix
>   }
>   unix_listener auth-userdb {
>     group = vmail
>     mode = 0600
>     user = vmail
>   }
> }
> service lmtp {
>   unix_listener /var/spool/postfix/private/dovecot-lmtp {
>     group = postfix
>     mode = 0660
>     user = postfix
>   }
>   user = vmail
> }
> service managesieve-login {
>   inet_listener sieve {
>     port = 4190
>   }
> }
> service managesieve {
>   process_limit = 1024
> }
> service quota-warning {
>   executable = script /usr/local/bin/quota-warning.sh
>   unix_listener quota-warning {
>     user = vmail
>   }
>   user = vmail
> }
> ssl = required
> ssl_cert = </etc/letsencrypt/live/bock.online/fullchain.pem
> ssl_cipher_list =
> EDH+CAMELLIA:EDH+aRSA:EECDH+aRSA+AESGCM:EECDH+aRSA+SHA384:EECDH+aRSA+SHA256:EECDH:+CAMELLIA256:+AES256:+CAMELLIA128:+AES128:SSLv3:!aNULL:!eNULL:!LOW:!3DES:!MD5:!EXP:!PSK:!DSS:!RC4:!SEED:!ECDSA:CAMELLIA256-SHA:AES256-SHA:CAMELLIA128-SHA:AES128-SHA
> ssl_dh_parameters_length = 2048
> ssl_key = </etc/letsencrypt/live/bock.online/privkey.pem
> ssl_prefer_server_ciphers = yes
> ssl_protocols = !SSLv2 !SSLv3
> userdb {
>   driver = prefetch
> }
> userdb {
>   args = /etc/dovecot/dovecot-sql.conf.ext
>   driver = sql
> }
> verbose_proctitle = yes
> protocol lmtp {
>   mail_plugins = quota zlib acl sieve
> }
> protocol imap {
>   mail_plugins = quota zlib acl imap_zlib imap_acl
> }


Mehr Informationen über die Mailingliste Dovecot