allow for SAN mail certs
This commit is contained in:
parent
b1ea2ee09e
commit
ee02317ed5
|
@ -44,7 +44,7 @@ fi
|
|||
|
||||
# create dovecot config & restart
|
||||
if [ ! -f "/etc/dovecot/sites.d/$confile" ]; then
|
||||
echo "local_name $maildomain {" > /etc/dovecot/sites.d/$confile
|
||||
echo "local_name \"mail.$domain imap.$domain pop.$domain smtp.$domain\" {" > /etc/dovecot/sites.d/$confile
|
||||
echo " ssl_cert = </etc/ssl/letsencrypt/$pemfile" >> /etc/dovecot/sites.d/$confile
|
||||
echo " ssl_key = </etc/ssl/letsencrypt/$pemfile" >> /etc/dovecot/sites.d/$confile
|
||||
echo "}" >> /etc/dovecot/sites.d/$confile
|
||||
|
|
|
@ -16,7 +16,7 @@ smtp_accept_queue_per_connection = 50
|
|||
.include /etc/exim4/exim_local.conf
|
||||
|
||||
tls_advertise_hosts = *
|
||||
tls_certificate = ${if exists{/etc/ssl/letsencrypt/${tls_sni}.pem}{/etc/ssl/letsencrypt/${tls_sni}.pem}}
|
||||
tls_certificate = ${if exists{/etc/ssl/letsencrypt/${sg{${tls_sni}}{^smtp\.}{mail.}}.pem}{/etc/ssl/letsencrypt/${sg{${tls_sni}}{^smtp\.}{mail.}}.pem}}
|
||||
|
||||
tls_on_connect_ports = 465
|
||||
daemon_smtp_ports = 25 : 465 : 587
|
||||
|
|
Loading…
Reference in New Issue
Block a user