This documentation is for Dovecot v2.x, see wiki1 for v1.x documentation.
Differences between revisions 3 and 5 (spanning 2 versions)
Revision 3 as of 2004-08-15 20:58:56
Size: 881
Editor: ip213-185-36-189
Comment:
Revision 5 as of 2005-01-05 01:28:45
Size: 80
Editor: talvi
Comment:
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.
what about multiple auth (local+vpopmail - users without "@domain" are local)?

what about multiple auth (local+vpopmail - users without "@domain" are local)?

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