From a681d29457af7cf4c9e4491aee3c33ff2639cee6 Mon Sep 17 00:00:00 2001 From: shockrah Date: Fri, 20 Oct 2023 18:08:55 -0700 Subject: [PATCH] Fixing reverse dns infra now setup and working to receive emails --- infra/email-server/host.tf | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/infra/email-server/host.tf b/infra/email-server/host.tf index cff7a42..6e8e3fe 100644 --- a/infra/email-server/host.tf +++ b/infra/email-server/host.tf @@ -5,7 +5,8 @@ resource vultr_instance mail { plan = var.mail.plan region = var.mail.region os_id = var.mail.os - # + enable_ipv6 = true + # Enable backups of the server in case we lose something for some reason backups = "enabled" backups_schedule { @@ -21,4 +22,15 @@ resource vultr_instance mail { ] } +resource vultr_reverse_ipv4 mail { + instance_id = vultr_instance.mail.id + ip = vultr_instance.mail.main_ip + reverse = "box.mail.shockrah.xyz" +} + +resource vultr_reverse_ipv6 mail { + instance_id = vultr_instance.mail.id + ip = vultr_instance.mail.v6_main_ip + reverse = "box.mail.shockrah.xyz" +}