diff --git a/.env.dist b/.env.dist index 1c46082a..17bfaaad 100644 --- a/.env.dist +++ b/.env.dist @@ -23,9 +23,7 @@ BIND_ADDRESS=127.0.0.1 # Main mail domain DOMAIN=mailu.io -# Main hostname for announces, and list of all available hostnames, separated -# by comas -HOSTNAME=mail.mailu.io +# Hostnames for this server, separated with comas HOSTNAMES=mail.mailu.io,alternative.mailu.io,yetanother.mailu.io # Postmaster local part (will append the main mail domain) diff --git a/admin/mailu/ui/templates/domain/details.html b/admin/mailu/ui/templates/domain/details.html index 1ae45e16..5b3655de 100644 --- a/admin/mailu/ui/templates/domain/details.html +++ b/admin/mailu/ui/templates/domain/details.html @@ -15,6 +15,7 @@ {% endblock %} {% block box %} +{% let hostname = config["HOSTNAMES"].split(",")[0] %}
{% trans %}DNS SPF entries{% endtrans %} | -{{ domain.name }}. 600 IN TXT "v=spf1 mx a:{{ config["HOSTNAME"] }} -all" -{{ domain.name }}. 600 IN SPF "v=spf1 mx a:{{ config["HOSTNAME"] }} -all" |
+{{ domain.name }}. 600 IN TXT "v=spf1 mx a:{{ hostname }} -all"
+{{ domain.name }}. 600 IN SPF "v=spf1 mx a:{{ hostname }} -all"
---|---|