Debug shared namespace issues

Kees van Vloten keesvanvloten at gmail.com
Fri Feb 18 12:27:24 UTC 2022


Hi Team,

I am still having troubles with the shared namespace.

mail_shared_explicit_inbox = yes
namespace {
     type = shared
     separator = "~"
     prefix = shared~%%u~
     location = 
maildir:/srv/mail/vmail/example.com/%%n/store:LAYOUT=fs:FULLDIRNAME=0_FolderContent:NO-NOSELECT: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
     hidden = no
     list = children
     subscriptions = no
}

To rule out ACL issues (for now), I have added:

plugin {
     acl = vfile
     acl_shared_dict = file:/srv/mail/dovecot/lib/shared-mailboxes.db
     #acl_defaults_from_inbox = yes
     acl_user = %n
     acl_ignore_namespace = shared~
}


The client imap communication looks like this:

C[0x55ae80480750]: 1 login "test2" ""
S[0x55ae8044a600]: 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[0x55ae80480750]: 2 capability
S[0x55ae8044a600]: * 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[0x55ae8044a600]: 2 OK Capability completed (0.001 + 0.000 secs).
C[0x55ae80480750]: 3 ID ("x-originating-ip" "192.168.10.106")
S[0x55ae8044a600]: * ID ("name" "Dovecot")
S[0x55ae8044a600]: 3 OK ID completed (0.001 + 0.000 secs).
C[0x55ae80480750]: 4 namespace
S[0x55ae8044a600]: * NAMESPACE (("" "~")) (("shared~" "~")) NIL
S[0x55ae8044a600]: 4 OK Namespace completed (0.001 + 0.001 secs).
C[0x55ae80480750]: 5 LIST "" ""
S[0x55ae8044a600]: * LIST (\Noselect) "~" ""
S[0x55ae8044a600]: 5 OK List completed (0.001 + 0.001 secs).
C[0x55ae80480750]: 6 getacl "shared~test1~Drafts"
S[0x55ae8044a600]: 6 NO [NONEXISTENT] Mailbox doesn't exist: 
shared~test1~Drafts (0.001 + 0.000 secs).
C[0x55ae80480750]: 7 create "shared~test1~Drafts"
S[0x55ae8044a600]: 7 NO [CANNOT] Invalid mailbox name 
'shared~test1~Drafts': Missing namespace prefix 'shared~test1/Drafts~' 
(0.001 + 0.000 secs).
C[0x55ae80480750]: 8 getacl "shared~test1~Drafts"
S[0x55ae8044a600]: 8 NO [NONEXISTENT] Mailbox doesn't exist: 
shared~test1~Drafts (0.001 + 0.000 secs).
C[0x55ae80480750]: 9 select "shared~test1~Drafts"
S[0x55ae8044a600]: 9 NO [CANNOT] Invalid mailbox name 
'shared~test1~Drafts': Missing namespace prefix 'shared~test1/Drafts~' 
(0.001 + 0.001 secs).
C[0x55ae80480750]: 10 unsubscribe "shared~test1~Drafts"
S[0x55ae8044a600]: 10 NO [CANNOT] Invalid mailbox name 
'shared~test1~Drafts': Missing namespace prefix 'shared~test1/Drafts~' 
(0.001 + 0.000 secs).
C[0x55ae80480750]: 11 logout
S[0x55ae8044a600]: * BYE Logging out

The client shows the shared user, but no content.
I am using Sogo to test and sometimes Thunderbird to verify it is not a 
Sogo specific issue.

I have currently set these debug options in Dovecot:

auth_verbose = yes
auth_debug = yes
mail_debug = yes

Unfortunately this is not enough to get a clue.

What more can I do (other debug options?) to figure out what is going on?

- Kees



More information about the dovecot mailing list