dovecot: Initial version of role

This commit is contained in:
Timo Makinen 2020-09-27 12:41:08 +00:00
parent 54b0b1da21
commit 04c9be96a4
3 changed files with 99 additions and 0 deletions

View file

@ -0,0 +1,48 @@
# ssl settings
ssl = required
ssl_cert = {{ tls_certs }}/{{ mail_server }}.crt
ssl_key = {{ tls_private }}/{{ mail_server }}.key
# kerberos
auth_gssapi_hostname = "$ALL"
auth_krb5_keytab = /etc/dovecot/dovecot.keytab
auth_mechanisms = gssapi plain login
# use index from tmpfs
mail_location = mbox:~/imapmail/:INBOX=/var/mail/%u:INDEX=/var/spool/dovecot/index/home/%u
# special icons for mailboxes
namespace inbox {
mailbox spam {
special_use = \Junk
}
mailbox Sent {
auto = subscribe
special_use = \Sent
}
mailbox Trash {
auto = subscribe
special_use = \Trash
}
}
# imap specific
protocol imap {
mail_max_userip_connections = 20
imap_idle_notify_interval = 29 mins
}
# disable plain text imap and pop3
service pop3-login {
inet_listener pop3 {
port = 0
}
inet_listener pop3s {
port = 0
}
}
service imap-login {
inet_listener imap {
port = 0
}
}