Add role mailserver_dmarc

This commit is contained in:
Tunui Franken 2024-09-28 12:40:58 +02:00
parent 67e70e7017
commit 86983b241d
2 changed files with 11 additions and 0 deletions

View file

@ -24,3 +24,5 @@
tags: dkim
- role: mailserver_spf
tags: spf
- role: mailserver_dmarc
tags: dmarc

View 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 }}"