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

Home Directories for Virtual Users

Home directory is a per-user directory where Dovecot can save user-specific files.

And in particular:

Some uses for home directory are:

Home vs. mail directory

Home directory shouldn't be the same as mail directory. It's possible to do that, but you might run into trouble with it sooner or later. Some problems with this are:

Ways to set up home directory

The directory layouts for home and mail directories could look like one of these (in the preferred order):

  1. Mail directory under home, for example: home=/var/vmail/domain/user/ mail=/var/vmail/domain/user/mail/

  2. Completely distinct home and mail directories: home=/home/virtual/domain/user/ mail=/var/vmail/domain/user/

  3. Home directory under mail, for example:
    • Maildir: home=/var/vmail/domain/user/home/ mail=/var/vmail/domain/user/

    • mbox: There's really no good and safe way to do it.
  4. The home directory is the same as the mail directory.


LDAP with relative directory paths

If your LDAP database uses e.g. mailDirectory = domain/user/, you can use it as a base for home directory:

user_attrs = .., mailDirectory=home=/var/vmail/%$

Then just use mail_location = maildir:~/Maildir.

None: VirtualUsers/Home (last edited 2010-04-19 21:39:09 by TimoSirainen)