view INSTALL @ 22898:68e071667d10

imapc: Update mail size also when istream_opened() hook is called When fetching a message body the cached message size was set. However, if istream_opened() hook was used this wasn't done. If a client had fetched both (RFC822.SIZE BODY.PEEK[]) and the server sent a wrong RFC822.SIZE, that size was used for the message body size, which resulted in "Cached message size larger than expected" errors.
author Timo Sirainen <>
date Thu, 15 Mar 2018 12:20:14 +0200
parents 5ea2e9b93fe3
line wrap: on
line source

Build Instructions

For most people, the usual:

  sudo make install

is enough. This installs Dovecot under /usr/local.

If you have installed some libraries into locations which require special
include or library paths, you can give them in CPPFLAGS and LDFLAGS
environment variables. For example:

  CPPFLAGS=-I/opt/openssl/include LDFLAGS=-L/opt/openssl/lib ./configure

See ./configure --help for a list of all available configure options.
See for more information.


Start with the example configuration:

  cp -r /usr/local/share/doc/dovecot/example-config/* /usr/local/etc/dovecot/

Read through, and make needed modifications.

Once everything is configured, start Dovecot by running "dovecot" binary.

See Wiki for more information about configuration. If you're in a hurry, go
at least through


Dovecot used to support both GNUTLS and OpenSSL libraries, but nowadays
only the OpenSSL code is working.