[Dovecot] multiple passdbs and auth sockets
I have a few systems which run dovecot 1.x as the authentication backend for Postfix, with multiple auth { } sections like this one, each one with a different passdb and its own socket:
auth ldap-10 { passdb ldap { args = /etc/dovecot/dovecot-ldap-10.conf } socket listen { client { path = /var/spool/postfix/private/auth-10 mode = 0666 } } }
I need multiple sockets tied to multiple dbs because there are duplicated accounts, but after switching to dovecot 2.1.7 apparently *all* passdbs are checked and dovecot reports this message:
Warning: Obsolete setting in /etc/dovecot/conf.d/auth-local.conf.ext:91: add auth_ prefix to all settings inside auth {} and remove the auth {} section completely
doveconf shows that all my custom sockets are now part of a single "service auth { }" section, while all the passdbs appear at the top level.
How can I update my configuration for dovecot 2.x?
-- ciao, Marco
On 8.8.2013, at 18.53, Marco d'Itri <md@Linux.IT> wrote:
I have a few systems which run dovecot 1.x as the authentication backend for Postfix, with multiple auth { } sections like this one, each one with a different passdb and its own socket:
auth ldap-10 { passdb ldap { args = /etc/dovecot/dovecot-ldap-10.conf } socket listen { client { path = /var/spool/postfix/private/auth-10 mode = 0666 } } }
I need multiple sockets tied to multiple dbs because there are duplicated accounts, but after switching to dovecot 2.1.7 apparently *all* passdbs are checked and dovecot reports this message:
Warning: Obsolete setting in /etc/dovecot/conf.d/auth-local.conf.ext:91: add auth_ prefix to all settings inside auth {} and remove the auth {} section completely
doveconf shows that all my custom sockets are now part of a single "service auth { }" section, while all the passdbs appear at the top level.
How can I update my configuration for dovecot 2.x?
I didn't think there was any point in having multiple auth {} sections the way they worked in v1.x, but looks like you've managed to find one way to use them. I'm not sure if it's possible to convert them to v2.x configuration currently. You could try this though:
service auth-10 { executable = auth -c /etc/dovecot-auth-10.conf unix_listener /var/spool/postfix/private/auth-10 { mode = 0666 } process_limit = 1 }
So the master process would be starting multiple auth processes, each reading their own (passdb) configuration from a different config file.
participants (2)
-
md@Linux.IT
-
Timo Sirainen