[Dovecot] Global fields for passwd-file database
Is there a way to specify global fields for passwd-file DB? Currently interested in "home" for userdb and "allow_nets" for passworddb. The next doesn't work, of course:
passdb passwd-file { args = username_format=%n allow_nets=127.0.0.1 /etc/dovecot/dovecot.passwd.%d } userdb passwd-file { args = username_format=%n home=/var/mail/%d/%n /etc/dovecot/dovecot.passwd.%d }
-- Best regards, Sergey Urushkin
And no hope it'll be implemented ever?
Best regards, Sergey Urushkin
Timo Sirainen tss@iki.fi wrote:
On Fri, 2011-05-20 at 09:37 +0400, Sergey Urushkin wrote: > Is there a way to specify global fields for passwd-file DB? No.
On 21.5.2011, at 10.23, Sergey Urushkin wrote:
And no hope it'll be implemented ever?
I guess a generic implementation could be added:
passdb { # overridden by passdb entries extra_fields_defaults = uid=1000 gid=1000
# these override the passdb entries extra_fields_overrides = home=/home/%u }
And the same for userdb. Although I don't really like those setting names. Wonder if there are some better ones.
21.05.2011 19:59, Timo Sirainen wrote:
I guess a generic implementation could be added: At least several people are waiting for it. passdb { # overridden by passdb entries extra_fields_defaults = uid=1000 gid=1000
# these override the passdb entries extra_fields_overrides = home=/home/%u }
And the same for userdb. Although I don't really like those setting names. Wonder if there are some better ones. Nothing bad with these names. It's clear even without comments. Thanks.
-- Best regards, Sergey Urushkin
participants (2)
-
Sergey Urushkin
-
Timo Sirainen