<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body><div>acl_shared_dict file & folder must be readwritable by user performing the sharing as stated in wiki.</div><div><br></div><div>https://wiki.dovecot.org/SharedMailboxes/Shared</div><div id="composer_signature"><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">---<div>Aki Tuomi</div><div>Dovecot oy</div></div><div><br></div><div style="font-size:100%;color:#000000"><!-- originalMessage --><div>-------- Original message --------</div><div>From: Jason Perry <jason.perry@dtainc.us> </div><div>Date: 27/08/2018 17:01 (GMT+02:00) </div><div>To: dovecot@dovecot.org </div><div>Subject: Issue sharing folders with Thunderbird </div><div><br></div></div>
<!--StartFragment--><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class="">Trying to share
folder "JasonAlerts" within mailbox operations to user u1.name</div><p style="margin:0in;font-family:Calibri;font-size:11.0pt" class=""> </p><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class="">Issues:</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class="">1. Shared mailboxes
do not appear under subscriptions in Thunderbird for another user</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class="">2. When I try to set
permissions via IMAP commands I get in /var/log/dovecot.log</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class="">Aug 26 20:33:24
imap(operations): Error: nfs_flush_chown_uid: chown(/var/lib/dovecot/db)
failed: Permission denied</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class="">3. The permissions
for the file are:</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class="">root@dal-notify-01
Maildir]# ls -la /var/lib/dovecot/db/shared-mailboxes.db</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class="">-rw-rw-r--. 1
operations sharedusers 197 Aug 26 20:33 /var/lib/dovecot/db/shared-mailboxes.db</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class="">4. Users I'm testing
with are part of the sharedusers group in /etc/group</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class="">5. IMAP commands DO
write to the file:</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class="">[root@dal-notify-01
Maildir]# cat /var/lib/dovecot/db/shared-mailboxes.db</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class="">shared/shared-boxes/user/u1.name/u2.name</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class="">1</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class="">shared/shared-boxes/user/operations/u2.name</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class="">1</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class="">shared/shared-boxes/user/u1.name/operations</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class="">1</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class="">shared/shared-boxes/user/u1.name/operations</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class="">1</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class="">6. It will also
write to the user's /home/operations/Maildir/.JasonAlert/dovecot-acl file</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class="">user=u1.name ilrw</div><p style="margin:0in;font-family:Calibri;font-size:11.0pt" class=""> </p><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class="">However if I got
into Thunderbird and try to subscribe, none of the shared folders are
listed. Can anyone help?? Thanks!!</div><p style="margin:0in;font-family:Calibri;font-size:11.0pt" class=""> </p><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class="">Dovecot version =
2.2.10</div><p style="margin:0in;font-family:Calibri;font-size:11.0pt" class=""> </p><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class="">dovecot -n</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class="">[root@server]#
dovecot -n</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class=""># 2.2.10:
/etc/dovecot/dovecot.conf</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class=""># OS: Linux
3.10.0-693.17.1.el7.x86_64 x86_64 CentOS Linux release 7.4.1708 (Core)</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class="">first_valid_uid =
100</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class="">listen = *</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class="">log_path =
/var/log/dovecot.log</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class="">mail_debug = yes</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class="">mail_location =
maildir:~/Maildir</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class="">mail_plugins = acl</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class="">mail_privileged_group
= mail</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class="">mbox_write_locks =
fcntl</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class="">namespace Private {</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class=""> hidden = no</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class=""> inbox = no</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class=""> list = no</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class=""> location =</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class=""> prefix = Private/</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class=""> separator = /</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class=""> type = private</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class="">}</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class="">namespace Public {</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class=""> hidden = no</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class=""> inbox = no</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class=""> list = no</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class=""> location = maildir:/var/mail/public</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class=""> prefix = Public/</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class=""> separator = /</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class=""> subscriptions = yes</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class=""> type = public</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class="">}</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class="">namespace Shared {</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class=""> hidden = no</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class=""> inbox = no</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class=""> list = yes</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class=""> location =
maildir:/var/mail/%u:INDEXPVT=~/Maildir/%u</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class=""> prefix = shared/%u/</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class=""> separator = /</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class=""> subscriptions = yes</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class=""> type = shared</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class="">}</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class="">namespace inbox {</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class=""> inbox = yes</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class=""> location =</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class=""> mailbox Drafts {</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class=""> special_use = \Drafts</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class=""> }</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class=""> mailbox Junk {</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class=""> special_use = \Junk</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class=""> }</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class=""> mailbox Sent {</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class=""> special_use = \Sent</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class=""> }</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class=""> mailbox "Sent Messages" {</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class=""> special_use = \Sent</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class=""> }</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class=""> mailbox Trash {</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class=""> special_use = \Trash</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class=""> }</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class=""> prefix =</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class=""> separator = /</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class="">}</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class="">passdb {</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class=""> driver = pam</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class="">}</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class="">passdb {</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class=""> driver = pam</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class="">}</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class="">plugin {</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class=""> acl = vfile</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class=""> acl_shared_dict = <a href="file:///var/lib/dovecot/db/shared-mailboxes.db" class="">file:/var/lib/dovecot/db/shared-mailboxes.db</a></div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class="">}</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class="">protocols = imap</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class="">ssl_cert =
</etc/pki/dovecot/certs/dovecot.pem</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class="">ssl_key =
</etc/pki/dovecot/private/dovecot.pem</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class="">syslog_facility =
local2</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class="">userdb {</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class=""> driver = passwd</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class="">}</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class="">userdb {</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class=""> driver = passwd</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class="">}</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class="">protocol imap {</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class=""> mail_plugins = acl imap_acl</div><div style="margin: 0in; font-family: Calibri; font-size: 11pt;" class="">}</div>
<!--EndFragment--></body></html>