From c328cca4dd9711761fd39273cdc8ec70bdbe8a8c Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Fri, 20 Mar 2020 21:12:24 +0000 Subject: [PATCH] Add mail records for theorangeone.net Including DKIM, which apparently I never setup --- terraform/theorangeone.net.tf | 50 +++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/terraform/theorangeone.net.tf b/terraform/theorangeone.net.tf index 209d912..e58b685 100644 --- a/terraform/theorangeone.net.tf +++ b/terraform/theorangeone.net.tf @@ -33,3 +33,53 @@ resource "cloudflare_record" "theorangeonenet_whoami" { type = "A" ttl = 1 } + +resource "cloudflare_record" "theorangeonenet_mx1" { + zone_id = cloudflare_zone.theorangeonenet.id + name = "@" + value = "in1-smtp.messagingengine.com" + type = "MX" + priority = 10 + ttl = 1 +} + +resource "cloudflare_record" "theorangeonenet_mx2" { + zone_id = cloudflare_zone.theorangeonenet.id + name = "@" + value = "in2-smtp.messagingengine.com" + type = "MX" + priority = 20 + ttl = 1 +} + +resource "cloudflare_record" "theorangeonenet_txt" { + zone_id = cloudflare_zone.theorangeonenet.id + name = "@" + value = "v=spf1 include:spf.messagingengine.com ?all" + type = "TXT" + ttl = 1 +} + +resource "cloudflare_record" "theorangeonenet_dkim_fm1" { + zone_id = cloudflare_zone.theorangeonenet.id + name = "fm1._domainkey" + value = "fm1.theorangeone.net.dkim.fmhosted.com" + type = "CNAME" + ttl = 1 +} + +resource "cloudflare_record" "theorangeonenet_dkim_fm2" { + zone_id = cloudflare_zone.theorangeonenet.id + name = "fm2._domainkey" + value = "fm2.theorangeone.net.dkim.fmhosted.com" + type = "CNAME" + ttl = 1 +} + +resource "cloudflare_record" "theorangeonenet_dkim_fm3" { + zone_id = cloudflare_zone.theorangeonenet.id + name = "fm3._domainkey" + value = "fm3.theorangeone.net.dkim.fmhosted.com" + type = "CNAME" + ttl = 1 +}