infra: add entry imap and smtp
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
vincent 2023-09-26 18:23:21 +02:00
parent a99cc3a76b
commit 9f853d91f5

View File

@ -19,6 +19,18 @@ resource "hetznerdns_record" "MX1Eu" {
type = "MX" type = "MX"
} }
resource "hetznerdns_record" "smtpEU" {
zone_id = hetznerdns_zone.externalZoneEU.id
name = "smtp"
value = local.defaultCname
type= "CNAME"
}
resource "hetznerdns_record" "imapEU" {
zone_id = hetznerdns_zone.externalZoneEU.id
name = "imap"
value = local.defaultCname
type= "CNAME"
}
resource "hetznerdns_record" "mailEu" { resource "hetznerdns_record" "mailEu" {
zone_id = hetznerdns_zone.externalZoneEU.id zone_id = hetznerdns_zone.externalZoneEU.id
name = "mail" name = "mail"
@ -27,6 +39,7 @@ resource "hetznerdns_record" "mailEu" {
} }
resource "hetznerdns_record" "rootalias" { resource "hetznerdns_record" "rootalias" {
zone_id = hetznerdns_zone.externalZone.id zone_id = hetznerdns_zone.externalZone.id
name = "@" name = "@"