Skip to content

Commit

Permalink
fix (ses): set mail from txt record (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
parisk authored Oct 24, 2024
2 parents bff883c + 472e488 commit 11f2625
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion aws/ses/route53.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,16 @@ resource "aws_route53_record" "domain_amazonses_feedback_mx_record" {
zone_id = var.route53_zone
name = var.mail_from_domain
type = "MX"
records = ["10 feedback-smtp.${var.region}.amazonaws.com", ]
records = ["10 feedback-smtp.${var.region}.amazonaws.com"]
ttl = 60
}

resource "aws_route53_record" "domain_amazonses_feedback_txt_record" {
count = (var.route53_zone != null && var.mail_from_domain != null) ? 1 : 0

zone_id = var.route53_zone
name = var.mail_from_domain
type = "TXT"
records = ["v=spf1 include:amazonses.com ~all"]
ttl = 60
}

0 comments on commit 11f2625

Please sign in to comment.