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

About Dovecot

Dovecot, written by Timo Sirainen, is an open source IMAP and POP3 server for Linux/UNIX-like systems, written with security primarily in mind. Although it's written in C, it uses several coding techniques to avoid most of the common pitfalls.

Dovecot is fast, secure, flexible, and has a rich feature set that makes it compatible with most existing IMAP systems. It has a rich set of easy to read and understand configuration options with fairly good documentation within the configuration file. This allows for easy migration path from UW-IMAP and Courier. Dovecot supports both MBOX and MAILDIR formats allowing you compatibility with your existing system while giving you the option to switch it something else.

Dovecot supports a wide variety of Virtual User Configurations so you can support multiple domains using a variety of methods. Dovecot is compatible with Exim, Sendmail, Postfix, QMail, and other mail transfer agents. It also works with webmail interfaces like Squirrelmail.

Dovecot takes very little memory. Most of it goes to mmap()ed index and mailbox files, meaning that if operating system is low on memory, it can simply drop those memory pages without having to store them in swap. Connections are handled in separate processes, each one currently using around 100kB of swappable memory. Some extensions like SORT and THREAD will require more memory to work though.

Dovecot is fail safe. Dovecot does sanity checks to all data before using it to avoid crashes and other problems. Any kind of crash is considered as a bug and will be fixed - even if it happens only by deliberately poking the index files. Dovecot is a program that "just works".

Dovecot supports multiple authentication databases at the same time as well as multiple name spaces. Multiple authentication means that you can support the old Unix style mailboxes at the same time as a modern virtual email system.

Documentation and Support

What's the point of having great software if no one knows how to use it? Dovecot has a strong support community. As compared to many open source software packages Dovecot is well documented here in this wiki by the author and many users who aren't programmers who contribute to making this program successful. Dovecot has a support mailing list that can be accessed through . Anyone can subscribe.

Dovecot is in active development and is progressing at a rapid pace. Read testimonials from happy users.

Operating Systems

Dovecot runs on these operating systems:


Dovecot supports:


Dovecot authentication mechanisms include:

User/Password Databases

Dovecot supports many ways to store user and password information including:

Mail Storage

Dovecot lets you put the data where you want it with a rich set of variables including:

%u - username
%n - user part in user@domain, same as %u if there's no domain
%d - domain part in user@domain, empty if there's no domain
%h - home directory

Examples of a default mail environment might look like this:

mail_location = maildir:/var/mail/%1u/%u/Maildir
mail_location = mbox:~/mail/:INBOX=/var/mail/%u
mail_location = mbox:/var/mail/%d/%n/:INDEX=/var/indexes/%d/%n
mail_location = mbox:/vhome/%d/home/%n:INBOX=/vhome/%d/home/%n/INBOX:INDEX=/imap-cache/%d-%n

Both MBOX and MAILDIR are supported.

Other Features



Mail store

Miscellaneous features

DovecotFeatures (last edited 2011-04-05 03:07:41 by MaxPower)