Fwd: Debug shared namespace issues
On 18-02-2022 14:30, Aki Tuomi wrote: On 18/02/2022 15:17 Kees van Vloten wrote: On 18-02-2022 13:34, Aki Tuomi wrote: On 18/02/2022 14:27 Kees van Vloten wrote: Hi Team, I am still having troubles with the shared namespace. mail_shared_explicit_inbox = yes namespace { type = shared separator = "~" Why do you actually have quotes here? Shouldn't be needed or wanted. Can you do `1 LIST "shared~test1" "*"` and `1 LIST "shared~test1~" "*"` Aki 2 NAMESPACE * NAMESPACE (("" "~")) (("shared~" "~")) NIL 2 OK Namespace completed (0.001 + 0.000 secs). 3 LIST "shared~test1" "*" * LIST (\Noselect \HasChildren) "~" shared~test1 * LIST (\HasNoChildren) "~" shared~test1~INBOX * LIST (\HasNoChildren) "~" shared~test1~INBOX 3 OK List completed (0.093 + 0.000 + 0.092 secs). 4 LIST "shared~test1~" "*" * LIST (\HasNoChildren) "~" shared~test1~INBOX * LIST (\HasNoChildren) "~" shared~test1~INBOX 4 OK List completed (0.001 + 0.000 secs). So there is no Drafts folder? Aki It does exist. I guess that means Dovecot is looking in the wrong place? Is there a way to very what it does? Just did a find to verify the filesystem: /srv/mail/vmail/example.com/test1/store/Drafts /srv/mail/vmail/example.com/test1/store/Drafts/0_FolderContent /srv/mail/vmail/example.com/test1/store/Drafts/0_FolderContent/new /srv/mail/vmail/example.com/test1/store/Drafts/0_FolderContent/dovecot.index.log /srv/mail/vmail/example.com/test1/store/Drafts/0_FolderContent/cur /srv/mail/vmail/example.com/test1/store/Drafts/0_FolderContent/tmp
Re: Debug shared namespace issues
On 18-02-2022 14:30, Aki Tuomi wrote: On 18/02/2022 15:17 Kees van Vloten wrote: On 18-02-2022 13:34, Aki Tuomi wrote: On 18/02/2022 14:27 Kees van Vloten wrote: Hi Team, I am still having troubles with the shared namespace. mail_shared_explicit_inbox = yes namespace { type = shared separator = "~" Why do you actually have quotes here? Shouldn't be needed or wanted. Can you do `1 LIST "shared~test1" "*"` and `1 LIST "shared~test1~" "*"` Aki 2 NAMESPACE * NAMESPACE (("" "~")) (("shared~" "~")) NIL 2 OK Namespace completed (0.001 + 0.000 secs). 3 LIST "shared~test1" "*" * LIST (\Noselect \HasChildren) "~" shared~test1 * LIST (\HasNoChildren) "~" shared~test1~INBOX * LIST (\HasNoChildren) "~" shared~test1~INBOX 3 OK List completed (0.093 + 0.000 + 0.092 secs). 4 LIST "shared~test1~" "*" * LIST (\HasNoChildren) "~" shared~test1~INBOX * LIST (\HasNoChildren) "~" shared~test1~INBOX 4 OK List completed (0.001 + 0.000 secs). So there is no Drafts folder? Aki It does exist. I guess that means Dovecot is looking in the wrong place? Is there a way to very what it does?
Re: Debug shared namespace issues
> On 18/02/2022 15:17 Kees van Vloten wrote: > > > On 18-02-2022 13:34, Aki Tuomi wrote: > >> On 18/02/2022 14:27 Kees van Vloten wrote: > >> > >> > >> Hi Team, > >> > >> I am still having troubles with the shared namespace. > >> > >> mail_shared_explicit_inbox = yes > >> namespace { > >> type = shared > >> separator = "~" > > Why do you actually have quotes here? Shouldn't be needed or wanted. > > > > Can you do `1 LIST "shared~test1" "*"` and `1 LIST "shared~test1~" "*"` > > > > Aki > 2 NAMESPACE > * NAMESPACE (("" "~")) (("shared~" "~")) NIL > 2 OK Namespace completed (0.001 + 0.000 secs). > 3 LIST "shared~test1" "*" > * LIST (\Noselect \HasChildren) "~" shared~test1 > * LIST (\HasNoChildren) "~" shared~test1~INBOX > * LIST (\HasNoChildren) "~" shared~test1~INBOX > 3 OK List completed (0.093 + 0.000 + 0.092 secs). > 4 LIST "shared~test1~" "*" > * LIST (\HasNoChildren) "~" shared~test1~INBOX > * LIST (\HasNoChildren) "~" shared~test1~INBOX > 4 OK List completed (0.001 + 0.000 secs). So there is no Drafts folder? Aki
Re: Debug shared namespace issues
On 18-02-2022 13:34, Aki Tuomi wrote: On 18/02/2022 14:27 Kees van Vloten wrote: Hi Team, I am still having troubles with the shared namespace. mail_shared_explicit_inbox = yes namespace { type = shared separator = "~" Why do you actually have quotes here? Shouldn't be needed or wanted. Can you do `1 LIST "shared~test1" "*"` and `1 LIST "shared~test1~" "*"` Aki 2 NAMESPACE * NAMESPACE (("" "~")) (("shared~" "~")) NIL 2 OK Namespace completed (0.001 + 0.000 secs). 3 LIST "shared~test1" "*" * LIST (\Noselect \HasChildren) "~" shared~test1 * LIST (\HasNoChildren) "~" shared~test1~INBOX * LIST (\HasNoChildren) "~" shared~test1~INBOX 3 OK List completed (0.093 + 0.000 + 0.092 secs). 4 LIST "shared~test1~" "*" * LIST (\HasNoChildren) "~" shared~test1~INBOX * LIST (\HasNoChildren) "~" shared~test1~INBOX 4 OK List completed (0.001 + 0.000 secs).
Re: Debug shared namespace issues
> On 18/02/2022 14:27 Kees van Vloten wrote: > > > Hi Team, > > I am still having troubles with the shared namespace. > > mail_shared_explicit_inbox = yes > namespace { > type = shared > separator = "~" Why do you actually have quotes here? Shouldn't be needed or wanted. Can you do `1 LIST "shared~test1" "*"` and `1 LIST "shared~test1~" "*"` Aki
Debug shared namespace issues
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