Is it possible to create and use some lookup table to replace (for instance) %u in mail_location?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Is it possible to create and use some lookup table to replace (for instance) %u in mail_location?

Dovecot mailing list
Suppose my mail_location is:

mail_location = maildir:/private/var/mail/nl.rna.mail/%u

But I would like to use a simple lookup table to replace %u with another value, say '8DB4E345-9144-4F92-8C9F-9D47BB61CBF8’ instead of ‘username’. Is there a (simple) way to do this?
Reply | Threaded
Open this post in threaded view
|

Re: Is it possible to create and use some lookup table to replace (for instance) %u in mail_location?

Dovecot mailing list

On 06/10/2019 16:04 Gerben Wierda via dovecot <[hidden email]> wrote:


Suppose my mail_location is:

mail_location = maildir:/private/var/mail/nl.rna.mail/%u

But I would like to use a simple lookup table to replace %u with another value, say '8DB4E345-9144-4F92-8C9F-9D47BB61CBF8’ instead of ‘username’. Is there a (simple) way to do this?

From your passdb or userdb, return user attribute. See https://doc.dovecot.org/configuration_manual/authentication/user_extra_field/
---
Aki Tuomi