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 }} }