Add role mailserver_dmarc
This commit is contained in:
parent
67e70e7017
commit
86983b241d
2 changed files with 11 additions and 0 deletions
|
@ -24,3 +24,5 @@
|
||||||
tags: dkim
|
tags: dkim
|
||||||
- role: mailserver_spf
|
- role: mailserver_spf
|
||||||
tags: spf
|
tags: spf
|
||||||
|
- role: mailserver_dmarc
|
||||||
|
tags: dmarc
|
||||||
|
|
9
roles/mailserver_dmarc/tasks/main.yml
Normal file
9
roles/mailserver_dmarc/tasks/main.yml
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
---
|
||||||
|
|
||||||
|
- name: Set DMARC TXT record
|
||||||
|
ansible.builtin.set_fact:
|
||||||
|
dmarc_txt_record: "_dmarc.{{ virtual_domain }}. IN TXT \"v=DMARC1; p=reject; pct=100; adkim=s; rua=mailto:postmaster@{{ virtual_domain }}\""
|
||||||
|
|
||||||
|
- name: Print DMARC TXT record for the DNS zone
|
||||||
|
ansible.builtin.debug:
|
||||||
|
msg: "Don't forget to add this to your DNS zone:\n{{ dmarc_txt_record }}"
|
Loading…
Reference in a new issue