Gerben Wierda
2019-Oct-06 13:04 UTC
Is it possible to create and use some lookup table to replace (for instance) %u in mail_location?
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? Gerben Wierda Chess and the Art of Enterprise Architecture <http://enterprisechess.com/> Mastering ArchiMate <http://masteringarchimate.com/> Architecture for Real Enterprises <https://www.infoworld.com/blog/architecture-for-real-enterprises/> at InfoWorld On Slippery Ice <https://eapj.org/on-slippery-ice/> at EAPJ -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://dovecot.org/pipermail/dovecot/attachments/20191006/d5d13a99/attachment.html>
Aki Tuomi
2019-Oct-06 13:12 UTC
Is it possible to create and use some lookup table to replace (for instance) %u in mail_location?
<!doctype html> <html> <head> <meta charset="UTF-8"> </head> <body> <div> <br> </div> <blockquote type="cite"> <div> On 06/10/2019 16:04 Gerben Wierda via dovecot <dovecot@dovecot.org> wrote: </div> <div> <br> </div> <div> <br> </div>Suppose my mail_location is: <div class=""> <br class=""> </div> <div class=""> <div class="" style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"> <span class="" style="font-variant-ligatures: no-common-ligatures;">mail_location = maildir:/private/var/mail/nl.rna.mail/%u</span> </div> </div> <div class=""> <span class="" style="font-variant-ligatures: no-common-ligatures;"><br class=""></span> </div> <div class=""> 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? </div> <div class=""> <br class=""> <div class=""> <div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"> <div style="color: #000000; font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;"> Gerben Wierda </div> <div class="" style="color: #000000; font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;"> <a class="" href="http://enterprisechess.com/">Chess and the Art of Enterprise Architecture</a> </div> <div class="" style="color: #000000; font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;"> <a class="" href="http://masteringarchimate.com/">Mastering ArchiMate</a> </div> <div class="" style="color: #000000; font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;"> <a class="" href="https://www.infoworld.com/blog/architecture-for-real-enterprises/">Architecture for Real Enterprises</a> at InfoWorld </div> <div class="" style="color: #000000; font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;"> <a class="" href="https://eapj.org/on-slippery-ice/">On Slippery Ice</a> at EAPJ </div> </div> </div> <br class=""> </div> </blockquote> <div> <br> </div> <div> From your passdb or userdb, return user attribute. See <a href="https://doc.dovecot.org/configuration_manual/authentication/user_extra_field/?highligh">https://doc.dovecot.org/configuration_manual/authentication/user_extra_field/</a> </div> <div class="io-ox-signature"> <pre>--- Aki Tuomi</pre> </div> </body> </html>
Possibly Parallel Threads
- Trouble using reverse dsync backup (log in successful but almost nothing happens)
- Is it safe to mix dovecot import/backup/sync between dovecot versions 2.2.30.2 and 2.3.7.1?
- New to dovecot admin, question about using LDAP for user-specific values
- New to dovecot admin, question about using LDAP for user-specific values
- New to dovecot admin, question about testing a dovecot configuration