This documentation is for Dovecot v2.x, see wiki1 for v1.x documentation.
Differences between revisions 6 and 7
Revision 6 as of 2007-03-21 03:44:33
Size: 1369
Editor: TimoSirainen
Comment:
Revision 7 as of 2007-06-13 00:26:07
Size: 1496
Editor: TimoSirainen
Comment:
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
Dovecot obtains a user's [:UserIds:UNIX user ID (UID), UNIX group ID (GID)], home directory and [:MailLocation:mail location] from the user database after the user has been authenticated. The user database may also return [wiki:UserDatabase/ExtraFields extra fields] which are sent to the IMAP/POP3 process in environment variables. After user has been successfully authenticated, Dovecot looks up the user's userdb information. The userdb lookup is also done by [:LDA:deliver] to find out how to deliver mails for the user.
Line 5: Line 5:
The user and password databases may be the same or they may be different depending on your needs. You can also have [:Authentication/MultipleDatabases:multiple databases]. The user database lookup returns:
Line 7: Line 7:
For more information about UID and GID, see UserIds.  * User's [:UserIds#mailusers:UID] (UNIX user ID)
 * User's [:UserIds#gids:GID] (UNIX group ID)
 * [:VirtualUsers#homedirs:Home directory]
 * [:MailLocation:Mail location] (if needed to override the default {{{mail_location}}} setting)
 * Optional [:UserDatabase/ExtraFields:extra fields] which are sent to the IMAP/POP3 process in environment variables.
Line 9: Line 13:
For more information about home directory and mail location, see MailLocation. The user and [:PasswordDatabase:password databases] may be same or they may be different depending on your needs. You can also have [:Authentication/MultipleDatabases:multiple databases].
Line 13: Line 17:
 * [wiki:AuthDatabase/Passwd Passwd]: `/etc/passwd` or similiar (using `getpwnam()` function)  * [wiki:AuthDatabase/Passwd Passwd]: System users (NSS, `/etc/passwd`, or similiar)

User Databases

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

The user database lookup returns:

The user and [:PasswordDatabase:password databases] may be same or they may be different depending on your needs. You can also have [:Authentication/MultipleDatabases:multiple databases].

Currently supported user databases are:

  • [wiki:AuthDatabase/Passwd Passwd]: System users (NSS, /etc/passwd, or similiar)

  • [wiki:AuthDatabase/PasswdFile Passwd-file]: /etc/passwd-like file in specified location

  • [wiki:AuthDatabase/LDAP LDAP]: Lightweight Directory Access Protocol
  • [wiki:AuthDatabase/SQL SQL]: SQL database (PostgreSQL, MySQL, SQLite)
  • [wiki:UserDatabase/Static Static]: Userdb information generated from a given template
  • [wiki:AuthDatabase/VPopMail VPopMail]: External software used to handle virtual domains
  • [wiki:UserDatabase/Prefetch 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)