aboutsummaryrefslogtreecommitdiffstats
path: root/tests/by-name/em/email-http/nodes/mail_server.nix
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-10-02 00:27:50 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-10-02 00:27:50 +0200
commit82d1dc4549f3ba079505b6ebaa266e6d04d1cce4 (patch)
tree2377a080b1946b921f85fbc42c2a9385446760d7 /tests/by-name/em/email-http/nodes/mail_server.nix
parentpkgs/fetchmail-common-name: Update patch, so that it applies again (diff)
downloadnixos-server-82d1dc4549f3ba079505b6ebaa266e6d04d1cce4.zip
tests/email/*: Rename to stalwart email tests
These tests explicitly test our stalwart email module.
Diffstat (limited to 'tests/by-name/em/email-http/nodes/mail_server.nix')
-rw-r--r--tests/by-name/em/email-http/nodes/mail_server.nix57
1 files changed, 0 insertions, 57 deletions
diff --git a/tests/by-name/em/email-http/nodes/mail_server.nix b/tests/by-name/em/email-http/nodes/mail_server.nix
deleted file mode 100644
index e94c4e9..0000000
--- a/tests/by-name/em/email-http/nodes/mail_server.nix
+++ /dev/null
@@ -1,57 +0,0 @@
-{
- extraModules,
- pkgs,
- vhackPackages,
-}: {
- mkMailServer = serverName: principal: {
- config,
- lib,
- nodes,
- ...
- }: {
- imports =
- extraModules
- ++ [
- ../../../../../modules
- ../../../../common/acme/client.nix
- ];
-
- environment.systemPackages = [
- pkgs.bind
- pkgs.openssl
- ];
-
- networking.nameservers = lib.mkForce [
- nodes.name_server.networking.primaryIPAddress
- nodes.name_server.networking.primaryIPv6Address
- ];
-
- age.identityPaths = ["${../../../../common/email/hostKey}"];
-
- vhack = {
- stalwart-mail = {
- enable = true;
- fqdn = "${serverName}.server.com";
- admin = "admin@${serverName}.server.com";
- security = {
- dkimKeys = let
- loadKey = name: {
- dkimPublicKey = builtins.readFile (../../../../common/email/dkim + "/${name}/public");
- dkimPrivateKeyPath = ../../../../common/email/dkim + "/${name}/private.age";
- keyAlgorithm = "ed25519-sha256";
- };
- in {
- "mail.server.com" = loadKey "mail1.server.com";
- "bob.com" = loadKey "bob.com";
- };
- verificationMode = "strict";
- };
- openFirewall = true;
- principals =
- if principal == null
- then null
- else [principal];
- };
- };
- };
-}