Re: Shared namespace is empty after migration to new Dovecot installation
On 2019-12-09 09:42, Aki Tuomi wrote:
That I can, here (anonymized where relevant)
Config looks fine. Have you tried
'A1 SELECT Shared/user@sharer.dk'?
Yields this, which is the same I got when trying to debug using doveadm acl, it seems like the shared mailboxes aren't placed in the shared namespace at all.
A1 SELECT Shared/user@sharer.dk A1 NO Mailbox doesn't exist: Shared/user@sharer.dk (0.006 + 0.000 + 0.005 secs).
-- Peter Reinhold
On 9.12.2019 10.51, Peter Reinhold wrote:
On 2019-12-09 09:42, Aki Tuomi wrote:
That I can, here (anonymized where relevant)
Config looks fine. Have you tried
'A1 SELECT Shared/user@sharer.dk'?
Yields this, which is the same I got when trying to debug using doveadm acl, it seems like the shared mailboxes aren't placed in the shared namespace at all.
A1 SELECT Shared/user@sharer.dk A1 NO Mailbox doesn't exist: Shared/user@sharer.dk (0.006 + 0.000 + 0.005 secs).
Does it work without ACLs?
AKi
On 2019-12-09 09:54, Aki Tuomi via dovecot wrote:
Yields this, which is the same I got when trying to debug using doveadm acl, it seems like the shared mailboxes aren't placed in the shared namespace at all.
A1 SELECT Shared/user@sharer.dk A1 NO Mailbox doesn't exist: Shared/user@sharer.dk (0.006 + 0.000 + 0.005 secs).
Does it work without ACLs?
No, still the same, except I get one less userdb lookup in the log
A1 SELECT Shared/user@sharer.dk A1 NO Mailbox doesn't exist: Shared/user@sharer.dk (0.006 + 0.000 + 0.005 secs).
-- LOG START -- auth-master: userdb lookup(user@sharer.dk): Started userdb lookup auth-master: conn unix:/var/run/dovecot/auth-userdb: Connecting auth-master: conn unix:/var/run/dovecot/auth-userdb (pid=1636,uid=0): Client connected (fd=9) auth-master: userdb lookup(user@sharer.dk): auth USER input: user@sharer.dk uid=? gid=? home=/data/mail/sharer.dk/user auth-master: userdb lookup(user@sharer.dk): Finished userdb lookup (username=user@sharer.dk uid=? gid=? home=/data/mail/sharer.dk/user) auth-master: userdb lookup(user@sharer.dk): Started userdb lookup auth-master: userdb lookup(user@sharer.dk): auth USER input: user@sharer.dk uid=? gid=? home=/data/mail/sharer.dk/user auth-master: userdb lookup(user@sharer.dk): Finished userdb lookup (username=user@sharer.dk uid=? gid=? home=/data/mail/sharer.dk/user) Mailbox Shared/user@sharer.dk: Mailbox opened because: SELECT auth-master: userdb lookup(user@sharer.dk): Started userdb lookup auth-master: userdb lookup(user@sharer.dk): auth USER input: user@sharer.dk uid=? gid=? home=/data/mail/sharer.dk/user auth-master: userdb lookup(user@sharer.dk): Finished userdb lookup (username=user@sharer.dk uid=? gid=? home=/data/mail/sharer.dk/user) Namespace Shared/: Using permissions from : mode=0700 gid=default -- LOG END --
-- Peter Reinhold
On 2019-12-09 14:10, Peter Reinhold via dovecot wrote:
auth-master: userdb lookup(user@sharer.dk): Started userdb lookup auth-master: conn unix:/var/run/dovecot/auth-userdb: Connecting auth-master: conn unix:/var/run/dovecot/auth-userdb (pid=1636,uid=0): Client connected (fd=9) auth-master: userdb lookup(user@sharer.dk): auth USER input: user@sharer.dk uid=? gid=? home=/data/mail/sharer.dk/user auth-master: userdb lookup(user@sharer.dk): Finished userdb lookup (username=user@sharer.dk uid=? gid=? home=/data/mail/sharer.dk/user) auth-master: userdb lookup(user@sharer.dk): Started userdb lookup auth-master: userdb lookup(user@sharer.dk): auth USER input: user@sharer.dk uid=? gid=? home=/data/mail/sharer.dk/user auth-master: userdb lookup(user@sharer.dk): Finished userdb lookup (username=user@sharer.dk uid=? gid=? home=/data/mail/sharer.dk/user)
I've been trying a few things, still with no luck, but I noticed something that I find a bit strange.
On the wiki-page, https://wiki.dovecot.org/SharedMailboxes/Shared, the following is stated
"The location setting specifies how to access other users' mailboxes. If you use %%h, the user's home directory is asked from auth process via auth-userdb socket. See LDA for how to configure the socket. If the users' mailboxes can be found using a template, it's faster not to use the %%h."
But, looking at my location setting in my shared namespace
location = maildir:/data/mail/%%d/%%n/maildir:INDEX=~/maildir/shared/%%u:INDEXPVT:~/maildir/shared/%%u
I am not using %%h, but rather a template. It still seems to trigger a used-db lookup (and it did not do this in my old setup)
Could this be why it doesn't work? My user-lookup doesnt seem to return the full location (including /maildir), but only a home folder.
-- Peter Reinhold
On 2019-12-10 21:17, Peter Reinhold via dovecot wrote:
auth-master: userdb lookup(user@sharer.dk): Started userdb lookup auth-master: conn unix:/var/run/dovecot/auth-userdb: Connecting auth-master: conn unix:/var/run/dovecot/auth-userdb (pid=1636,uid=0): Client connected (fd=9) auth-master: userdb lookup(user@sharer.dk): auth USER input: user@sharer.dk uid=? gid=? home=/data/mail/sharer.dk/user auth-master: userdb lookup(user@sharer.dk): Finished userdb lookup (username=user@sharer.dk uid=? gid=? home=/data/mail/sharer.dk/user) auth-master: userdb lookup(user@sharer.dk): Started userdb lookup auth-master: userdb lookup(user@sharer.dk): auth USER input: user@sharer.dk uid=? gid=? home=/data/mail/sharer.dk/user auth-master: userdb lookup(user@sharer.dk): Finished userdb lookup (username=user@sharer.dk uid=? gid=? home=/data/mail/sharer.dk/user)
I've been trying a few things, still with no luck, but I noticed something that I find a bit strange.
On the wiki-page, https://wiki.dovecot.org/SharedMailboxes/Shared, the following is stated
"The location setting specifies how to access other users' mailboxes. If you use %%h, the user's home directory is asked from auth process via auth-userdb socket. See LDA for how to configure the socket. If the users' mailboxes can be found using a template, it's faster not to use the %%h."
But, looking at my location setting in my shared namespace
location = maildir:/data/mail/%%d/%%n/maildir:INDEX=~/maildir/shared/%%u:INDEXPVT:~/maildir/shared/%%u
I am not using %%h, but rather a template. It still seems to trigger a used-db lookup (and it did not do this in my old setup)
Could this be why it doesn't work? My user-lookup doesnt seem to return the full location (including /maildir), but only a home folder.
I've been trying various combinations of configuration, with no luck, is it possible to enable more debug logging than mail_debug?
As a last-ditch effort I also tried the symlinking suggedted in https://wiki.dovecot.org/SharedMailboxes/Symlinks but this does not work either, I get a SUBSCRIBE BUG when I try and subscribe to the folder (which is visible) from Roundcube. (I am symlinking directly to the maildir folder, and not a sub-box, as I need access to the regular inbox)
How do I report this as a bug? I can't seem to find a Dovecot issue tracker anywhere.
-- Peter Reinhold
On 2019-12-09 09:51, Peter Reinhold via dovecot wrote:
Config looks fine. Have you tried
'A1 SELECT Shared/user@sharer.dk'?
Yields this, which is the same I got when trying to debug using doveadm acl, it seems like the shared mailboxes aren't placed in the shared namespace at all.
A1 SELECT Shared/user@sharer.dk A1 NO Mailbox doesn't exist: Shared/user@sharer.dk (0.006 + 0.000 + 0.005 secs).
And I forgot, the mail_debug log, multiple userdb lookups which seems to end up nowhere. (Filepaths are correct, for the users homedir, as in, the one where maildir/ resides)
-- LOG -- auth-master: userdb lookup(user@sharer.dk): Started userdb lookup auth-master: conn unix:/var/run/dovecot/auth-userdb: Connecting auth-master: conn unix:/var/run/dovecot/auth-userdb (pid=1636,uid=0): Client connected (fd=9) auth-master: userdb lookup(user@sharer.dk): auth USER input: user@sharer.dk uid=? gid=? home=/data/mail/sharer.dk/user auth-master: userdb lookup(user@sharer.dk): Finished userdb lookup (username=user@sharer.dk uid=? gid=? home=/data/mail/sharer.dk/user) auth-master: userdb lookup(user@sharer.dk): Started userdb lookup auth-master: userdb lookup(user@sharer.dk): auth USER input: user@sharer.dk uid=? gid=? home=/data/mail/sharer.dk/user auth-master: userdb lookup(user@sharer.dk): Finished userdb lookup (username=user@sharer.dk uid=? gid=? home=/data/mail/sharer.dk/user) auth-master: userdb lookup(user@sharer.dk): Started userdb lookup auth-master: userdb lookup(user@sharer.dk): auth USER input: user@sharer.dk uid=? gid=? home=/data/mail/sharer.dk/user auth-master: userdb lookup(user@sharer.dk): Finished userdb lookup (username=user@sharer.dk uid=? gid=? home=/data/mail/sharer.dk/user) Mailbox Shared/user@sharer.dk: Mailbox opened because: SELECT auth-master: userdb lookup(user@sharer.dk): Started userdb lookup auth-master: userdb lookup(user@sharer.dk): auth USER input: user@sharer.dk uid=? gid=? home=/data/mail/sharer.dk/user auth-master: userdb lookup(user@sharer.dk): Finished userdb lookup (username=user@sharer.dk uid=? gid=? home=/data/mail/sharer.dk/user) Namespace Shared/: Using permissions from : mode=0700 gid=default-- -- LOG END --
-- Peter Reinhold
participants (2)
-
Aki Tuomi
-
Peter Reinhold