diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-04-01 16:13:51 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-04-01 16:13:51 +0200 |
commit | 9c72df2287ae8ddd4c3f93675f608e414ab5e8e7 (patch) | |
tree | 8849d4176a26f3c613e9422e68298e0fe5e22cba /hosts/by-name/server3/configuration.nix | |
parent | zones/vhack.eu: Correct specify the SRV targets as fully-qualified (diff) | |
download | nixos-server-9c72df2287ae8ddd4c3f93675f608e414ab5e8e7.zip |
{hosts/server3,zones/vhack.eu}: Activate stalwart-mail on server3 for soispha
Diffstat (limited to 'hosts/by-name/server3/configuration.nix')
-rw-r--r-- | hosts/by-name/server3/configuration.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/hosts/by-name/server3/configuration.nix b/hosts/by-name/server3/configuration.nix index a89e047..7f5bce5 100644 --- a/hosts/by-name/server3/configuration.nix +++ b/hosts/by-name/server3/configuration.nix @@ -67,6 +67,37 @@ "/var/log" ]; }; + stalwart-mail = { + enable = true; + fqdn = "mail.vhack.eu"; + admin = "admin@vhack.eu"; + security = { + dkimKeys = let + loadKey = name: { + dkimPublicKey = builtins.readFile (./secrets/dkim + "/${name}-public"); + dkimPrivateKeyPath = ./secrets/dkim + "/${name}-private.age"; + keyAlgorithm = "ed25519-sha256"; + }; + in { + "mail.vhack.eu" = loadKey "mail.vhack.eu"; + }; + verificationMode = "strict"; + }; + openFirewall = true; + principals = [ + { + class = "individual"; + name = "soispha"; + secret = "$2b$05$XX36sJuHNbTFvi8DFldscOeQBHahluSkiUqD9QGzQaET7NJusSuQW"; + email = [ + "soispha@vhack.eu" + "abuse@vhack.eu" + "postmaster@vhack.eu" + "admin@vhack.eu" + ]; + } + ]; + }; postgresql.enable = true; rust-motd.enable = true; users.enable = true; |