From a88c13b4f662f867f0475151531a6ba89737847f Mon Sep 17 00:00:00 2001 From: jaina heartles Date: Sun, 9 Mar 2025 22:58:15 -0400 Subject: [PATCH 1/2] add telnet to packages --- configuration.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/configuration.nix b/configuration.nix index e35471a..6496f03 100644 --- a/configuration.nix +++ b/configuration.nix @@ -43,6 +43,7 @@ less killall screen + inetutils ]; users.users.jaina = { From 264d64526c949b40a18d671d73b0858c4470d207 Mon Sep 17 00:00:00 2001 From: jaina heartles Date: Sun, 9 Mar 2025 22:58:22 -0400 Subject: [PATCH 2/2] allow sending email through postfix --- postfix.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/postfix.nix b/postfix.nix index e7a1f5c..787aba5 100644 --- a/postfix.nix +++ b/postfix.nix @@ -3,8 +3,11 @@ { networking.firewall.extraCommands = let user = config.services.postfix.user; in '' - iptables -I OUTPUT -m owner ! --uid-owner ${user} -m tcp -p tcp --dport 25 -j REJECT --reject-with icmp-admin-prohibited - ip6tables -I OUTPUT -m owner ! --uid-owner ${user} -m tcp -p tcp --dport 25 -j REJECT --reject-with icmp6-adm-prohibited + iptables -A OUTPUT -m owner ! --uid-owner ${user} -m tcp -p tcp --dport 25 -j REJECT --reject-with icmp-admin-prohibited + ip6tables -A OUTPUT -m owner ! --uid-owner ${user} -m tcp -p tcp --dport 25 -j REJECT --reject-with icmp6-adm-prohibited + + iptables -I OUTPUT -m tcp -p tcp --dport 25 -d 127.0.0.1 -j ACCEPT + ip6tables -I OUTPUT -m tcp -p tcp --dport 25 -d 127.0.0.1 -j ACCEPT ''; services.postfix = {