diff --git a/cmdeploy/src/cmdeploy/chatmail.zone.j2 b/cmdeploy/src/cmdeploy/chatmail.zone.j2 index 8844c1d7..debc7fc4 100644 --- a/cmdeploy/src/cmdeploy/chatmail.zone.j2 +++ b/cmdeploy/src/cmdeploy/chatmail.zone.j2 @@ -7,10 +7,11 @@ {% if AAAA %} {{ mail_domain }}. AAAA {{ AAAA }} {% endif %} -{{ mail_domain }}. MX 10 {{ mail_domain }}. +{{ mail_domain }}. MX 10 mx.{{ mail_domain }}. _mta-sts.{{ mail_domain }}. TXT "v=STSv1; id={{ sts_id }}" mta-sts.{{ mail_domain }}. CNAME {{ mail_domain }}. www.{{ mail_domain }}. CNAME {{ mail_domain }}. +mx.{{ mail_domain }}. CNAME {{ mail_domain }}. {{ dkim_entry }} ; diff --git a/cmdeploy/src/cmdeploy/nginx/mta-sts.txt.j2 b/cmdeploy/src/cmdeploy/nginx/mta-sts.txt.j2 index fc60e936..3b5e7b08 100644 --- a/cmdeploy/src/cmdeploy/nginx/mta-sts.txt.j2 +++ b/cmdeploy/src/cmdeploy/nginx/mta-sts.txt.j2 @@ -1,4 +1,4 @@ version: STSv1 mode: enforce -mx: {{ config.domain_name }} +mx: mx.{{ config.domain_name }} max_age: 2419200