Well, these is the complete output for dovecot -n : mail:~ # dovecot -n # 2.2.18: /etc/dovecot/dovecot.conf # Pigeonhole version 0.4.8 (0c4ae064f307+) # OS: Linux 4.1.31-30-default x86_64 openSUSE 42.1 (x86_64) auth_mechanisms = plain login mail_gid = vmail mail_home = /var/vmail/mailboxes/%d/%n mail_location = maildir:~/mail:LAYOUT=fs mail_plugins = " acl" mail_privileged_group = vmail mail_uid = vmail 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 index ihave duplicate namespace { hidden = no ignore_on_failure = no list = children location = maildir:%%h/mail:INDEX=%h/mail/shared/%%u:CONTROL=%h/mail/shared/%%u prefix = shared/%%u/ separator = / subscriptions = yes type = shared } namespace inbox { inbox = yes location mailbox Archives { auto = subscribe special_use = \Archive } mailbox Drafts { auto = subscribe special_use = \Drafts } mailbox Notes { auto = subscribe } mailbox Sent { auto = subscribe special_use = \Sent } mailbox Spam { auto = subscribe special_use = \Junk } mailbox Trash { auto = subscribe special_use = \Trash } prefix } passdb { args = /etc/dovecot/dovecot-sql.conf driver = sql } plugin { acl = vfile:/var/vmail/dovecot-acl acl_shared_dict = file:/var/vmail/db/shared-mailboxes.db quota = maildir:User quota quota_exceeded_message = Benutzer %u hat das Speichervolumen ?berschritten. / User %u has exhausted allowed storage space. sieve = /var/vmail/sieve/%d/%n/active-script.sieve sieve_before = /var/vmail/sieve/global/spam-global.sieve sieve_dir = /var/vmail/sieve/%d/%n/scripts zlib_save = gz zlib_save_level = 6 } protocols = imap lmtp sieve service auth { unix_listener /var/spool/postfix/private/auth { group = postfix mode = 0660 user = postfix } unix_listener auth-userdb { group = vmail mode = 0660 user = vmail } } service imap-login { inet_listener imap { port = 143 } } 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 } } ssl = required ssl_cert = </etc/fullchain.pem ssl_cipher_list = EDH+CAMELLIA:EDH+aRSA:EECDH+aRSA+AESGCM:EECDH+aRSA+SHA256:EECDH:+CAMELLIA128:+AES128:+SSLv3:!aNULL:!eNULL:!LOW:!3DES:!MD5:!EXP:!PSK:!DSS:!RC4:!SEED:!IDEA:!ECDSA:kEDH:CAMELLIA128-SHA:AES128-SHA ssl_dh_parameters_length = 2048 ssl_key = </etc/privkey.pem ssl_prefer_server_ciphers = yes userdb { args = /etc/dovecot/dovecot-sql.conf driver = sql } protocol imap { imap_idle_notify_interval = 15 mins mail_max_userip_connections = 100 mail_plugins = " acl quota imap_quota zlib imap_acl" } protocol lmtp { mail_plugins = " acl sieve zlib" }
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Mon, 3 Oct 2016, Scherff wrote: you do not write, if you get errors in the log. Enable mail_debug and see what Dovecot thinks about the location of mailboxes etc. Also, use doveadm acl debug -u to verify the ACLs.> mail_home = /var/vmail/mailboxes/%d/%n > mail_location = maildir:~/mail:LAYOUT=fs> namespace {^^ maybe this namespace section is missing a name> hidden = no > ignore_on_failure = no > list = children > location = maildir:%%h/mail:INDEX=%h/mail/shared/%%u:CONTROL=%h/mail/shared/%%uThis location does not match mail_location above, it is missing LAYOUT=fs> prefix = shared/%%u/ > separator = / > subscriptions = yes > type = shared > }- -- Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEVAwUBV/Oafnz1H7kL/d9rAQKDlgf8CjTbLVHs9Lfof4vfoHyCXgusB//39+rj UEl/fsP+4NkWr8naU5Rb4RU+7/LfhhCGPC5H7VeXBNCO+a+VxzJEzncNOdMAaQt/ AUYz9oHnPO/NptVuCV/LbYKaULE8KsXQWUr1BYScmt8F91KDIO6rpkuwaMaA+p+s XRkh10+ucnPKO1cUv6yBiBu/citff2uQdzX4+jr66djS5DXWZgOh/XsZDGS868Y1 Id88Kh0ZudpFBhEAQbrwbUCbgVx5O+7O9AC9s4RKyMGqCKS7DVIKM2VvCBQgvaad ApHpTkt6MegAMY0+BW9bsxpdb/lmhfCFbwyexVSwEJRXc4qS0qdE4Q==oC93 -----END PGP SIGNATURE-----
Hi Steffen, thanks. The ACLs seems ok. Each share generates a dovecot-acl file in the folder with a text e.g. user=name at domain.de lr How to check ACL for a share? doveadm acl debug -u user at domain.de shared shows Can't open mailbox shared: Mailbox doesn't exist: shared namespace now has name "share". Debug shows: Debug: Namespace share: type=shared, prefix=shared/%u/, sep=/, inbox=no, hidden=no, list=children, subscriptions=yes location=maildir:/var/vmail/mailboxes/%d/%n/mail:LAYOUT=fs:INDEX=/var/vmail/mailboxes/%d/%n/mail/shared/%u:CONTROL=/var/vmail/mailboxes/DOMAIN/USER/shared/%u Changing location with :LAYOUT=fs - no effect Am 04.10.2016 um 14:03 schrieb Steffen Kaiser:> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Mon, 3 Oct 2016, Scherff wrote: > > you do not write, if you get errors in the log. Enable mail_debug and > see what Dovecot thinks about the location of mailboxes etc. > > Also, use doveadm acl debug -u to verify the ACLs. > >> mail_home = /var/vmail/mailboxes/%d/%n >> mail_location = maildir:~/mail:LAYOUT=fs > >> namespace { > > ^^ maybe this namespace section is missing a name > >> hidden = no >> ignore_on_failure = no >> list = children >> location = >> maildir:%%h/mail:INDEX=%h/mail/shared/%%u:CONTROL=%h/mail/shared/%%u > > This location does not match mail_location above, it is missing LAYOUT=fs > >> prefix = shared/%%u/ >> separator = / >> subscriptions = yes >> type = shared >> } > > - -- Steffen Kaiser > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1 > > iQEVAwUBV/Oafnz1H7kL/d9rAQKDlgf8CjTbLVHs9Lfof4vfoHyCXgusB//39+rj > UEl/fsP+4NkWr8naU5Rb4RU+7/LfhhCGPC5H7VeXBNCO+a+VxzJEzncNOdMAaQt/ > AUYz9oHnPO/NptVuCV/LbYKaULE8KsXQWUr1BYScmt8F91KDIO6rpkuwaMaA+p+s > XRkh10+ucnPKO1cUv6yBiBu/citff2uQdzX4+jr66djS5DXWZgOh/XsZDGS868Y1 > Id88Kh0ZudpFBhEAQbrwbUCbgVx5O+7O9AC9s4RKyMGqCKS7DVIKM2VvCBQgvaad > ApHpTkt6MegAMY0+BW9bsxpdb/lmhfCFbwyexVSwEJRXc4qS0qdE4Q=> =oC93 > -----END PGP SIGNATURE-----