.. _quick_configuration: Quick Configuration ====================== If you just want to get Dovecot running with typical configuration in a typical environment, here's what you'll have to do: .. contents:: :depth: 2 :local: TLDR; Just want it running -------------------------- Here is a very simple basic configuration with single vmail user to be placed in :file:`dovecot.conf`. Please note that some distros split configuration under :file:`/etc/dovecot/conf.d/` which, while it can be useful, is not required. You need to create group vmail and user vmail. .. code-block:: none mail_home=/srv/mail/%Lu mail_location=sdbox:~/Mail ## this is sometimes needed #first_valid_uid = uid-of-vmail-user # if you want to use system users passdb pam { driver = pam } userdb passwd { driver = passwd args = blocking=no override_fields = uid=vmail gid=vmail } ssl=yes ssl_cert= dovecot.conf Hints about writing configuration files ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * Usually it does not matter in which file you write the setting. You only need to be aware that later settings replace earlier ones. If you use the same section multiple times, the settings are merged together. * Before v2.3, boolean settings in the plugin section interpreted any value as true, even :literal:`0`, :literal:`no` and :literal:`false`. * To read the content of a file, for instance for the SSL certificate option, prefix the filename with a :literal:`<`, e.g.: .. code-block:: none ssl_cert = `, which means that Dovecot will fail the authentication if the client doesn't use SSL (or use non-cleartext authentication mechanisms). This is recommended in most situations, since it prevents leaking passwords. However, if you don't offer SSL for some reason, you'll probably want to set :dovecot_core:ref:`auth_allow_cleartext = yes `. Since v2.3.3 you only need :dovecot_core:ref:`ssl_key` and :dovecot_core:ref:`ssl_cert`, leaving :dovecot_core:ref:`ssl_dh` unset (and removing :file:`ssl-parameters.dat` if left over from 2.2 configurations) will prevent using non-EC DH algorithms. NFS --- If you're using NFS or some other remote filesystem that's shared between multiple computers, you should read :ref:`nfs`. Running ------- See :ref:`running_dovecot` and :ref:`dovecot_logging`. Further reading: * :ref:`authentication-pam` * :ref:`authentication-password_databases` * :ref:`authentication-user_database` * :ref:`dovecot_logging` * :ref:`running_dovecot`