diff --git a/tofu/modules/services/backend-infra/main.tf b/tofu/modules/services/backend-infra/main.tf index d8aa7d396..5c4597f7b 100644 --- a/tofu/modules/services/backend-infra/main.tf +++ b/tofu/modules/services/backend-infra/main.tf @@ -237,4 +237,13 @@ resource "aws_vpc_security_group_egress_rule" "allow_tls_to_all" { to_port = 443 ip_protocol = "tcp" cidr_ipv4 = "0.0.0.0/0" +} + +resource "aws_vpc_security_group_egress_rule" "allow_smtp_to_all" { + security_group_id = aws_security_group.backend.id + description = "smtp to internet" + from_port = 587 + to_port = 587 + ip_protocol = "tcp" + cidr_ipv4 = "0.0.0.0/0" } \ No newline at end of file