Dan Malm
2021-Jul-02 08:48 UTC
Bug: empty prefix value in userdb lookup defaults to "yes"?
Hi, I'm trying to migrate some users into our system from another one that also run dovecot but with different prefix and separator settings than we do. I've setup userdb to return these values for a test user to match the other systems separator/prefix setup: { "home": "/customers/b/5/3/cdeadbeef/mail/m0123456789abcdef/", "namespace/inbox/separator": "/", "uid": 10000001, "namespace/inbox/prefix": "", "gid": 10000001 } But the empty value for prefix seems to get converted to some default value of "yes" as when I log in with that user dovecot throws this error: Error: namespace configuration error: list=yes requires prefix=yes to end with separator / Dovecot version: 2.3.13 OS: Ubuntu 20.04.2 -- BR/Mvh. Dan Malm, Systems Engineer, One.com
Aki Tuomi
2021-Jul-02 08:56 UTC
Bug: empty prefix value in userdb lookup defaults to "yes"?
> On 02/07/2021 11:48 Dan Malm <dam at one.com> wrote: > > > Hi, > > I'm trying to migrate some users into our system from another one that > also run dovecot but with different prefix and separator settings than > we do. > > I've setup userdb to return these values for a test user to match the > other systems separator/prefix setup: > { > "home": "/customers/b/5/3/cdeadbeef/mail/m0123456789abcdef/", > "namespace/inbox/separator": "/", > "uid": 10000001, > "namespace/inbox/prefix": "", > "gid": 10000001 > } > > But the empty value for prefix seems to get converted to some default > value of "yes" as when I log in with that user dovecot throws this error: > > Error: namespace configuration error: list=yes requires prefix=yes to > end with separator / > > Dovecot version: 2.3.13 > OS: Ubuntu 20.04.2 > > -- > BR/Mvh. Dan Malm, Systems Engineer, One.comThis is indeed what happens. Your best option is to not set the variable at all when it's empty. Aki