This documentation is for Dovecot v2.x, see wiki1 for v1.x documentation.
Differences between revisions 18 and 19
Revision 18 as of 2011-12-20 13:16:48
Size: 1814
Editor: TimoSirainen
Revision 19 as of 2012-08-01 17:47:01
Size: 1895
Editor: TimoSirainen
Deletions are marked like this. Additions are marked like this.
Line 22: Line 22:
 * [[AuthDatabase/Dict|Dict]]: Dict key-value database (Redis, memcached, etc.)

User Databases

After a user has been successfully authenticated, Dovecot looks up the user's userdb information. The userdb lookup is also done by LDA to find out how to deliver mails for the user.

The user database lookup returns these fields:

  • uid: User's UID (UNIX user ID), overrides the global mail_uid setting.

  • gid: User's GID (UNIX group ID), overrides the global mail_gid setting.

  • home: User's home directory, overrides the global mail_home setting. Although not required, it's highly recommended even for virtual users.

  • mail: Mail location, overrides the global mail_location setting.

  • Optional extra fields which are passed to the IMAP/POP3 process in environment variables.

The user and password databases may be the same or they may be different depending on your needs. You can also have multiple databases.

Currently supported user databases are:

  • Passwd: System users (NSS, /etc/passwd, or similiar)

  • Passwd-file: /etc/passwd-like file in specified location

  • NSS: Name Service Switch

  • LDAP: Lightweight Directory Access Protocol

  • SQL: SQL database (PostgreSQL, MySQL, SQLite)

  • Dict: Dict key-value database (Redis, memcached, etc.)

  • Static: Userdb information generated from a given template

  • VPopMail: External software used to handle virtual domains

  • Prefetch: This assumes that the passdb already returned also all the required user database information

None: UserDatabase (last edited 2019-09-11 13:58:52 by MichaelSlusarz)