From 5b6cba3b9e1051f4c68459b94b6cec97e1981f05 Mon Sep 17 00:00:00 2001 From: Jaume Martin Date: Sun, 27 Aug 2017 20:29:04 +0200 Subject: [PATCH] Update details.html --- admin/mailu/admin/templates/domain/details.html | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/admin/mailu/admin/templates/domain/details.html b/admin/mailu/admin/templates/domain/details.html index 9a98f944..ba77201f 100644 --- a/admin/mailu/admin/templates/domain/details.html +++ b/admin/mailu/admin/templates/domain/details.html @@ -42,7 +42,15 @@ {% trans %}DNS DMARC entry{% endtrans %} + {% if config["DMARC_RUA"] != "" and config["DMARC_RUF"] != "" %} +
_dmarc.{{ domain.name }}. 600 IN TXT "v=DMARC1; p=reject; rua=mailto:{{ config["DMARC_RUA"] }}@{{ config["DOMAIN"] }}; ruf=mailto:{{ config["DMARC_RUF"] }}@{{ config["DOMAIN"] }}; adkim=s; aspf=s"
+ {% elif config["DMARC_RUA"] != "" %} +
_dmarc.{{ domain.name }}. 600 IN TXT "v=DMARC1; p=reject; rua=mailto:{{ config["DMARC_RUA"] }}@{{ config["DOMAIN"] }}; adkim=s; aspf=s"
+ {% elif config["DMARC_RUF"] != "" %} +
_dmarc.{{ domain.name }}. 600 IN TXT "v=DMARC1; p=reject; ruf=mailto:{{ config["DMARC_RUF"] }}@{{ config["DOMAIN"] }}; adkim=s; aspf=s"
+ {% else %}
_dmarc.{{ domain.name }}. 600 IN TXT "v=DMARC1; p=reject; rua=mailto:{{ config["POSTMASTER"] }}@{{ config["DOMAIN"] }}; adkim=s; aspf=s"
+ {% endif %} {% endif %}