mirror of
https://github.com/FAUSheppy/no-secrets-athq-ansible
synced 2025-12-09 22:08:33 +01:00
123 lines
2.2 KiB
Plaintext
123 lines
2.2 KiB
Plaintext
# Enable installed protocols
|
|
!include_try /usr/share/dovecot/protocols.d/*.protocol
|
|
|
|
# logs
|
|
info_log_path = /var/dovecot/logs/dovecot_info.log
|
|
log_path = /var/dovecot/logs/dovecot.log
|
|
|
|
protocols = imap pop3 lmtp
|
|
|
|
# We're using Maildir format
|
|
mail_location = maildir:~/Maildir
|
|
|
|
# If you're using POP3, you'll need this:
|
|
pop3_uidl_format = %g
|
|
|
|
# Authentication configuration:
|
|
auth_verbose = yes
|
|
auth_mechanisms = plain login
|
|
disable_plaintext_auth = no
|
|
|
|
passdb {
|
|
driver = passwd-file
|
|
args = scheme=SHA512-CRYPT username_format=%n /var/dovecot/auth/passwd
|
|
}
|
|
userdb {
|
|
driver = passwd-file
|
|
args = username_format=%n /var/dovecot/auth/passwd
|
|
}
|
|
|
|
# Postmaster
|
|
protocol lda {
|
|
postmaster_address = postmaster@example.com
|
|
}
|
|
|
|
# Quotas mus be defined like this in passwd userdb_quota_rule=*:storage=100M
|
|
mail_plugins = $mail_plugins quota
|
|
protocol imap {
|
|
mail_plugins = $mail_plugins imap_quota
|
|
}
|
|
plugin {
|
|
quota = maildir
|
|
}
|
|
## SSL settings
|
|
# SSL/TLS support: yes, no, required. <doc/wiki/SSL.txt>
|
|
ssl = yes
|
|
ssl_cert = </etc/letsencrypt/live/atlantishq.de/fullchain.pem
|
|
ssl_key = </etc/letsencrypt/live/atlantishq.de/privkey.pem
|
|
ssl_min_protocol = TLSv1.1
|
|
ssl_cipher_list = HIGH:!aNULL
|
|
ssl_prefer_server_ciphers = yes
|
|
|
|
default_login_user = dovenull
|
|
default_internal_user = dovecot
|
|
|
|
####### IMAP #######
|
|
service imap-login {
|
|
inet_listener imaps {
|
|
port = 993
|
|
ssl = yes
|
|
}
|
|
inet_listener imap {
|
|
port = 0
|
|
}
|
|
|
|
service_count = 1
|
|
process_min_avail = 1
|
|
vsz_limit = 100M
|
|
}
|
|
|
|
protocol imap {
|
|
imap_client_workarounds = tb-extra-mailbox-sep
|
|
}
|
|
service imap {
|
|
vsz_limit = 100M
|
|
process_limit = 100
|
|
}
|
|
|
|
|
|
####### POP3 #######
|
|
service pop3-login {
|
|
inet_listener pop3s {
|
|
port = 995
|
|
ssl = yes
|
|
}
|
|
inet_listener pop3 {
|
|
port = 0
|
|
}
|
|
}
|
|
service pop3 {
|
|
process_limit = 100
|
|
}
|
|
|
|
###### LMTP #######
|
|
service lmtp {
|
|
unix_listener /var/spool/postfix/private/dovecot_lmtp_target {
|
|
mode = 0600
|
|
group = postfix
|
|
user = postfix
|
|
}
|
|
}
|
|
|
|
###### AUTH ######
|
|
service auth {
|
|
unix_listener auth-userdb {
|
|
mode = 0600
|
|
group = postfix
|
|
user = postfix
|
|
}
|
|
# Postfix smtp-auth
|
|
unix_listener /var/spool/postfix/private/auth {
|
|
mode = 0600
|
|
group = postfix
|
|
user = postfix
|
|
}
|
|
user = dovecot
|
|
}
|
|
|
|
service auth-worker {
|
|
user = dovecot
|
|
}
|
|
|
|
first_valid_uid = 100
|