-
-
Notifications
You must be signed in to change notification settings - Fork 790
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Display domain SPF and DMARC example entries, fixes #15
- Loading branch information
Showing
4 changed files
with
53 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{% extends "base.html" %} | ||
|
||
{% block title %} | ||
Domain details | ||
{% endblock %} | ||
|
||
{% block subtitle %} | ||
{{ domain.name }} | ||
{% endblock %} | ||
|
||
{% block main_action %} | ||
{% if current_user.global_admin %} | ||
<a class="btn btn-primary" href="#">Regenerate keys</a> | ||
{% endif %} | ||
{% endblock %} | ||
|
||
{% block box %} | ||
<table class="table table-bordered"> | ||
<tbody> | ||
<tr> | ||
<th>Domain name</th> | ||
<td>{{ domain.name }}</td> | ||
</tr> | ||
<tr> | ||
<th>DNS MX entry</th> | ||
<td><pre>{{ domain.name }}. 600 IN MX 10 {{ config["HOSTNAME"] }}.</pre></td> | ||
</tr> | ||
<tr> | ||
<th>DNS SPF entry</th> | ||
<td><pre>{{ domain.name }}. 600 IN TXT "v=spf1 mx a:{{ config["HOSTNAME"] }} -all"</pre></td> | ||
</tr> | ||
<tr> | ||
<th>DNS DMARC entry</th> | ||
<td><pre>_dmarc.{{ domain.name }}. 600 IN TXT "v=DMARC1; p=reject; rua=mailto:{{ config["POSTMASTER"] }}@{{ config["DOMAIN"] }}; adkim=s; aspf=s"</pre></td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters