diff --git a/tofu/modules/services/backend-infra/main.tf b/tofu/modules/services/backend-infra/main.tf index 25edf35c5..e32c1d825 100644 --- a/tofu/modules/services/backend-infra/main.tf +++ b/tofu/modules/services/backend-infra/main.tf @@ -239,6 +239,24 @@ resource "aws_vpc_security_group_egress_rule" "allow_tls_to_all" { 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" +} + +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" +} + resource "aws_vpc_security_group_egress_rule" "allow_smtp_to_all" { security_group_id = aws_security_group.backend.id description = "smtp to internet"