From 440e83f3f016f1a65b6daa6f5f1143b90f2072ed Mon Sep 17 00:00:00 2001 From: Brian Lee Date: Sun, 13 Oct 2024 15:02:31 -0700 Subject: [PATCH] Minor fix to dovecot ssl config for virtual host domains. --- README.md | 2 ++ templates/dovecot.conf.j2 | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ea7b4ba..d0b6797 100644 --- a/README.md +++ b/README.md @@ -38,9 +38,11 @@ To operate multiple domains from a single server, add additional domains to the ```yaml postfix_virtual_domains: - name: example.org + mx_domain: mail.example.org cert: /var/acme/certificates/mail.example.org.crt key: /var/acme/certificates/mail.example.org.key - name: example.net + mx_domain: mail.example.net cert: /var/acme/certificates/mail.example.net.crt key: /var/acme/certificates/mail.example.net.key ``` diff --git a/templates/dovecot.conf.j2 b/templates/dovecot.conf.j2 index 4190eec..acb655c 100644 --- a/templates/dovecot.conf.j2 +++ b/templates/dovecot.conf.j2 @@ -53,7 +53,7 @@ ssl_dh=<{{ postfix_smtpd_tls_dh1024_param_file }} {% if postfix_virtual_domains|length > 0 %} {% for domain in postfix_virtual_domains %} # SNI configuration for {{ domain.name }} -local_name {{ domain.name }} { +local_name {{ domain.mx_domain }} { ssl_cert = <{{ domain.cert }} ssl_key = <{{ domain.key }} }