This documentation is for Dovecot v2.x, see wiki1 for v1.x documentation.
Differences between revisions 3 and 19 (spanning 16 versions)
Revision 3 as of 2004-08-15 20:58:56
Size: 881
Editor: ip213-185-36-189
Comment:
Revision 19 as of 2019-09-11 14:00:18
Size: 105
Comment: Moved to new doc
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
= Multiple Authentication Databases =

Dovecot 1.0-tests support defining multiple authentication databases, so that if password doesn't match in the first database, it checks the next one. This can be useful if you want to easily support having both local system users in /etc/passwd but also virtual users. This isn't possible in 0.99 releases.

Currently the fallbacking works only with PLAIN authentication mechanism.

This can be configured in the following way:

{{{
auth local {
  mechanisms = plain
  userdb = passwd
  passdb = pam
  user = root
}

auth virtual {
  mechanisms = plain
  userdb = pgsql /etc/dovecot-pgsql.conf
  passdb = pgsql /etc/dovecot-pgsql.conf
  user = dovecot-auth
}
}}}

You should make sure that the same user doesn't exist in multiple password databases. The order in which the authentications are done isn't guaranteed.
Moved to https://doc.dovecot.org/configuration_manual/authentication/multiple_authentication_databases/

None: Authentication/MultipleDatabases (last edited 2019-09-11 14:00:18 by MichaelSlusarz)