Skip to content

Commit

Permalink
Setup SPF and DKIM Record
Browse files Browse the repository at this point in the history
  • Loading branch information
Taucher2003 committed Jul 14, 2024
1 parent a93bbd5 commit 97c98c3
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions system/domain/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

0 comments on commit 97c98c3

Please sign in to comment.