From a5cc429946b30134d1689c086f8c16b1d81d9d41 Mon Sep 17 00:00:00 2001 From: Astro Date: Sat, 2 Oct 2021 00:48:32 +0200 Subject: [PATCH] upstream4: add forwardPorts for mail --- nix/lib/config/legacy.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/nix/lib/config/legacy.nix b/nix/lib/config/legacy.nix index 001732d..0ad0aab 100644 --- a/nix/lib/config/legacy.nix +++ b/nix/lib/config/legacy.nix @@ -265,7 +265,11 @@ in proto = "tcp"; sourcePort = 2225; } - ]; + ] ++ map (port: { + destination = config.site.net.serv.hosts4.mail; + proto = "tcp"; + sourcePort = port; + }) [ 25 465 587 110 143 993 995 ]; } # host priv*-gw settings