about summary refs log tree commit diff
path: root/nixos/tests/maddy.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/tests/maddy.nix')
-rw-r--r--nixos/tests/maddy.nix8
1 files changed, 5 insertions, 3 deletions
diff --git a/nixos/tests/maddy.nix b/nixos/tests/maddy.nix
index 800d254f17704..7420430333372 100644
--- a/nixos/tests/maddy.nix
+++ b/nixos/tests/maddy.nix
@@ -10,6 +10,11 @@ import ./make-test-python.nix ({ pkgs, ... }: {
         primaryDomain = "server";
         openFirewall = true;
         ensureAccounts = [ "postmaster@server" ];
+        ensureCredentials = {
+          # Do not use this in production. This will make passwords world-readable
+          # in the Nix store
+          "postmaster@server".passwordFile = "${pkgs.writeText "postmaster" "test"}";
+        };
       };
     };
 
@@ -49,9 +54,6 @@ import ./make-test-python.nix ({ pkgs, ... }: {
     server.wait_for_unit("maddy.service")
     server.wait_for_open_port(143)
     server.wait_for_open_port(587)
-
-    server.succeed("maddyctl creds create --password test postmaster@server")
-
     client.succeed("send-testmail")
     client.succeed("test-imap")
   '';