On 17-02-2022 09:16, Aki Tuomi wrote:
On 17/02/2022 10:14 Kees van Vloten keesvanvloten@gmail.com wrote:
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.
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).