From 97c98c3f43592f630e7da78483af2851df0fc0f6 Mon Sep 17 00:00:00 2001 From: Niklas van Schrick Date: Sun, 14 Jul 2024 18:52:26 +0200 Subject: [PATCH] Setup SPF and DKIM Record --- system/domain/main.tf | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/system/domain/main.tf b/system/domain/main.tf index 5e3a101..88c77bb 100644 --- a/system/domain/main.tf +++ b/system/domain/main.tf @@ -49,3 +49,19 @@ resource "cloudflare_record" "github_verification" { value = "e3447326f4" comment = "Managed by Terraform" } + +resource "cloudflare_record" "strato_spf" { + name = "@" + type = "TXT" + zone_id = data.cloudflare_zone.main_domain.id + value = "v=spf1 redirect=smtp.strato.de" + comment = "Managed by Terraform" +} + +resource "cloudflare_record" "strato_dkim" { + name = "strato-dkim-0002._domainkey" + type = "CNAME" + zone_id = data.cloudflare_zone.main_domain.id + value = "strato-dkim-0002._domainkey.strato.de" + comment = "Managed by Terraform" +}