{% extends 'default.html' %} {% block title %} Custom Domains {% endblock %} {% block head %} {% endblock %} {% block default_content %}

Custom Domains

{% for custom_domain in custom_domains %}
{{ custom_domain.domain }} {% if custom_domain.verified %} ✅ {% else %} 🚫{% endif %}
Created {{ custom_domain.created_at | dt }}
{{ custom_domain.nb_alias() }} aliases.
{% if not custom_domain.verified %}
Please follow the following steps to set up your domain:
1
Add the following MX DNS record to your domain {% for priority, email_server in EMAIL_SERVERS_WITH_PRIORITY %}
Domain: {{ custom_domain.domain }}
Priority: 10
Target: {{ email_server }}
{% endfor %} Or if you edit your DNS record in text format, use the following code:
{% for priority, email_server in EMAIL_SERVERS_WITH_PRIORITY %}{{ custom_domain.domain }} IN MX {{ priority }} {{ email_server }}
{% endfor %}
2
[Optional] Setup SPF record. This can avoid emails forwarded to your personal inbox classified as spam.
Please note that some email providers can still classify these forwards as spam, in this case do not hesitate to create rules to avoid these emails mistakenly gone into spam. You can find how to whitelist a domain on Whitelist domain
Please add the following TXT DNS record to your domain:
Domain: {{ custom_domain.domain }}
Value: v=spf1 {% for priority, email_server in EMAIL_SERVERS_WITH_PRIORITY %} include:{{ email_server[:-1] }} {% endfor %} -all
Or if you edit your DNS record in text format, use the following code:
{{ custom_domain.domain }} IN TXT "v=spf1 {% for priority, email_server in EMAIL_SERVERS_WITH_PRIORITY %}include:{{ email_server[:-1] }} {% endfor %}-all"
3
Verify 👇🏽
{% if custom_domain.id in errors %}
{{ errors.get(custom_domain.id) }}
{% endif %} As the change could take up to 24 hours, do not hesitate to come back to this page and verify again.
{% endif %}
{% endfor %}
{{ new_custom_domain_form.csrf_token }} Please use full path domain, for ex my-subdomain.my-domain.com {{ new_custom_domain_form.domain(class="form-control", placeholder="my-domain.com") }} {{ render_field_errors(new_custom_domain_form.domain) }}
{% endblock %} {% block script %} {% endblock %}