Fwd: Mailbox sharing not working

Kees van Vloten keesvanvloten at gmail.com
Thu Feb 17 08:39:22 UTC 2022


On 17-02-2022 09:16, Aki Tuomi wrote:
>> On 17/02/2022 10:14 Kees van Vloten <keesvanvloten at gmail.com> wrote:
>>
>> On 17-02-2022 07:28, Aki Tuomi wrote:
>>>> On 16/02/2022 21:40 Kees van Vloten <keesvanvloten at gmail.com> wrote:
>>>>
>>>> Hi Team,
>>>>
>>>>
>>>> I am trying to setup mailbox sharing. But although user test2 shares
>>>> INBOX with test1, it is not visible for user1.
>>>>
>>>> doveadm  acl get -u test2 INBOX
>>>> ID         Global Rights
>>>> user=test1        admin create delete expunge insert lookup post read
>>>> write write-deleted write-seen
>>>>
>>>> cat /srv/mail/dovecot/lib/shared-mailboxes.db
>>>> shared/shared-boxes/user/test1/test2 at example.com
>>>> 1
>>>>
>>>> Log output:
>>>>
>>> <snip />
>>>
>>>> namespace {
>>>>   hidden = no
>>>>   list = no
>>>>   location =
>>>> maildir:/srv/mail/vmail/example.com/%%n/store:LAYOUT=fs:FULLDIRNAME=0_FolderContent:UTF-8:INDEXPVT=/srv/mail/vmail/example.com/%n/index_shared/%%u:CONTROL=/srv/mail/vmail/example.com/%%n/control:VOLATILEDIR=/srv/mail/vmail/example.com/%%n/volatile
>>>>   prefix = shared~%%u~
>>>>   separator = ~
>>>>   subscriptions = no
>>>>   type = shared
>>>> }
>>> <snip/>
>>>
>>> you've marked this as `list = no`, when it shoukld be `list = 
>>> children`. Maybe it'll help.
>>>
>>>> Is there anything obviously wrong in the config?
>>>>
>>>> I suspect a mismatch between %u and %n somewhere but don't know how to
>>>> figure out the culprit.
>>>>
>>>> How can I get more relevant debug log output about namespaces / mailbox
>>>> sharing?
>>>> Or can I run commands to check validity?
>>>>
>>>> - Kees
>>> Aki
>> I have updated the conf with list = children.
>> Unfortunately it did not change anything.
>>
>> S[0x563e63660b70]: 2 OK Capability completed (0.001 + 0.000 secs).
>> C[0x563e643232a0]: 3 ID ("x-originating-ip" "192.168.10.106")
>> S[0x563e63660b70]: * ID ("name" "Dovecot")
>> S[0x563e63660b70]: 3 OK ID completed (0.001 + 0.001 secs).
>> C[0x563e643232a0]: 4 namespace
>> S[0x563e63660b70]: * NAMESPACE (("" "~")) (("shared~" "~")) NIL
>> S[0x563e63660b70]: 4 OK Namespace completed (0.001 + 0.001 secs).
>> C[0x563e643232a0]: 5 LIST "" ""
>> S[0x563e63660b70]: * LIST (\Noselect) "~" ""
>> S[0x563e63660b70]: 5 OK List completed (0.001 + 0.001 secs).
> Can you try
>
> 1 LIST "shared~" "*"
>
> The LIST "" "" is only about getting the hierarchy separator.
>
> Aki


telnet localhost 144
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE 
LITERAL+ STARTTLS AUTH=GSSAPI AUTH=GSS-SPNEGO AUTH=PLAIN] Dovecot ready.
a login "test1" "****"
a OK [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT 
SORT=DISPLAY THREAD=REFERENCES THREAD=REFS THREAD=ORDEREDSUBJECT 
MULTIAPPEND URL-PARTIAL CATENATE UNSELECT CHILDREN NAMESPACE UIDPLUS 
LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES 
WITHIN CONTEXT=SEARCH LIST-STATUS BINARY MOVE SNIPPET=FUZZY 
PREVIEW=FUZZY STATUS=SIZE SAVEDATE LITERAL+ NOTIFY SPECIAL-USE ACL 
RIGHTS=texk] Logged in
1 LIST "shared~" "*"
1 OK List completed (0.001 + 0.000 secs).


Now with the server-side logging:

Feb 17 09:34:03 server dovecot: 
imap(test1 at example.com)<962722><Z4PxoDLYKLJ/AAAB>: Debug: Effective 
uid=990, gid=986, home=/srv/mail/vmail
Feb 17 09:34:03 server dovecot: 
imap(test1 at example.com)<962722><Z4PxoDLYKLJ/AAAB>: Debug: Namespace 
inbox: type=private, prefix=, sep=~, inbox=yes, hidden=no, list=yes, 
subscriptions=yes 
location=maildir:/srv/mail/vmail/example.com/test1/store:LAYOUT=fs:FULLDIRNAME=0_FolderContent:UTF-8:INDEX=/srv/mail/vmail/example.com/test1/index:CONTROL=/srv/mail/vmail/example.com/test1/control:VOLATILEDIR=/srv/mail/vmail/example.com/test1/volatile
Feb 17 09:34:03 server dovecot: 
imap(test1 at example.com)<962722><Z4PxoDLYKLJ/AAAB>: Debug: fs: 
root=/srv/mail/vmail/example.com/test1/store, 
index=/srv/mail/vmail/example.com/test1/index, indexpvt=, 
control=/srv/mail/vmail/example.com/test1/control, inbox=, alt=
Feb 17 09:34:03 server dovecot: 
imap(test1 at example.com)<962722><Z4PxoDLYKLJ/AAAB>: Debug: acl: 
initializing backend with data: vfile
Feb 17 09:34:03 server dovecot: 
imap(test1 at example.com)<962722><Z4PxoDLYKLJ/AAAB>: Debug: acl: acl 
username = test1 at example.com
Feb 17 09:34:03 server dovecot: 
imap(test1 at example.com)<962722><Z4PxoDLYKLJ/AAAB>: Debug: acl: owner = 1
Feb 17 09:34:03 server dovecot: 
imap(test1 at example.com)<962722><Z4PxoDLYKLJ/AAAB>: Debug: acl vfile: 
Global ACLs disabled
Feb 17 09:34:03 server dovecot: 
imap(test1 at example.com)<962722><Z4PxoDLYKLJ/AAAB>: Debug: Namespace : 
type=shared, prefix=shared~%u~, sep=~, inbox=no, hidden=no, 
list=children, subscriptions=no 
location=maildir:/srv/mail/vmail/example.com/%n/store:LAYOUT=fs:FULLDIRNAME=0_FolderContent:UTF-8:INDEXPVT=/srv/mail/vmail/example.com/test1/index_shared/%u:CONTROL=/srv/mail/vmail/example.com/%n/control:VOLATILEDIR=/srv/mail/vmail/example.com/%n/volatile
Feb 17 09:34:03 server dovecot: 
imap(test1 at example.com)<962722><Z4PxoDLYKLJ/AAAB>: Debug: shared: 
root=/run/dovecot, index=, indexpvt=, control=, inbox=, alt=
Feb 17 09:34:03 server dovecot: 
imap(test1 at example.com)<962722><Z4PxoDLYKLJ/AAAB>: Debug: fts: Indexes 
disabled for namespace 'shared~%u~'
Feb 17 09:34:03 server dovecot: 
imap(test1 at example.com)<962722><Z4PxoDLYKLJ/AAAB>: Debug: acl: 
initializing backend with data: vfile
Feb 17 09:34:03 server dovecot: 
imap(test1 at example.com)<962722><Z4PxoDLYKLJ/AAAB>: Debug: acl: acl 
username = test1 at example.com
Feb 17 09:34:03 server dovecot: 
imap(test1 at example.com)<962722><Z4PxoDLYKLJ/AAAB>: Debug: acl: owner = 0
Feb 17 09:34:03 server dovecot: 
imap(test1 at example.com)<962722><Z4PxoDLYKLJ/AAAB>: Debug: acl vfile: 
Global ACLs disabled
Feb 17 09:34:09 server dovecot: 
imap(test1 at example.com)<962722><Z4PxoDLYKLJ/AAAB>: Debug: acl vfile: 
reading file 
/srv/mail/vmail/example.com/test1/store/INBOX/0_FolderContent/dovecot-acl
Feb 17 09:34:09 server dovecot: 
imap(test1 at example.com)<962722><Z4PxoDLYKLJ/AAAB>: Debug: acl vfile: 
file 
/srv/mail/vmail/example.com/test1/store/Drafts/0_FolderContent/dovecot-acl 
not found
Feb 17 09:34:09 server dovecot: 
imap(test1 at example.com)<962722><Z4PxoDLYKLJ/AAAB>: Debug: acl vfile: 
file 
/srv/mail/vmail/example.com/test1/store/Junk/0_FolderContent/dovecot-acl 
not found
Feb 17 09:34:09 server dovecot: 
imap(test1 at example.com)<962722><Z4PxoDLYKLJ/AAAB>: Debug: acl vfile: 
file 
/srv/mail/vmail/example.com/test1/store/Trash/0_FolderContent/dovecot-acl 
not found
Feb 17 09:34:09 server dovecot: 
imap(test1 at example.com)<962722><Z4PxoDLYKLJ/AAAB>: Debug: acl vfile: 
file 
/srv/mail/vmail/example.com/test1/store/Sent/0_FolderContent/dovecot-acl 
not found
Feb 17 09:34:09 server dovecot: 
imap(test1 at example.com)<962722><Z4PxoDLYKLJ/AAAB>: Debug: Namespace 
shared~: Using permissions from : mode=0700 gid=default



More information about the dovecot mailing list