Skip to content

Commit

Permalink
Add A record for emails (#63)
Browse files Browse the repository at this point in the history
* Add A record for emails.

* Fix DNS syntax/record type

---------

Co-authored-by: AJ Jordan <[email protected]>
  • Loading branch information
CloudArtAdmins and strugee authored Apr 10, 2024
1 parent 67871bb commit 49dbb15
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions env/dns.tf
Original file line number Diff line number Diff line change
Expand Up @@ -149,3 +149,13 @@ resource "aws_route53_record" "mailu-test-dmarc" {
"v=DMARC1; p=reject; rua=mailto:dmarc@mail-test.${var.zone_name}; ruf=mailto:dmarc@mail-test.${var.zone_name}; adkim=s; aspf=s"
]
}

resource "aws_route53_record" "mailu-server" {
zone_id = aws_route53_zone.apex.id
name = "mail.${var.zone_name}"
type = "CNAME"
ttl = "300"
records = [
"mailu.host.${var.zone_name}"
]
}

0 comments on commit 49dbb15

Please sign in to comment.