From 936871e6ba92a23b1956b30272af8c96951c7c2d Mon Sep 17 00:00:00 2001 From: Joris Date: Mon, 28 Aug 2023 09:28:49 +0200 Subject: Fix sendmail error Since using a systemd user to run budget, sendmail is failing with: ``` warning: mail_queue_enter: create file maildrop/665739.29050: Permission denied ``` Try specifying the complete path, as mentioned in: https://github.com/NixOS/nixpkgs/issues/90248 --- src/mail.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mail.rs b/src/mail.rs index dec8691..9fe0ed8 100644 --- a/src/mail.rs +++ b/src/mail.rs @@ -38,7 +38,8 @@ pub async fn send( .map(|r| r.address) .collect::>(); - let mut command = Command::new("sendmail"); + // https://github.com/NixOS/nixpkgs/issues/90248 + let mut command = Command::new("/run/wrappers/bin/sendmail"); command.kill_on_drop(true); command.arg("-f").arg(FROM_ADDRESS); command.arg("--").args(recipient_addresses); -- cgit v1.2.3