From 6268c0f45157717ac783ed222668152fb69518d3 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Thu, 22 Sep 2022 21:22:05 +0100 Subject: [PATCH] Add DNS records for mailgun --- terraform/jakehoward.tech.tf | 16 ++++++++++++++++ terraform/theorangeone.net.tf | 16 ++++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/terraform/jakehoward.tech.tf b/terraform/jakehoward.tech.tf index 9bb1a88..cb29da7 100644 --- a/terraform/jakehoward.tech.tf +++ b/terraform/jakehoward.tech.tf @@ -163,3 +163,19 @@ resource "cloudflare_record" "jakehowardtech_auth" { type = "A" ttl = 1 } + +resource "cloudflare_record" "jakehowardtech_mailgun_spf" { + zone_id = cloudflare_zone.jakehowardtech.id + name = "mg" + value = "v=spf1 include:mailgun.org ~all" + type = "TXT" + ttl = 1 +} + +resource "cloudflare_record" "jakehowardtech_mailgun_dkim" { + zone_id = cloudflare_zone.jakehowardtech.id + name = "s1._domainkey.mg" + value = "k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA4E4cv86U+sFUjgLys26ZLccTghzGfHiFpitWdFg68lGXG63aoG2/+9bgKVT0ZBG7bjPvj6Kyj4N3TIe4oCJo2saVvtsNK1pvZkOadaBPgjzKeRvBaw48ZatUGKoV7q1NCa0kXAfiJleF7bMvbt8rYDmBljr/BG6TtZYPt6XgoZyh8HHXjv/1L6WT3JBVQ8q5UtqVRVujXNHf57FmJTOJpvs0bKn/6TUaXYZmt5z3jpDhc/HfmkzVV22AwRf9jn7kgKkgaKpkvfSL8gtYNn5oyfS0Y9W9x9ntqb4g72RCbynMppQb1uwxbIuWRVOp0un0koQDm3C8ZzhOOYAwe58BYQIDAQAB" + type = "TXT" + ttl = 1 +} diff --git a/terraform/theorangeone.net.tf b/terraform/theorangeone.net.tf index 2f187b8..076744b 100644 --- a/terraform/theorangeone.net.tf +++ b/terraform/theorangeone.net.tf @@ -228,3 +228,19 @@ resource "cloudflare_record" "theorangeonenet_commento" { type = "A" ttl = 1 } + +resource "cloudflare_record" "theorangeonenet_mailgun_spf" { + zone_id = cloudflare_zone.theorangeonenet.id + name = "mg" + value = "v=spf1 include:mailgun.org ~all" + type = "TXT" + ttl = 1 +} + +resource "cloudflare_record" "theorangeonenet_mailgun_dkim" { + zone_id = cloudflare_zone.theorangeonenet.id + name = "mta._domainkey.mg" + value = "k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA1Z/MHEzpbWm5EgMkyWb+Xkz44Xrzr4SA5i2u8M2H5yZ1PSb4DpGk3IAX+I05UWax02+WBW3CBb5wU9rH9flgxezBoCf/hiMS1Wjb9hKGIBa2jMCzpF+wa5fyqLkLoAJZF4bc/BJKyi/ET2c7+DAA/2KlWv/nv4MEjcUR4hNGLPEC9+6PhUp8z2PnUQLzPRWHpKc1oLrnROWaX3XxdDekCzwyOw7ygzZdThVevE+0CqXVOt5SUSUCnd2tjVbvblGi6DBiQY5Tl6+xLqkQHCRqks9187+EN4FdJXkjQodkFzzyiBH5cXVGiZLOhal4koEvxGirr596qM97bIXiJWArdQIDAQAB" + type = "TXT" + ttl = 1 +}