Overriding dovecot.conf from Userdb Extras
Hi,
I thought I read that anything from dovecot.conf can be overridden in a userdb lookup. Or a passdb lookup with "userdb_" prefix.
But I tried for fun change log_path but it never worked. Is that because logging is special, already started logging before it comes to the passdb/userdb lookups? So are there some dovecot.conf settings that cannot be overridden?
Thanks!
I thought I read that anything from dovecot.conf can be overridden in a userdb lookup. Or a passdb lookup with "userdb_" prefix.
But I tried for fun change log_path but it never worked. Is that because logging is special, already started logging before it comes to the passdb/userdb lookups? So are there some dovecot.conf settings that cannot be overridden?
Any takers?
Il 9 marzo 2015 alle 4.17 "E.B." <emailbuilder88@yahoo.com> ha scritto:
I thought I read that anything from dovecot.conf can be overridden in a userdb lookup. Or a passdb lookup with "userdb_" prefix.
But I tried for fun change log_path but it never worked. Is that because logging is special, already started logging before it comes to the passdb/userdb lookups? So are there some dovecot.conf settings that cannot be overridden?
To my understanding only these extra parameters can be tweaked through the userdb/passdb: http://wiki2.dovecot.org/PasswordDatabase/ExtraFields http://wiki2.dovecot.org/UserDatabase/ExtraFields (+ mail and quota_rule)
Paolo
I thought I read that anything from dovecot.conf can be overridden in a userdb lookup. Or a passdb lookup with "userdb_" prefix.
But I tried for fun change log_path but it never worked. Is that because logging is special, already started logging before it comes to the passdb/userdb lookups? So are there some dovecot.conf settings that cannot be overridden?
To my understanding only these extra parameters can be tweaked through the userdb/passdb: http://wiki2.dovecot.org/PasswordDatabase/ExtraFields http://wiki2.dovecot.org/UserDatabase/ExtraFields (+ mail and quota_rule)
Quoting from your second link: "It's possible to override settings from dovecot.conf" (quota rules being a common example, yes).
I've successfully overridden a few different dovecot.conf settings, mostly for lda and sieve, but also mail_debug from 10-logging.conf. So it does work to override *some* settings from dovecot.conf -- but there seem to be a few like log_path that are immune to overrides I guess.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Fri, 13 Mar 2015, E.B. wrote:
I thought I read that anything from dovecot.conf can be overridden in a userdb lookup. Or a passdb lookup with "userdb_" prefix.
But I tried for fun change log_path but it never worked. Is that because logging is special, already started logging before it comes to the passdb/userdb lookups? So are there some dovecot.conf settings that cannot be overridden?
I've successfully overridden a few different dovecot.conf settings, mostly for lda and sieve, but also mail_debug from 10-logging.conf. So it does work to override *some* settings from ^^ I would say "most" :)
dovecot.conf -- but there seem to be a few like log_path that are immune to overrides I guess.
My understanding is that you can override all settings, but overriding does not perform any action. You said yourself:
the log is already open and Dovecot does not implement to re-open the log. If it would, the setting would be the overriden, I guess.
The same applies to port and service settings, after an user authentificated or the userdb is queried, the basic configuration of the demons is not changed, hence, the override has no effect.
Maybe you should raise a feature request for changing the log path or offer a patch.
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1
iQEVAwUBVQaQgHz1H7kL/d9rAQKMSwf/XszBy8C1HUd2xHg/tC1VaTJq5DR7APne l39euVkRLpT9l2as2m/aEiHb08eackuaixH6OkBf8WlBhCHmOjsR3bdQiU3P3dmH DRAohK8nmuMRdx8WIZooUU5r62h2rniaKCqWctElWLyHYETJEMnmFB0/re5YG7Qa 7qio9/GVss/YPiOjUG3r5lVD2RoCQ9SYYlXzAE5ZtSfL6lxSkwSyDlbzhT0DjdBX +omt0YaJHWuuAvITqH+FOi3I6W0pxDAd9Y1kdKWWHHCDA1UzXy2z8swh+aNpIUQu bGyDHGpqu4b8bWoQ5RBqxOqP3zvNsNuTekK5Qz2N8hRY35bxhTHj2A== =ybB9 -----END PGP SIGNATURE-----
participants (3)
-
E.B.
-
Paolo Cravero
-
Steffen Kaiser