335ac4abc3f30859f9f9a47072d40271f4c85922Aki TuomiBuild Instructions
335ac4abc3f30859f9f9a47072d40271f4c85922Aki Tuomi==================
335ac4abc3f30859f9f9a47072d40271f4c85922Aki Tuomi
335ac4abc3f30859f9f9a47072d40271f4c85922Aki TuomiFor most people, the usual:
335ac4abc3f30859f9f9a47072d40271f4c85922Aki Tuomi
335ac4abc3f30859f9f9a47072d40271f4c85922Aki Tuomi```
335ac4abc3f30859f9f9a47072d40271f4c85922Aki Tuomi./configure
335ac4abc3f30859f9f9a47072d40271f4c85922Aki Tuomimake
335ac4abc3f30859f9f9a47072d40271f4c85922Aki Tuomisudo make install
335ac4abc3f30859f9f9a47072d40271f4c85922Aki Tuomi```
335ac4abc3f30859f9f9a47072d40271f4c85922Aki Tuomi
335ac4abc3f30859f9f9a47072d40271f4c85922Aki Tuomiis enough. This installs Dovecot under /usr/local.
335ac4abc3f30859f9f9a47072d40271f4c85922Aki Tuomi
335ac4abc3f30859f9f9a47072d40271f4c85922Aki TuomiIf 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:
335ac4abc3f30859f9f9a47072d40271f4c85922Aki Tuomi
335ac4abc3f30859f9f9a47072d40271f4c85922Aki Tuomi`CPPFLAGS=-I/opt/openssl/include LDFLAGS=-L/opt/openssl/lib ./configure`
335ac4abc3f30859f9f9a47072d40271f4c85922Aki Tuomi
335ac4abc3f30859f9f9a47072d40271f4c85922Aki TuomiSee `./configure --help` for a list of all available configure options.
335ac4abc3f30859f9f9a47072d40271f4c85922Aki TuomiSee [http://wiki2.dovecot.org/CompilingSource](http://wiki2.dovecot.org/CompilingSource) for more information.
335ac4abc3f30859f9f9a47072d40271f4c85922Aki Tuomi
335ac4abc3f30859f9f9a47072d40271f4c85922Aki TuomiRunning
335ac4abc3f30859f9f9a47072d40271f4c85922Aki Tuomi=======
335ac4abc3f30859f9f9a47072d40271f4c85922Aki Tuomi
335ac4abc3f30859f9f9a47072d40271f4c85922Aki TuomiStart with the example configuration:
335ac4abc3f30859f9f9a47072d40271f4c85922Aki Tuomi
335ac4abc3f30859f9f9a47072d40271f4c85922Aki Tuomi```
335ac4abc3f30859f9f9a47072d40271f4c85922Aki Tuomicp -r /usr/local/share/doc/dovecot/example-config/* /usr/local/etc/dovecot/
335ac4abc3f30859f9f9a47072d40271f4c85922Aki Tuomi```
335ac4abc3f30859f9f9a47072d40271f4c85922Aki Tuomi
335ac4abc3f30859f9f9a47072d40271f4c85922Aki TuomiRead through, and make needed modifications.
335ac4abc3f30859f9f9a47072d40271f4c85922Aki Tuomi
335ac4abc3f30859f9f9a47072d40271f4c85922Aki TuomiOnce everything is configured, start Dovecot by running "dovecot" binary.
335ac4abc3f30859f9f9a47072d40271f4c85922Aki Tuomi
335ac4abc3f30859f9f9a47072d40271f4c85922Aki TuomiSee Wiki for more information about configuration. If you're in a hurry, go at least through [http://wiki2.dovecot.org/QuickConfiguration](http://wiki2.dovecot.org/QuickConfiguration)
335ac4abc3f30859f9f9a47072d40271f4c85922Aki Tuomi
335ac4abc3f30859f9f9a47072d40271f4c85922Aki TuomiSSL/TLS
335ac4abc3f30859f9f9a47072d40271f4c85922Aki Tuomi=======
335ac4abc3f30859f9f9a47072d40271f4c85922Aki Tuomi
335ac4abc3f30859f9f9a47072d40271f4c85922Aki TuomiDovecot used to support both GNUTLS and OpenSSL libraries, but nowadays only the OpenSSL code is working.