Options for ssl and protocols

This commit is contained in:
Tobias Herre 2023-10-31 17:25:01 +01:00
parent bbe634e574
commit 7d3d409c55
1 changed files with 25 additions and 9 deletions

View File

@ -4,14 +4,17 @@
protocols = {{#vars.dovecot.cfg.protocols}} {{.}} {{/vars.dovecot.cfg.protocols}} protocols = {{#vars.dovecot.cfg.protocols}} {{.}} {{/vars.dovecot.cfg.protocols}}
service imap-login { #service imap-login {
inet_listener imap { # inet_listener imap {
#port = 143 # #port = 143
} # }
inet_listener imaps { #
port = 993 #{{#vars.dovecot.cfg.ssl}}
ssl = yes # inet_listener imaps {
} # port = 993
# ssl = yes
# }
#{{/vars.dovecot.cfg.ssl}}
# Number of connections to handle before starting a new process. Typically # Number of connections to handle before starting a new process. Typically
# the only useful values are 0 (unlimited) or 1. 1 is more secure, but 0 # the only useful values are 0 (unlimited) or 1. 1 is more secure, but 0
@ -23,12 +26,14 @@ service imap-login {
# If you set service_count=0, you probably need to grow this. # If you set service_count=0, you probably need to grow this.
#vsz_limit = $default_vsz_limit #vsz_limit = $default_vsz_limit
} #}
protocol imap { protocol imap {
{{#vars.dovecot.cfg.ssl}}
ssl_cert = <{{vars.dovecot.imap_cert}} ssl_cert = <{{vars.dovecot.imap_cert}}
ssl_key = <{{vars.dovecot.imap_key}} ssl_key = <{{vars.dovecot.imap_key}}
{{/vars.dovecot.cfg.ssl}}
# Space separated list of plugins to load (default is global mail_plugins). # Space separated list of plugins to load (default is global mail_plugins).
#mail_plugins = $mail_plugins #mail_plugins = $mail_plugins
@ -40,8 +45,10 @@ protocol imap {
protocol submission { protocol submission {
{{#vars.dovecot.cfg.ssl}}
ssl_cert = <{{vars.dovecot.submission_cert}} ssl_cert = <{{vars.dovecot.submission_cert}}
ssl_key = <{{vars.dovecot.submission_key}} ssl_key = <{{vars.dovecot.submission_key}}
{{/vars.dovecot.cfg.ssl}}
# Space separated list of plugins to load (default is global mail_plugins). # Space separated list of plugins to load (default is global mail_plugins).
#mail_plugins = $mail_plugins #mail_plugins = $mail_plugins
@ -51,6 +58,15 @@ protocol submission {
#mail_max_userip_connections = 10 #mail_max_userip_connections = 10
} }
protocol lda {
mail_plugins = $mail_plugins sieve
}
protocol lmtp {
mail_plugins = $mail_plugins sieve
}
{{#vars.dovecot.cfg.userdbs}} {{#vars.dovecot.cfg.userdbs}}
userdb { userdb {