On 20.8.2012, at 18.21, Alex Crow wrote:
Is it OK to have dovecot variables in entries in an LDAP userdb? Say I wanted to set the mail userdb parameter to override mail_location, would it work by having an entry in LDAP (eg for mailMessageStore attrib) like:
mdbox:/home/email/%d/%n:INDEX=/home/indexes/%d/%1n/%n:ALT=/home/email_archive/%d/%1n/%n
and those % variables will still be expanded by dovecot?
No. Otherwise it would break paths that actually contain % characters.
Or would I be required to replace them in the LDAP directory with their actual values?
Yes. If you really wanted to avoid that and you have only a few different values, you could create some namespaces in dovecot.conf and enable/disable them as needed in the ldap fields. Although I guess that's not a whole lot better since there's currently no simple "enabled" setting for namespaces, maybe I should add one..