Compare commits

..

No commits in common. "264d64526c949b40a18d671d73b0858c4470d207" and "11afd23d99fa6ac930b65f472455b83baca91045" have entirely different histories.

2 changed files with 2 additions and 6 deletions

View file

@ -43,7 +43,6 @@
less less
killall killall
screen screen
inetutils
]; ];
users.users.jaina = { users.users.jaina = {

View file

@ -3,11 +3,8 @@
{ {
networking.firewall.extraCommands = let user = config.services.postfix.user; networking.firewall.extraCommands = let user = config.services.postfix.user;
in '' in ''
iptables -A OUTPUT -m owner ! --uid-owner ${user} -m tcp -p tcp --dport 25 -j REJECT --reject-with icmp-admin-prohibited iptables -I 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 ip6tables -I 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 = { services.postfix = {