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

Namespaces

Dovecot 1.0-test versions support fully configurable namespaces. They're useful for several different purposes:

See namespace sections in [http://dovecot.org/doc/dovecot-example.conf example configuration file] for more information.

Backwards Compatibility

When switching from UW-IMAP and you don't want to give users full access to filesystem, you can create hidden namespaces which allow users to access their mails using their existing namespace settings in clients.

# default namespace
namespace private {
  separator = /
  prefix =
  inbox = yes
}
# for backwards compatibility:
namespace private {
  separator = /
  prefix = mail/
  hidden = yes
}
namespace private {
  separator = /
  prefix = ~/mail/
  hidden = yes
}
namespace private {
  separator = /
  prefix = ~%u/mail/
  hidden = yes
}

For Courier-IMAP compatibility, use:

namespace private {
  separator = .
  prefix = INBOX.
  inbox = yes
}

Shared Mailboxes

See SharedFolders.

Multiple Mailbox Locations

INBOX in /var/mail/username, maildir in ~/Maildir, other mboxes in ~/mail under #mbox/ namespace:

namespace private {
  separator = /
  inbox = yes
  prefix = "#mbox/"
  location = mbox:~/mail:INBOX=/var/mail/%u
}
namespace private {
  separator = /
  prefix =
  location = maildir:~/Maildir
}