Hi, I know that there are some variables (as user or username) I could use inside dovecot. They are at https://wiki2.dovecot.org/Variables. My question is if I can create my own variables from attributes at my pass/user db and then use it inside dovecot configuration. -- Angel L. Mateo Mart?nez Secci?n de Telem?tica ?rea de Tecnolog?as de la Informaci?n y las Comunicaciones Aplicadas (ATICA) http://www.um.es/atica Tfo: 868889150 Fax: 868888337
On 27.09.2018 13:01, ?ngel L. Mateo wrote:> Hi, > > ????I know that there are some variables (as user or username) I could > use inside dovecot. They are at https://wiki2.dovecot.org/Variables. > > ????My question is if I can create my own variables from attributes at > my pass/user db and then use it inside dovecot configuration. >You can. In passdb, return userdb_your_own_variable=value, in userdb you can omit the userdb_ prefix, except if you are using passwd-file. Aki
El 27/09/18 a las 12:04, Aki Tuomi escribi?:> > > On 27.09.2018 13:01, ?ngel L. Mateo wrote: >> Hi, >> >> ????I know that there are some variables (as user or username) I could >> use inside dovecot. They are at https://wiki2.dovecot.org/Variables. >> >> ????My question is if I can create my own variables from attributes at >> my pass/user db and then use it inside dovecot configuration. >> > > You can. In passdb, return userdb_your_own_variable=value, in userdb you > can omit the userdb_ prefix, except if you are using passwd-file. >OK. Thank you. -- Angel L. Mateo Mart?nez Secci?n de Telem?tica ?rea de Tecnolog?as de la Informaci?n y las Comunicaciones Aplicadas (ATICA) http://www.um.es/atica Tfo: 868889150 Fax: 868888337
El 27/09/18 a las 12:04, Aki Tuomi escribi?:> > You can. In passdb, return userdb_your_own_variable=value, in userdb you > can omit the userdb_ prefix, except if you are using passwd-file. >I'm trying this. In the ldap configuration, I have: pass_attrs = =userdb_user=%{ldap:mail},=userdb_quota_rule=%{ldap:quota:*:storage=10G},=userdb_uuid=%{ldap:entryUUID} user_attrs = =user=%{ldap:mail},=quota_rule=%{ldap:quota:*:storage=10G},=uuid=%{ldap:entryUUID} and in my dovecot config I get: mail_home =/mail/mailboxes/%L{uuid} but when I get user fields I have: field value uid vmail gid vmail home /mail/mailboxes/unsupported_variable_uuid mail mdbox:~/mdbox:INDEX=/mail/indexes/um.es/an/angel.luis quota_rule *:storage=10G uuid dc6c5cd6-bf4d-1030-8d28-d5b8647941b3 it seems I can't use this "uuid" variable in mail_home config. Is it possible? Am I doing something wrong? -- Angel L. Mateo Mart?nez Secci?n de Telem?tica ?rea de Tecnolog?as de la Informaci?n y las Comunicaciones Aplicadas (ATICA) http://www.um.es/atica Tfo: 868889150 Fax: 868888337