Franziska Kunsmann
f3d8a1412c
All checks were successful
bundlewrap/pipeline/head This commit looks good
135 lines
2.9 KiB
Text
135 lines
2.9 KiB
Text
!include conf.d/*.conf
|
|
|
|
namespace inbox {
|
|
type = private
|
|
inbox = yes
|
|
location =
|
|
mailbox Drafts {
|
|
auto = subscribe
|
|
special_use = \Drafts
|
|
}
|
|
mailbox Junk {
|
|
auto = create
|
|
special_use = \Junk
|
|
autoexpunge = 30d
|
|
}
|
|
mailbox Sent {
|
|
auto = subscribe
|
|
special_use = \Sent
|
|
}
|
|
mailbox Trash {
|
|
auto = subscribe
|
|
special_use = \Trash
|
|
autoexpunge = 360d
|
|
}
|
|
prefix =
|
|
}
|
|
|
|
mail_location = maildir:/var/mail/vmail/%d/%n
|
|
protocols = imap lmtp sieve
|
|
|
|
ssl = yes
|
|
ssl_cert = </var/lib/dehydrated/certs/${node.metadata['postfix']['myhostname']}/fullchain.pem
|
|
ssl_key = </var/lib/dehydrated/certs/${node.metadata['postfix']['myhostname']}/privkey.pem
|
|
ssl_dh = </etc/dovecot/ssl/dhparam.pem
|
|
ssl_min_protocol = TLSv1.2
|
|
ssl_cipher_list = EECDH+AESGCM:EDH+AESGCM
|
|
ssl_prefer_server_ciphers = yes
|
|
|
|
login_greeting = IMAPd ready
|
|
auth_mechanisms = plain login
|
|
first_valid_uid = 65534
|
|
disable_plaintext_auth = yes
|
|
mail_plugins = $mail_plugins zlib
|
|
|
|
plugin {
|
|
zlib_save_level = 6
|
|
zlib_save = gz
|
|
|
|
sieve_plugins = sieve_imapsieve sieve_extprograms
|
|
sieve_dir = /var/mail/vmail/sieve/%d/%n/
|
|
sieve = /var/mail/vmail/sieve/%d/%n.sieve
|
|
sieve_pipe_bin_dir = /var/mail/vmail/sieve/bin
|
|
sieve_extensions = +vnd.dovecot.pipe
|
|
|
|
% if node.has_bundle('rspamd'):
|
|
sieve_before = /var/mail/vmail/sieve/global/spam-global.sieve
|
|
|
|
# From elsewhere to Spam folder
|
|
imapsieve_mailbox1_name = Junk
|
|
imapsieve_mailbox1_causes = COPY
|
|
imapsieve_mailbox1_before = file:/var/mail/vmail/sieve/global/learn-spam.sieve
|
|
|
|
# From Spam folder to elsewhere
|
|
imapsieve_mailbox2_name = *
|
|
imapsieve_mailbox2_from = Junk
|
|
imapsieve_mailbox2_causes = COPY
|
|
imapsieve_mailbox2_before = file:/var/mail/vmail/sieve/global/learn-ham.sieve
|
|
% endif
|
|
}
|
|
|
|
service auth {
|
|
unix_listener /var/spool/postfix/private/auth {
|
|
mode = 0660
|
|
user = postfix
|
|
group = postfix
|
|
}
|
|
|
|
unix_listener auth-userdb {
|
|
mode = 0660
|
|
user = nobody
|
|
group = nogroup
|
|
}
|
|
}
|
|
|
|
service lmtp {
|
|
unix_listener /var/spool/postfix/private/dovecot-lmtp {
|
|
group = postfix
|
|
mode = 0600
|
|
user = postfix
|
|
}
|
|
}
|
|
|
|
service imap {
|
|
executable = imap
|
|
}
|
|
|
|
service imap-login {
|
|
service_count = 1
|
|
process_min_avail = 8
|
|
vsz_limit = 64M
|
|
}
|
|
|
|
service managesieve-login {
|
|
inet_listener sieve {
|
|
port = 4190
|
|
}
|
|
}
|
|
|
|
userdb {
|
|
driver = sql
|
|
args = /etc/dovecot/dovecot-sql.conf
|
|
}
|
|
|
|
passdb {
|
|
driver = sql
|
|
args = /etc/dovecot/dovecot-sql.conf
|
|
}
|
|
|
|
protocol lmtp {
|
|
mail_plugins = $mail_plugins sieve
|
|
postmaster_address = ${admin_email}
|
|
}
|
|
|
|
protocol imap {
|
|
mail_plugins = $mail_plugins imap_zlib imap_sieve
|
|
mail_max_userip_connections = 50
|
|
imap_idle_notify_interval = 29 mins
|
|
}
|
|
|
|
protocol sieve {
|
|
plugin {
|
|
sieve = /var/mail/vmail/sieve/%d/%n.sieve
|
|
sieve_storage = /var/mail/vmail/sieve/%d/%n/
|
|
}
|
|
}
|