Skip to content

Commit

Permalink
Configure turkeltaub.dev DNS for email (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
ethnt authored Oct 17, 2024
1 parent 09503a5 commit 5515a56
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions deploy/terraform/dns.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ resource "aws_route53_zone" "turkeltaub_me" {
name = "turkeltaub.me"
}

resource "aws_route53_zone" "turkeltaub_dev" {
name = "turkeltaub.dev"
}

resource "aws_route53_record" "root_e10_video" {
zone_id = aws_route53_zone.e10_video.zone_id
name = "e10.video"
Expand Down Expand Up @@ -145,3 +149,51 @@ resource "aws_route53_record" "spf_turkeltaub_me" {
records = ["v=spf1 include:spf.messagingengine.com ?all"]
ttl = 300
}

resource "aws_route53_record" "root_mx_turkeltaub_dev" {
zone_id = aws_route53_zone.turkeltaub_dev.zone_id
name = "turkeltaub.dev"
type = "MX"
records = ["10 in1-smtp.messagingengine.com", "20 in2-smtp.messagingengine.com"]
ttl = 300
}

resource "aws_route53_record" "wildcard_mx_turkeltaub_dev" {
zone_id = aws_route53_zone.turkeltaub_dev.zone_id
name = "*.turkeltaub.dev"
type = "MX"
records = ["10 in1-smtp.messagingengine.com", "20 in2-smtp.messagingengine.com"]
ttl = 300
}

resource "aws_route53_record" "fm1_domainkey_turkeltaub_dev" {
zone_id = aws_route53_zone.turkeltaub_dev.zone_id
name = "fm1._domainkey.turkeltaub.dev"
type = "CNAME"
records = ["fm1.turkeltaub.dev.dkim.fmhosted.com"]
ttl = 300
}

resource "aws_route53_record" "fm2_domainkey_turkeltaub_dev" {
zone_id = aws_route53_zone.turkeltaub_dev.zone_id
name = "fm2._domainkey.turkeltaub.dev"
type = "CNAME"
records = ["fm2.turkeltaub.dev.dkim.fmhosted.com"]
ttl = 300
}

resource "aws_route53_record" "fm3_domainkey_turkeltaub_dev" {
zone_id = aws_route53_zone.turkeltaub_dev.zone_id
name = "fm3._domainkey.turkeltaub.dev"
type = "CNAME"
records = ["fm3.turkeltaub.dev.dkim.fmhosted.com"]
ttl = 300
}

resource "aws_route53_record" "spf_turkeltaub_dev" {
zone_id = aws_route53_zone.turkeltaub_dev.zone_id
name = "turkeltaub.dev"
type = "TXT"
records = ["v=spf1 include:spf.messagingengine.com ?all"]
ttl = 300
}

0 comments on commit 5515a56

Please sign in to comment.