mirror of
https://gitlab.com/simple-nixos-mailserver/nixos-mailserver.git
synced 2024-12-29 12:30:34 +05:00
add firewall
This commit is contained in:
parent
9e56908439
commit
54e56926d6
@ -65,6 +65,12 @@ in
|
|||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# firewall
|
||||||
|
networking.firewall = {
|
||||||
|
enable = true;
|
||||||
|
allowedTCPPorts = [ 25 143 587 ]; # < TODO: make this flexible
|
||||||
|
};
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
./mail-server/dovecot.nix # dovecot
|
./mail-server/dovecot.nix # dovecot
|
||||||
./mail-server/postfix.nix # postfix
|
./mail-server/postfix.nix # postfix
|
||||||
|
Loading…
Reference in New Issue
Block a user