summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorpacien <pacien.trangirard@pacien.net>2022-04-03 17:41:03 +0200
committerpacien <pacien.trangirard@pacien.net>2022-04-17 00:44:50 +0200
commit788bd96c1c5ff1917c86a687461a5b20bce52bd1 (patch)
tree95bee3e066cea2cc58faac517e510aa70ea1f417 /nixos
parentecdfa07a5a5eb649fa80bb33529d0ddeef1d67b3 (diff)
downloadnixpkgs-788bd96c1c5ff1917c86a687461a5b20bce52bd1.tar
nixpkgs-788bd96c1c5ff1917c86a687461a5b20bce52bd1.tar.gz
nixpkgs-788bd96c1c5ff1917c86a687461a5b20bce52bd1.tar.bz2
nixpkgs-788bd96c1c5ff1917c86a687461a5b20bce52bd1.tar.lz
nixpkgs-788bd96c1c5ff1917c86a687461a5b20bce52bd1.tar.xz
nixpkgs-788bd96c1c5ff1917c86a687461a5b20bce52bd1.tar.zst
nixpkgs-788bd96c1c5ff1917c86a687461a5b20bce52bd1.zip
nixosTests.mailcatcher: replace ssmtp module use with msmtp
The ssmtp program is not maintained and is being removed.

GitHub: see https://github.com/NixOS/nixpkgs/issues/105710
Diffstat (limited to 'nixos')
-rw-r--r--nixos/tests/mailcatcher.nix9
1 files changed, 7 insertions, 2 deletions
diff --git a/nixos/tests/mailcatcher.nix b/nixos/tests/mailcatcher.nix
index d7858ab354b..f23b749a021 100644
--- a/nixos/tests/mailcatcher.nix
+++ b/nixos/tests/mailcatcher.nix
@@ -9,8 +9,13 @@ import ./make-test-python.nix ({ lib, ... }:
     {
       services.mailcatcher.enable = true;
 
-      services.ssmtp.enable = true;
-      services.ssmtp.hostName = "localhost:1025";
+      programs.msmtp = {
+        enable = true;
+        accounts.default = {
+          host = "localhost";
+          port = 1025;
+        };
+      };
 
       environment.systemPackages = [ pkgs.mailutils ];
     };