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" +}