output "instance_id" { value = try(oci_core_instance.email[0].id, null) } output "private_ip" { value = try(oci_core_instance.email[0].private_ip, null) } output "public_ip" { value = try(oci_core_instance.email[0].public_ip, null) } output "domain" { value = var.domain } output "ssh_command" { value = try("ssh opc@${oci_core_instance.email[0].public_ip}", null) } output "mail_prerequisites" { value = [ "Use a reserved public IP before production mail.", "Request OCI reverse DNS/PTR for the public IP.", "Request OCI SMTP port 25 access; it is restricted by default for newer tenancies.", "Create SPF, DKIM, DMARC, MX, and A/AAAA records for the chosen domain.", "Open mail ports only in an explicit NSG/security-list change after DNS and hardening are ready.", ] }