Minor fix to dovecot ssl config for virtual host domains.

This commit is contained in:
Brian Lee 2024-10-13 15:02:31 -07:00
parent a72c8440f8
commit 440e83f3f0
2 changed files with 3 additions and 1 deletions

View File

@ -38,9 +38,11 @@ To operate multiple domains from a single server, add additional domains to the
```yaml ```yaml
postfix_virtual_domains: postfix_virtual_domains:
- name: example.org - name: example.org
mx_domain: mail.example.org
cert: /var/acme/certificates/mail.example.org.crt cert: /var/acme/certificates/mail.example.org.crt
key: /var/acme/certificates/mail.example.org.key key: /var/acme/certificates/mail.example.org.key
- name: example.net - name: example.net
mx_domain: mail.example.net
cert: /var/acme/certificates/mail.example.net.crt cert: /var/acme/certificates/mail.example.net.crt
key: /var/acme/certificates/mail.example.net.key key: /var/acme/certificates/mail.example.net.key
``` ```

View File

@ -53,7 +53,7 @@ ssl_dh=<{{ postfix_smtpd_tls_dh1024_param_file }}
{% if postfix_virtual_domains|length > 0 %} {% if postfix_virtual_domains|length > 0 %}
{% for domain in postfix_virtual_domains %} {% for domain in postfix_virtual_domains %}
# SNI configuration for {{ domain.name }} # SNI configuration for {{ domain.name }}
local_name {{ domain.name }} { local_name {{ domain.mx_domain }} {
ssl_cert = <{{ domain.cert }} ssl_cert = <{{ domain.cert }}
ssl_key = <{{ domain.key }} ssl_key = <{{ domain.key }}
} }