From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id ME2bCq+DiGNXTwAAbAwnHQ (envelope-from ) for ; Thu, 01 Dec 2022 11:36:31 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id CFV/Cq+DiGMG5wAA9RJhRA (envelope-from ) for ; Thu, 01 Dec 2022 11:36:31 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id C1058FAF6 for ; Thu, 1 Dec 2022 11:36:30 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p0gvE-0006Xq-Kv; Thu, 01 Dec 2022 05:36:04 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p0gvC-0006Sm-F8 for guix-patches@gnu.org; Thu, 01 Dec 2022 05:36:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p0gvC-0004gh-6S for guix-patches@gnu.org; Thu, 01 Dec 2022 05:36:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p0gvC-0007Z7-2m for guix-patches@gnu.org; Thu, 01 Dec 2022 05:36:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#59701] [PATCH] gnu: mailutils: Inform correct path of sendmail. Resent-From: EuAndreh Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 01 Dec 2022 10:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59701 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 59701@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.166989094529059 (code B ref -1); Thu, 01 Dec 2022 10:36:02 +0000 Received: (at submit) by debbugs.gnu.org; 1 Dec 2022 10:35:45 +0000 Received: from localhost ([127.0.0.1]:38875 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p0guu-0007Yd-TC for submit@debbugs.gnu.org; Thu, 01 Dec 2022 05:35:45 -0500 Received: from lists.gnu.org ([209.51.188.17]:46876) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p0gus-0007YW-AC for submit@debbugs.gnu.org; Thu, 01 Dec 2022 05:35:43 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p0guc-00065P-9G for guix-patches@gnu.org; Thu, 01 Dec 2022 05:35:31 -0500 Received: from euandre.org ([216.238.68.100]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p0gua-0004Wu-H5 for guix-patches@gnu.org; Thu, 01 Dec 2022 05:35:26 -0500 Received: from euandre.org (localhost [127.0.0.1]) by euandre.org (Postfix) with ESMTP id 884663AA6FE for ; Thu, 1 Dec 2022 07:35:17 -0300 (-03) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=euandre.org; h= message-id:date:mime-version:to:references:from:subject :in-reply-to:content-type:content-transfer-encoding; s= dkimproxy; bh=KVxlVrzgda93mLiWYz0WxugUNoU=; b=Q8cbITaWwLOPydzwTL XFwEshqUBMNRGJFUNwMbT22J4V6R2+kPO5STZ1jIsFVwTx0GunnT6Q2GOyFzMr74 ao2PpUffCWmN8ufSSogDl1TL6QMycGOZzBdoNm/ModRI2MUeSON1kUXBq5mFl+6A AakWD7WOWu67f847gaY5kc55UFXxUDH8JfFUWqjW3Vl7NtMqqnUnqQ5Jujbvpgjk cf/E9MLfYwkEhoCUJe9Zrjdtaa5M9Ra3TAqD/3fC7oORh93D0urVurnHHPpHTPie sCOXtsN451XGWF6nqcHJrnwmoQfFxHhMAFbL4oXqrcpnQciZ8R8TQriXNzroztbF 8iCw== Message-ID: Date: Thu, 1 Dec 2022 10:30:46 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Content-Language: en-US, pt, fr, eo, en References: <20221129215541.26224-1-eu@euandre.org> <87o7spe7do.fsf@nckx> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=216.238.68.100; envelope-from=eu@euandre.org; helo=euandre.org X-Spam_score_int: -23 X-Spam_score: -2.4 X-Spam_bar: -- X-Spam_report: (-2.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-0.257, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: EuAndreh X-ACL-Warn: , EuAndreh via Guix-patches From: EuAndreh via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1669890990; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=BPusF1UIMtcHTO0a0S1xIbDBPl3nv4ZLtANj2O8QRb8=; b=buBxheyFGGWEi1bs35cW9AE+qj9I4e+aJpfBEGfWgYhXnKztJGUg9AhSOa6l5eKSQyidqt SSWC7aAMWRjjoya6ikuTma4yDNDqWulreAntuN+7lrTGmO/YiAjkLj9hLu+X7rkk7sKtKw 117i4g3HI9bXiY+Pewg6sQ/bP9rYHLXjsSNmFlvZHMzdaklgtTvwhHqn0udwRLsIpaAhWQ 8tCl4fi91BPLHZAHKkue7810ZcOS+5tGsDsRJUNAFfhDeNtIcOnT+pamgOqn5uxHMOVymK kqFagdx562PTb3n4p+s3EjLklyoy9SxJzoHqowAvaigY2UCegyunv+v9zNH9Cw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1669890990; a=rsa-sha256; cv=none; b=WFYcaE+ES+styVUt2VlUocAJKQdOAFn7LSqNtZtT8CCNVMWhR9Sa55sp2ngAqJE9eJM8cv /cOw8+psFmMYgzzwpregsrZXMKJ4h6LRQpVIa8+ZPGQ/N/Rme47rsySWWCNBx8iZdx8C2B paW+rozXjUaxiwuZOHLgEacO65Ym8p3lrTRj1UOqN8gThZLPobnl3hV2qBnFVLjNY4pUf+ GfV9KcohgvJ/Pi8WGnwn6BKdld5qyDAjfpxbDZK26FL3B/+sgAbxntSTvUIQKl58jLLaJI udRsHIbstueA4szueBKimHXltE1nJUfa7fAeUePrOUEJb9pPqqTzXk5N7wTW5A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=euandre.org header.s=dkimproxy header.b=Q8cbITaW; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.66 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=euandre.org header.s=dkimproxy header.b=Q8cbITaW; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: C1058FAF6 X-Spam-Score: -3.66 X-Migadu-Scanner: scn1.migadu.com X-TUID: iQmpIQ7g18Tl > Can we change that value to $PATH? I checked and I don't have sendmail > in /run/setuid-programs, and I know I'd use my msmtp setup for sendmail > *for myself* but not for the system if it were available. With mailutils, I'm afraid this can't be done. What our Nix friends do is have a module (which is equivalent to a Guix service) that accepts a "setSendmail" option [0] which, when true, adds the a setuid msmtp binary wrapper [1]. That mixes up user-level and system-level configuration, and the only way around is add a user-level alias wrapper for mailutils wrapper that specifies where to find sendmail at runtime: alias mail="mail -E'set sendmail=\"$HOME/.guix-home/profile/bin/msmtp\"'" Doing this to the mailutils package definition would require juggling some options around and knowing very well how mailutils handles options, so that the dynamic lookup of the sendmail binary doesn't break anything else. [0]: https://github.com/NixOS/nixpkgs/blob/353a64f7bac4230a46dfa47a6212902c622b98a2/nixos/modules/programs/msmtp.nix#L15 [1]: https://github.com/NixOS/nixpkgs/blob/353a64f7bac4230a46dfa47a6212902c622b98a2/nixos/modules/programs/msmtp.nix#L76