From SpectLog
Jump to: navigation, search

General information

Dovecot configuration is split into multiple files under /etc/dovecot/conf.d/ directory with one main /etc/dovecot/dovecot.conf file.

Access to Dovecot is configured through PAM in /etc/pam.d/dovecot which authenticates and gives access to system user accounts.

Default configuration

Check non-default settings:

dovecot -n

Dump all settings to stdout (useful for filtering with grep):

dovecot -a

Default configuration listens on all IMAP/IMAPS and POP3/POP3S ports (143/993 and 110/995).

By default Dovecot logs to syslog using mail facility [1] which normally outputs to /var/log/maillog file.

Quick setup

Dovecot default configuration is fully functional for local user. However, according to the mail storage location setting by mail_location[2], it may be required to create /home/user/mail directory with appropriate permissions as Dovecot tries to access it:

mkdir /home/user/mail
chown user:mail /home/user/mail
chmod g+rwxs /home/user/mail