added avlabs records for email
Some checks failed
Terraform Plan / plan (push) Failing after 0s

This commit is contained in:
2025-12-26 11:56:48 +01:00
parent 64bcdc226c
commit b6d07cf91a
2 changed files with 41 additions and 2 deletions

View File

@@ -14,4 +14,5 @@ terraform {
resource "hcloud_zone" "avii" { resource "hcloud_zone" "avii" {
name = "avii.ovh" name = "avii.ovh"
mode = "primary" mode = "primary"
} }

View File

@@ -14,4 +14,42 @@ terraform {
resource "hcloud_zone" "avlabs" { resource "hcloud_zone" "avlabs" {
name = "avlabs.ovh" name = "avlabs.ovh"
mode = "primary" mode = "primary"
} }
resource "hcloud_zone_rrset" "mx" {
zone = hcloud_zone.avlabs.name
name = "@"
type = "MX"
records = [
{ value = "10 mx01.mail.icloud.com.", comment = "Apple Mail" },
{ value = "10 mx02.mail.icloud.com.", comment = "Apple Mail" },
]
change_protection = false
}
resource "hcloud_zone_rrset" "dkim" {
zone = hcloud_zone.avlabs.name
name = "sig1._domainkey"
type = "CNAME"
records = [
{ value = "sig1.dkim.avlabs.ovh.at.icloudmailadmin.com.", comment = "Apple Mail" },
]
change_protection = false
}
resource "hcloud_zone_rrset" "txt" {
zone = hcloud_zone.avlabs.name
name = "@"
type = "TXT"
records = [
{ value = provider::hcloud::txt_record("v=spf1 include:icloud.com ~all"), comment = "Apple Mail" },
{ value = provider::hcloud::txt_record("apple-domain=vQO4aEkojGqDBf5D"), comment = "Apple Mail" },
]
change_protection = false
}