summaryrefslogtreecommitdiff
path: root/roles/mail/opendkim/templates
diff options
context:
space:
mode:
Diffstat (limited to 'roles/mail/opendkim/templates')
-rw-r--r--roles/mail/opendkim/templates/KeyTable.j25
-rw-r--r--roles/mail/opendkim/templates/SigningTable.j23
2 files changed, 8 insertions, 0 deletions
diff --git a/roles/mail/opendkim/templates/KeyTable.j2 b/roles/mail/opendkim/templates/KeyTable.j2
new file mode 100644
index 00000000..99061267
--- /dev/null
+++ b/roles/mail/opendkim/templates/KeyTable.j2
@@ -0,0 +1,5 @@
+{% for domain in opendkim_domains %}
+{% for selector in opendkim_domains[domain]['keys'] %}
+{{ selector }}._domainkey.{{ domain }} {{ domain }}:{{ selector }}:/etc/opendkim/keys/{{ domain }}/{{ selector }}.private
+{% endfor %}
+{% endfor %}
diff --git a/roles/mail/opendkim/templates/SigningTable.j2 b/roles/mail/opendkim/templates/SigningTable.j2
new file mode 100644
index 00000000..bfadaac5
--- /dev/null
+++ b/roles/mail/opendkim/templates/SigningTable.j2
@@ -0,0 +1,3 @@
+{% for domain in opendkim_domains %}
+*@{{ domain }} {{ opendkim_domains[domain]['keys'] | first }}._domainkey.{{ domain }}
+{% endfor %}