Skip to content

Commit bff883c

Browse files
authored
fix (ses): create feedback mx record (#15)
2 parents 47a1d59 + 805818d commit bff883c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

aws/ses/route53.tf

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,13 @@ resource "aws_route53_record" "domain_amazonses_dkim_record" {
1515
ttl = "3600"
1616
records = ["${element(aws_ses_domain_dkim.dkim.dkim_tokens, count.index)}.dkim.amazonses.com"]
1717
}
18+
19+
resource "aws_route53_record" "domain_amazonses_feedback_mx_record" {
20+
count = (var.route53_zone != null && var.mail_from_domain != null) ? 1 : 0
21+
22+
zone_id = var.route53_zone
23+
name = var.mail_from_domain
24+
type = "MX"
25+
records = ["10 feedback-smtp.${var.region}.amazonaws.com", ]
26+
ttl = 60
27+
}

0 commit comments

Comments
 (0)