On 17-02-2022 07:28, Aki Tuomi wrote:
On 16/02/2022 21:40 Kees van Vloten keesvanvloten@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@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 belist = 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@example.com)<961453>
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).