From f3e094520e50eba575b63d71cad375541a4afcac Mon Sep 17 00:00:00 2001 From: h7x4 Date: Sun, 1 Sep 2024 02:54:39 +0200 Subject: [PATCH] common/postfix: init --- base/default.nix | 1 + base/services/postfix.nix | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 base/services/postfix.nix diff --git a/base/default.nix b/base/default.nix index 9ae8096f..10126636 100644 --- a/base/default.nix +++ b/base/default.nix @@ -14,6 +14,7 @@ ./services/logrotate.nix ./services/nginx.nix ./services/openssh.nix + ./services/postfix.nix ./services/smartd.nix ./services/thermald.nix ]; diff --git a/base/services/postfix.nix b/base/services/postfix.nix new file mode 100644 index 00000000..f05fdc01 --- /dev/null +++ b/base/services/postfix.nix @@ -0,0 +1,23 @@ +{ config, pkgs, lib, ... }: +let + cfg = config.services.postfix; +in +{ + services.postfix = { + enable = true; + + hostname = "${config.networking.hostName}.pvv.ntnu.no"; + domain = "pvv.ntnu.no"; + + relayHost = "smtp.pvv.ntnu.no"; + relayPort = 465; + + config = { + smtp_tls_wrappermode = "yes"; + smtp_tls_security_level = "encrypt"; + }; + + # Nothing should be delivered to this machine + destination = [ ]; + }; +} \ No newline at end of file