diff --git a/.env.dist b/.env.dist index d365eb75..58bfc145 100644 --- a/.env.dist +++ b/.env.dist @@ -77,6 +77,10 @@ FETCHMAIL_DELAY=600 # e.g. localpart+custom@domain;tld RECIPIENT_DELIMITER=+ +# DMARC rua and ruf email +DMARC_RUA=admin +DMARC_RUF=admin + ################################### # Nginx settings ################################### diff --git a/admin/mailu/__init__.py b/admin/mailu/__init__.py index aeb4d89e..d09bb889 100644 --- a/admin/mailu/__init__.py +++ b/admin/mailu/__init__.py @@ -27,6 +27,8 @@ default_config = { 'BOOTSTRAP_SERVE_LOCAL': True, 'DKIM_PATH': '/dkim/{domain}.{selector}.key', 'DKIM_SELECTOR': 'dkim', + 'DMARC_RUA': None, + 'DMARC_RUF': None, 'BABEL_DEFAULT_LOCALE': 'en', 'BABEL_DEFAULT_TIMEZONE': 'UTC', 'ENABLE_CERTBOT': False, diff --git a/admin/mailu/admin/templates/domain/details.html b/admin/mailu/admin/templates/domain/details.html index 9a98f944..1ae45e16 100644 --- a/admin/mailu/admin/templates/domain/details.html +++ b/admin/mailu/admin/templates/domain/details.html @@ -42,7 +42,7 @@
_dmarc.{{ domain.name }}. 600 IN TXT "v=DMARC1; p=reject; rua=mailto:{{ config["POSTMASTER"] }}@{{ config["DOMAIN"] }}; adkim=s; aspf=s"
_dmarc.{{ domain.name }}. 600 IN TXT "v=DMARC1; p=reject;{% if config["DMARC_RUA"] %} rua=mailto:{{ config["DMARC_RUA"] }}@{{ config["DOMAIN"] }};{% endif %}{% if config["DMARC_RUF"] %} ruf=mailto:{{ config["DMARC_RUF"] }}@{{ config["DOMAIN"] }};{% endif %} adkim=s; aspf=s"