This documentation is for Dovecot v1.x, see wiki2 for v2.x documentation.

Static User Database

Static user database can be used when you want to use only single UID and GID values for all users, and their home directories can be specified with a simple template. The syntax is:

userdb static {
  args = uid=<uid> gid=<gid> home=<dir template>
}

The home is optional. You can also return other extra fields. You can use the standard variables everywhere.

Deliver

Unless your MTA already verifies that the user exists before calling deliver, you'll most likely want deliver itself to verify the user's existence. Since deliver looks up the user only from the userdb, it of course doesn't work with static userdb because there is no list of users. Normally static userdb handles this by doing a passdb lookup instead. This works with most passdbs, with PAM being the most notable exception. If you want to avoid this user verification, you can add allow_all_users=yes to the args in which case the passdb lookup is skipped.

Example

userdb static {
  args = uid=500 gid=500 home=/home/%u
}

None: UserDatabase/Static (last edited 2009-03-15 22:35:20 by localhost)