mirror of
https://github.com/deuill/coreos-home-server.git
synced 2024-09-22 06:00:46 +00:00
Alex Palaistras
8051418e61
This option has Dovecot only return directories in LIST commands, which is a necessary workaround because of how our home and maildir locations are the same, which sometimes has extraneous files (such as Sieve scripts) appear in IMAP directory listings. We should eventually move away from this unified location, but doing so requires careful planning and migration.
133 lines
2.4 KiB
Plaintext
133 lines
2.4 KiB
Plaintext
# Custom Dovecot configuration.
|
|
|
|
# ----------------------
|
|
# Generic configuration.
|
|
# ----------------------
|
|
|
|
# Logging & debugging.
|
|
log_path = /dev/stderr
|
|
auth_verbose = yes
|
|
|
|
plugin {
|
|
mail_log_events = delete undelete expunge copy mailbox_delete mailbox_rename
|
|
mail_log_fields = uid box msgid size
|
|
}
|
|
|
|
# Mail directory.
|
|
mail_location = maildir:/var/mail/virtual/%u
|
|
mail_privileged_group = virtual
|
|
mail_uid = 5000
|
|
mail_gid = 5000
|
|
maildir_stat_dirs = yes
|
|
|
|
# Simplify log messages.
|
|
login_log_format_elements = user=<%u> method=%m rip=%r lip=%l mpid=%e %c
|
|
mail_log_prefix = "%s(%u)<%{pid}>: "
|
|
|
|
# ----------------------
|
|
# Mailbox configuration.
|
|
# ----------------------
|
|
|
|
namespace inbox {
|
|
separator = .
|
|
prefix = INBOX.
|
|
inbox = yes
|
|
|
|
mailbox Drafts {
|
|
auto = subscribe
|
|
special_use = \Drafts
|
|
}
|
|
|
|
mailbox Junk {
|
|
auto = create
|
|
special_use = \Junk
|
|
}
|
|
|
|
mailbox Sent {
|
|
auto = subscribe
|
|
special_use = \Sent
|
|
}
|
|
|
|
mailbox "Sent Messages" {
|
|
auto = no
|
|
special_use = \Sent
|
|
}
|
|
|
|
mailbox Trash {
|
|
auto = subscribe
|
|
special_use = \Trash
|
|
}
|
|
}
|
|
|
|
# ----------------------
|
|
# Protocol configuration.
|
|
# ----------------------
|
|
|
|
# Enabled protocols.
|
|
protocols = imap
|
|
|
|
# Enable SSL and STARTTLS.
|
|
ssl = yes
|
|
ssl_min_protocol = TLSv1.2
|
|
ssl_cipher_list = ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384
|
|
ssl_prefer_server_ciphers = no
|
|
|
|
ssl_cert = </etc/ssl/private/certificates/${DOVECOT_HOST}.crt
|
|
ssl_key = </etc/ssl/private/certificates/${DOVECOT_HOST}.key
|
|
|
|
protocol imap {
|
|
mail_max_userip_connections = 25
|
|
}
|
|
|
|
service imap-login {
|
|
inet_listener imap {
|
|
port = 143
|
|
}
|
|
|
|
inet_listener imaps {
|
|
port = 993
|
|
}
|
|
}
|
|
|
|
# Disable POP3.
|
|
service pop3-login {
|
|
inet_listener pop3 {
|
|
port = 0
|
|
}
|
|
|
|
inet_listener pop3s {
|
|
port = 0
|
|
}
|
|
}
|
|
|
|
# ----------------------
|
|
# Auth configuration.
|
|
# ----------------------
|
|
|
|
auth_mechanisms = plain login
|
|
disable_plaintext_auth = yes
|
|
|
|
# Enable SASL authentication on specific TCP port.
|
|
service auth {
|
|
inet_listener {
|
|
port = 3659
|
|
}
|
|
}
|
|
|
|
# Enable SQL authentication.
|
|
userdb {
|
|
driver = sql
|
|
args = /etc/dovecot/dovecot-sql.conf.local
|
|
}
|
|
|
|
passdb {
|
|
driver = sql
|
|
args = /etc/dovecot/dovecot-sql.conf.local
|
|
}
|
|
|
|
# -------------------------
|
|
# Additional configuration.
|
|
# -------------------------
|
|
|
|
!include conf.d/*.conf
|