I know, but it is not present in the string returned by the userdb, which is set up for testing userdb { driver = static args = namespace/inbox/mailbox/Bla/autoexpunge=6h } On Tue, Jan 17, 2017 at 11:03 AM, Thomas Leuxner <tlx at leuxner.net> wrote:> * Thorsten Hater <thorsten.hater at gmail.com> 2017.01.17 10:57: > > > Unfortunately, this yields the same problem > > > > Debug: Unknown userdb > > setting: plugin/userdb_namespace/inbox/mailbox/Bla/autoexpunge=6h > > > > userdb_namespace/inbox/mailbox/Bla/autoexpunge=6h > > 'plugin' is not part of the userdb override. It is literally as above. >
* Thorsten Hater <thorsten.hater at gmail.com> 2017.01.17 12:04:> userdb { > driver = static > args = namespace/inbox/mailbox/Bla/autoexpunge=6h > }I'm almost sure that 'driver = static' contradicts the concept of userdb overrides: http://wiki.dovecot.org/UserDatabase/ExtraFields If you can't go with 'passwd-file' style settings, you may able to achieve this globaly with: protocol imap { namespace inbox { location = mailbox Blah { autoexpunge = 6h } prefix = } } In any case this is then a global setting rather than one being returned on a per-user basis. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 181 bytes Desc: Digital signature URL: <http://dovecot.org/pipermail/dovecot/attachments/20170117/688ba809/attachment.sig>
So, returning from the LDAP userdb does not change situation. As I said, I would to set folder names dynamicaly, without setting up a mailbox in advance. Here the problem is discussed http://www.dovecot.org/list/dovecot/2013-August/092023.html but no solution is found apart from defining the namespace in the static config, see here http://www.dovecot.org/list/dovecot/2013-August/092053.html As I do not know what folders the user might to configure for autoexpunge, I cannot put the folders into the config. Thorsten On Tue, Jan 17, 2017 at 12:14 PM, Thomas Leuxner <tlx at leuxner.net> wrote:> * Thorsten Hater <thorsten.hater at gmail.com> 2017.01.17 12:04: > > > userdb { > > driver = static > > args = namespace/inbox/mailbox/Bla/autoexpunge=6h > > } > > I'm almost sure that 'driver = static' contradicts the concept of userdb > overrides: > > http://wiki.dovecot.org/UserDatabase/ExtraFields > > If you can't go with 'passwd-file' style settings, you may able to achieve > this globaly with: > > protocol imap { > namespace inbox { > location > mailbox Blah { > autoexpunge = 6h > } > prefix > } > } > > In any case this is then a global setting rather than one being returned > on a per-user basis. >