{% extends 'dashboard/domain_detail/base.html' %} {% set domain_detail_page = "dns" %} {% block title %} {{ custom_domain.domain }} DNS {% endblock %} {% block domain_detail_content %}

{{ custom_domain.domain }}

Please follow the steps below to set up your domain.
DNS changes could take up to 24 hours to propagate. In practice, it's a lot faster though (~1 minute or in our experience).
1. MX record {% if custom_domain.verified %} {% else %} 🚫 {% endif %}
Add the following MX DNS record to your domain.
Please note that there's a point (.) at the end target addresses.
Also some domain registrars (Namecheap, CloudFlare, etc) might use @ for the root domain.
{% for priority, email_server in EMAIL_SERVERS_WITH_PRIORITY %}
Domain: {{ custom_domain.domain }} or @
Priority: {{ priority }}
Target: {{ email_server }}
{% endfor %}
{% if custom_domain.verified %} {% else %} {% endif %}
{% if not mx_ok %}
Your DNS is not correctly set. The MX record we obtain is:
{% if not mx_errors %} (Empty) {% endif %} {% for r in mx_errors %} {{ r }}
{% endfor %}
{% if custom_domain.verified %} Please make sure to fix this ASAP - your aliases might not work properly. {% endif %}
{% endif %}

2. SPF (Optional) {% if custom_domain.spf_verified %} {% else %} 🚫 {% endif %}
SPF (Wikipedia↗) is an email authentication method designed to detect forging sender addresses during the delivery of the email.
Setting up SPF is highly recommended to reduce the chance your emails ending up in the recipient's Spam folder.
Add the following TXT DNS record to your domain
Domain: {{ custom_domain.domain }} or @
Value: {{ spf_record }}
{% if custom_domain.spf_verified %} {% else %} {% endif %}
{% if not spf_ok %}
Your DNS is not correctly set. The TXT record we obtain is:
{% if not spf_errors %} (Empty) {% endif %} {% for r in spf_errors %} {{ r }}
{% endfor %}
{% if custom_domain.spf_verified %} Without SPF setup, emails you sent from your alias might end up in Spam/Junk folder. {% endif %}
{% endif %}

3. DKIM (Optional) {% if custom_domain.dkim_verified %} {% else %} 🚫 {% endif %}
DKIM (Wikipedia↗) is an email authentication method designed to avoid email spoofing.
Setting up DKIM is highly recommended to reduce the chance your emails ending up in the recipient's Spam folder.
Add the following TXT DNS record to your domain
Domain: dkim._domainkey.{{ custom_domain.domain }}
Value: {{ dkim_record }}
{% if custom_domain.dkim_verified %} {% else %} {% endif %}
{% if not dkim_ok %}
Your DNS is not correctly set. {% if dkim_errors %} The TXT record we obtain for dkim._domainkey.{{ custom_domain.domain }} is:
{% for r in dkim_errors %} {{ r }}
{% endfor %}
{% endif %} {% if custom_domain.dkim_verified %} Without DKIM setup, emails you sent from your alias might end up in Spam/Junk folder. {% endif %}
{% endif %}
{% endblock %}