<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-2">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <pre><tt>Hi,</tt></pre>
    <pre><tt>I'd like to share the whole INBOX of one user with another. That should go through:</tt><tt>
</tt></pre>
    <pre><tt>doveadm acl add -u <a class="moz-txt-link-abbreviated" href="mailto:user1@example.cz">user1@example.cz</a> SharedDirectory <a class="moz-txt-link-abbreviated" href="mailto:user=user2@example.cz">user=user2@example.cz</a> lookup read insert</tt></pre>
    <pre><tt>It's works fine, when I connect through imap I see:</tt></pre>
    <pre><tt>. list "" "*"</tt><tt>
</tt><tt>* LIST (\Noselect \HasChildren) "/" shared</tt><tt>
</tt><tt>* LIST (\Noselect \HasChildren) "/" shared/example.cz/name.surname</tt><tt>
</tt><tt>* LIST (\HasNoChildren) "/" shared/example.cz/name.surname/SharedDirectory</tt><tt>
</tt><tt>* LIST (\HasNoChildren) "/" INBOX</tt><tt>
</tt><tt>. OK List completed (0.000 + 0.000 secs).</tt><tt>
</tt></pre>
    <pre><tt>But now I would like to share the whole INBOX by:

doveadm acl delete -u </tt><tt><tt><a class="moz-txt-link-abbreviated" href="mailto:user1@example.cz">user1@example.cz</a></tt> </tt><tt><tt>SharedDirectory</tt> </tt><tt><tt><tt><a class="moz-txt-link-abbreviated" href="mailto:user1@example.cz">user1@example.cz</a></tt> </tt>

2 list "" "*"
* LIST (\HasNoChildren) "/" INBOX
2 OK List completed (0.000 + 0.000 + 0.002 secs).

doveadm acl add -u <a class="moz-txt-link-abbreviated" href="mailto:user1@example.cz">user1@example.cz</a> INBOX <a class="moz-txt-link-abbreviated" href="mailto:user=user2@example.cz">user=user2@example.cz</a> lookup read insert

</tt><tt><tt>2 list "" "*"
* LIST (\HasNoChildren) "/" INBOX
2 OK List completed (0.000 + 0.000 + 0.002 secs).</tt>

But it doesn't do what I expected, IMAP output it's the same and INBOX in shared folder is not </tt><tt><span class="l"><a>subscribed</a></span>. I'm looking for help to debug what might be wrong.


Thanks.
Z.</tt></pre>
    <p><br>
    </p>
    <pre>auth_cache_size = 10 M
auth_default_realm = %d
auth_mechanisms = plain login
auth_realms = example.cz
default_client_limit = 1024
default_process_limit = 1024
dict {
  acl = pgsql:/etc/dovecot/postgre-acl.conf
}
mail_location = maildir:/var/vmail/%d/%n/Maildir
mail_plugins = acl listescape zlib
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 mime foreverypart extracttext imapflags notify
namespace {
  list = children
  location = maildir:/var/vmail/%%d/%%n/Maildir:INDEX=/var/vmail/%d/%n/Maildir/shared/%%d/%%n:INDEXPVT=/var/vmail/%d/%n/Maildir/shared/%%d/%%n
  prefix = shared/%%d/%%n/
  separator = /
  subscriptions = no
  type = shared
}
namespace inbox {
  inbox = yes
  location = 
  prefix = 
  separator = /
  type = private
}
passdb {
  args = /etc/dovecot/dovecot-ldap_people.conf.ext
  driver = ldap
}
plugin {
  acl = vfile
  acl_shared_dict = proxy::acl
  recipient_delimiter = +
  sieve = <a class="moz-txt-link-freetext" href="file:/var/vmail/%d/%n/Maildir/sieve;active=/var/vmail/%d/%n/Maildir/dovecot.sieve">file:/var/vmail/%d/%n/Maildir/sieve;active=/var/vmail/%d/%n/Maildir/dovecot.sieve</a>
  sieve_before = /usr/local/etc/dovecot/default.sieve
  sieve_default = /usr/local/etc/dovecot/default.sieve
  sieve_extensions = +notify +imapflags +duplicate
  sieve_trace_debug = yes
  sieve_trace_level = matching
  sieve_user_log = <a class="moz-txt-link-freetext" href="file:/var/vmail/%d/%n/Maildir/sieve/sieve_user.log">file:/var/vmail/%d/%n/Maildir/sieve/sieve_user.log</a>
}
protocols = " imap lmtp sieve"
service auth-worker {
  user = root
}
service auth {
  unix_listener /var/spool/postfix/private/auth {
    group = postfix
    mode = 0660
    user = postfix
  }
  unix_listener auth-userdb {
    group = postfix
    mode = 0660
    user = postfix
  }
  user = dovecot
}
service dict {
  unix_listener dict {
    mode = 0600
    user = vmail
  }
}
service imap-login {
  inet_listener imap {
    port = 143
  }
  inet_listener imaps {
    port = 993
    ssl = yes
  }
  vsz_limit = 1 G
}
service imap {
  vsz_limit = 1 G
}
service lmtp {
  executable = lmtp -L
  process_min_avail = 10
  unix_listener /var/spool/postfix/private/dovecot-lmtp {
    group = postfix
    mode = 0600
    user = postfix
  }
}
service managesieve-login {
  inet_listener sieve {
    port = 4190
  }
  process_min_avail = 1
  service_count = 1
  vsz_limit = 64 M
}
ssl_ca = < /etc/ssl/certs/mail.example.cz/mail.example.cz.intermediate.crt
ssl_cert = < /etc/ssl/certs/mail.example.cz/mail.example.cz.crt
ssl_cipher_list = ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA
ssl_key =  # hidden, use -P to show it
ssl_prefer_server_ciphers = yes
userdb {
  args = /etc/dovecot/dovecot-ldap_people.conf.ext
  driver = ldap
}
protocol lmtp {
  info_log_path = /var/log/dovecot/dovecot-lmtp.log
  log_path = /var/log/dovecot/dovecot-lmtp-errors.log
  mail_plugins = acl listescape zlib quota sieve
  postmaster_address = <a class="moz-txt-link-abbreviated" href="mailto:admins@example.cz">admins@example.cz</a>
}
protocol imap {
  mail_max_userip_connections = 500
  mail_plugins = acl listescape zlib imap_acl
}
protocol sieve {
  info_log_path = /var/log/dovecot-sieve.log
  log_path = /var/log/dovecot-sieve-errors.log
  mail_max_userip_connections = 100
  managesieve_implementation_string = Dovecot Pigeonhole
  managesieve_max_line_length = 65536
}
</pre>
    <br>
  </body>
</html>