base_dir = /var/dovecot/
protocols = imap imaps pop3 pop3s

imaps_listen = *
pop3s_listen = *

ssl_cert_file = /var/dovecot/ssl/certs/imapd.pem
ssl_key_file = /var/dovecot/ssl/private/imapd.pem
ssl_parameters_file = /var/dovecot/ssl/parameters.dat
login_dir = /var/dovecot/login
login_chroot = yes

login = imap
login_executable = /usr/local/libexec/dovecot/imap-login
login_user = dovecot
login_process_size = 0
login_process_per_connection = no
login_processes_count = 1

login = pop3
login_executable = /usr/local/libexec/dovecot/pop3-login
verbose_proctitle = yes
verbose_ssl = yes

first_valid_uid = 500
first_valid_gid = 500
valid_chroot_dirs = /var/mail
default_mail_env = mbox:%h:INBOX=/var/mail/%u
mail_cache_fields =
mail_never_cache_fields =  MessagePart Bodystructure Body Envelope
client_workarounds = oe6-fetch-no-newmail outlook-idle
mailbox_check_interval = 0
mailbox_idle_check_interval = 0
mail_full_filesystem_access = no

# Save mails with CR+LF instead of plain LF. This makes sending those mails
# take less CPU, especially with sendfile() syscall with Linux and FreeBSD.
# But it also creates a bit more disk I/O which may just make it slower.
mail_save_crlf = yes

maildir_copy_with_hardlinks = yes
maildir_check_content_changes = no
mbox_locks = fcntl

imap_executable = /usr/local/libexec/dovecot/imap
pop3_executable = /usr/local/libexec/dovecot/pop3

auth = default
auth_mechanisms = plain

auth_userdb = passwd
auth_passdb = passwd

auth_executable = /usr/local/libexec/dovecot/dovecot-auth
auth_user = root
auth_count = 5
auth_verbose = yes

