From 1eaa33e664aae41422c129c331750500e7bf9889 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Thu, 22 Sep 2022 21:29:21 +0100 Subject: [PATCH] Add DMARC to mailgun --- terraform/jakehoward.tech.tf | 8 ++++++++ terraform/theorangeone.net.tf | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/terraform/jakehoward.tech.tf b/terraform/jakehoward.tech.tf index 4d9a3c2..aef48f6 100644 --- a/terraform/jakehoward.tech.tf +++ b/terraform/jakehoward.tech.tf @@ -179,3 +179,11 @@ resource "cloudflare_record" "jakehowardtech_mailgun_dkim" { type = "TXT" ttl = 1 } + +resource "cloudflare_record" "jakehowardtech_mailgun_dmarc" { + zone_id = cloudflare_zone.jakehowardtech.id + name = "_dmarc.mg" + value = "v=DMARC1; pct=100; p=quarantine; rua=mailto:dmarc-report@jakehoward.tech;" + type = "TXT" + ttl = 1 +} diff --git a/terraform/theorangeone.net.tf b/terraform/theorangeone.net.tf index 747eb17..2018307 100644 --- a/terraform/theorangeone.net.tf +++ b/terraform/theorangeone.net.tf @@ -244,3 +244,11 @@ resource "cloudflare_record" "theorangeonenet_mailgun_dkim" { type = "TXT" ttl = 1 } + +resource "cloudflare_record" "theorangeonenet_mailgun_dmarc" { + zone_id = cloudflare_zone.theorangeonenet.id + name = "_dmarc.mg" + value = "v=DMARC1; pct=100; p=quarantine; rua=mailto:dmarc-report@jakehoward.tech;" + type = "TXT" + ttl = 1 +}