auth_default_realm = fripost.org auth_username_format = %Lu auth_mechanisms = plain login mail_uid = vmail mail_gid = vmail mail_privileged_group = first_valid_uid = 1 last_valid_uid = 0 default_vsz_limit = 1024M service imap-login { inet_listener imap { {% if groups.all | length > 1 %} address = {{ ipsec[inventory_hostname_short] }} port = 143 {% else %} port = 0 {% endif %} } process_limit = 256 process_min_avail = 4 } service stats { unix_listener stats-writer { user = vmail mode = 0600 } } service submission-login { inet_listener submission { port = 0 } } service lmtp { user = vmail unix_listener lmtp { mode = 0 } unix_listener /var/spool/postfix-mda/private/dovecot-lmtpd { user = postfix mode = 0600 } process_min_avail = 4 } service imap { unix_listener imap-master { user = $default_internal_user mode = 0600 } } service imap-hibernate { unix_listener imap-hibernate { # Match user running imap processes, cf. # https://dovecot.org/pipermail/dovecot/2015-August/101783.html user = vmail mode = 0600 } } service auth { unix_listener auth-userdb { user = vmail mode = 0600 } # Postfix smtp-auth unix_listener /var/spool/postfix-msa/private/dovecot-auth { user = postfix group = postfix mode = 0600 } } service auth-worker { user = $default_internal_user } mail_server_comment = "fripost - demokratisk e-post" mail_server_admin = mailto:postmaster@fripost.org mail_plugins = quota virtual zlib mail_location = mdbox:~/mail mdbox_preallocate_space = yes mail_attachment_dir = /home/mail/attachments mail_attachment_fs = sis-queue /home/mail/attachments/queue:posix mail_attachment_hash = %{sha256} sendmail_path = /usr/sbin/postmulti -i msa -x /usr/sbin/sendmail ssl = required # XXX `doveadm exec imap` fails with "ssl_key: Can't open file # /etc/dovecot/ssl/imap.fripost.org.key" # https://dovecot.org/pipermail/dovecot/2020-August/119642.html # TODO bookworm inline the include_try !include_try ../ssl/config ssl_dh =