Mailbox sharing not working

Kees van Vloten keesvanvloten at gmail.com
Thu Feb 17 08:14:40 UTC 2022


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.

Feb 17 09:01:14 server dovecot: 
imap(test1 at example.com)<961453><gAqTKzLYqpt/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:01:14 server dovecot: 
imap(test1 at example.com)<961453><gAqTKzLYqpt/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:01:14 server dovecot: 
imap(test1 at example.com)<961453><gAqTKzLYqpt/AAAB>: Debug: acl: 
initializing backend with data: vfile
Feb 17 09:01:14 server dovecot: 
imap(test1 at example.com)<961453><gAqTKzLYqpt/AAAB>: Debug: acl: acl 
username = test1 at example.com
Feb 17 09:01:14 server dovecot: 
imap(test1 at example.com)<961453><gAqTKzLYqpt/AAAB>: Debug: acl: owner = 1
Feb 17 09:01:14 server dovecot: 
imap(test1 at example.com)<961453><gAqTKzLYqpt/AAAB>: Debug: acl vfile: 
Global ACLs disabled
Feb 17 09:01:14 server dovecot: 
imap(test1 at example.com)<961453><gAqTKzLYqpt/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:01:14 server dovecot: 
imap(test1 at example.com)<961453><gAqTKzLYqpt/AAAB>: Debug: shared: 
root=/run/dovecot, index=, indexpvt=, control=, inbox=, alt=
Feb 17 09:01:14 server dovecot: 
imap(test1 at example.com)<961453><gAqTKzLYqpt/AAAB>: Debug: fts: Indexes 
disabled for namespace 'shared~%u~'
Feb 17 09:01:14 server dovecot: 
imap(test1 at example.com)<961453><gAqTKzLYqpt/AAAB>: Debug: acl: 
initializing backend with data: vfile
Feb 17 09:01:14 server dovecot: 
imap(test1 at example.com)<961453><gAqTKzLYqpt/AAAB>: Debug: acl: acl 
username = test1 at example.com
Feb 17 09:01:14 server dovecot: 
imap(test1 at example.com)<961453><gAqTKzLYqpt/AAAB>: Debug: acl: owner = 0
Feb 17 09:01:14 server dovecot: 
imap(test1 at example.com)<961453><gAqTKzLYqpt/AAAB>: Debug: acl vfile: 
Global ACLs disabled
Feb 17 09:01:14 server dovecot: 
imap(test1 at example.com)<961453><gAqTKzLYqpt/AAAB>: Debug: Mailbox INBOX: 
Mailbox opened because: SELECT
Feb 17 09:01:14 server dovecot: 
imap(test1 at example.com)<961453><gAqTKzLYqpt/AAAB>: Debug: acl vfile: 
reading file 
/srv/mail/vmail/example.com/test1/store/INBOX/0_FolderContent/dovecot-acl
Feb 17 09:01:14 server dovecot: 
imap(test1 at example.com)<961453><gAqTKzLYqpt/AAAB>: Logged out in=146 
out=1595 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 
body_count=0 body_bytes=0
Feb 17 09:01:14 server dovecot: 
imap(test1 at example.com)<961451><Pu+SKzLYqJt/AAAB>: Debug: Mailbox 
INBOX~example.com: Mailbox opened because: SELECT
Feb 17 09:01:14 server dovecot: 
imap(test1 at example.com)<961451><Pu+SKzLYqJt/AAAB>: Debug: acl vfile: 
file 
/srv/mail/vmail/example.com/test1/store/INBOX/example.com/0_FolderContent/dovecot-acl 
not found

Somehow it the shared namespace is seen by the client, but no content is 
shown:

C[0x563e643232a0]: 1 login "test1" ""
S[0x563e63660b70]: 1 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
C[0x563e643232a0]: 2 capability
S[0x563e63660b70]: * 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
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).




More information about the dovecot mailing list