From fd6674fd5d60f0c4919906e194d502c5a0d9829b Mon Sep 17 00:00:00 2001 From: sinavir Date: Sat, 20 Apr 2024 20:40:26 +0200 Subject: [PATCH] feat: Enable sendmail setuid wrapper --- modules/dgn-notify/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/dgn-notify/default.nix b/modules/dgn-notify/default.nix index 54a4949..4a9daa5 100644 --- a/modules/dgn-notify/default.nix +++ b/modules/dgn-notify/default.nix @@ -12,9 +12,12 @@ }; }; config = lib.mkIf config.dgn-notify.enable { + services.mail.sendmailSetuidWrapper.group = lib.mkForce "mail"; + users.groups.mail = { }; + programs.msmtp = { enable = true; - setSendmail = false; + setSendmail = true; accounts.default = { tls = true; tls_starttls = false;