From 94eeed0459123bbb8d437ed55fc4a342a7bbfe9a Mon Sep 17 00:00:00 2001 From: Niels Kunis Date: Sun, 16 Jul 2023 20:58:25 +0200 Subject: [PATCH] dns wijzigingen voor smtp2go --- terraform/dns/geokunis2_nl.tf | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/terraform/dns/geokunis2_nl.tf b/terraform/dns/geokunis2_nl.tf index 24ba2e8..8d2d760 100644 --- a/terraform/dns/geokunis2_nl.tf +++ b/terraform/dns/geokunis2_nl.tf @@ -29,11 +29,28 @@ resource "powerdns_record" "mail_geokunis2_nl_a" { ttl = 60 } -resource "powerdns_record" "spf_geokunis2_nl_txt" { + +resource "powerdns_record" "em670271_geokunis2_nl_cname" { zone = powerdns_zone.geokunis2_nl.name - name = "geokunis2.nl." - type = "TXT" - records = ["\"v=spf1 a:smtp.tweak.nl ip4:84.245.14.149 ip4:82.197.196.177 ~all\""] + name = "em670271.geokunis2.nl." + type = "CNAME" + records = ["return.smtp2go.net."] + ttl = 60 +} + +resource "powerdns_record" "s670271_geokunis2_nl_cname" { + zone = powerdns_zone.geokunis2_nl.name + name = "s670271._domainkey.geokunis2.nl." + type = "CNAME" + records = ["dkim.smtp2go.net."] + ttl = 60 +} + +resource "powerdns_record" "link_geokunis2_nl_cname" { + zone = powerdns_zone.geokunis2_nl.name + name = "link.geokunis2.nl." + type = "CNAME" + records = ["track.smtp2go.net."] ttl = 60 }