syntax for overriding userdb fields from passdb config

Steffen Kaiser skdovecot at smail.inf.fh-brs.de
Tue Feb 23 07:47:25 UTC 2016


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sun, 21 Feb 2016, Thomas Möhle wrote:

> how exactly is the syntax to override a userdb field within the passdb
> configuration? I cannot find any documentation on this in the wiki.

> Let's say, I'd like to override the userdb extra field "chroot" with
> /var/mail. How exactly would be the notation?

could you post a complete conf and how/where you use the value?

> My auth-sql.conf.ext looks like this:
>
> passdb {
>  driver = sql
>  args = /etc/dovecot/dovecot-sql.conf.ext
> }
> userdb {
>  driver = sql
>  args = /etc/dovecot/dovecot-sql.conf.ext
> }
>
> I already tried these modifications within the passdb area:
> override_fields = userdb_chroot=/var/mail
> override_fields = userdb:chroot=/var/mail
> override_fields = %{userdb:chroot}=/var/mail
> override_fields = %{userdb_chroot}=/var/mail
>
> but none of the above returned /var/mail when I tried to hand
> %{userdb:chroot} to an external script.
>
> Thanks for your help,
> Thomas Möhle
>

- -- 
Steffen Kaiser
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEVAwUBVswOjXz1H7kL/d9rAQIpTwf/XRcCeT7OgcnHAI9rXCxfLE35muiMXakA
hf2lRvVWSMVPyw3oHRPFhrOdatcoXVYfrnMzJ5djGiUCFtPXb3/ZWIiDL7YkcWqQ
rz4GeGo+pz3f3R7T5M/xVNFgzAExakGkmh+W8OchCs0UfYKOcEocW1Bh3SSxfjJS
CJcoTFd0DdnAMQTfzU38Di83Kzb4nzn/umz/OCpf/lOJgvyLjLy2kmplVW97L2dX
8Zhu4B6CIaC9xmsFY2Mk7Y78mCNY9DXFQRTKufnipgTUl0L/+X4R3UKADRuDk617
hYzBOKlXzJWITDxTFv8KGYFRJd7Bvee8eIUWfvIICzCtAYZiTT4E1g==
=EdRo
-----END PGP SIGNATURE-----


More information about the dovecot mailing list