From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id UATIH/+1tGZGSQAAe85BDQ:P1 (envelope-from ) for ; Thu, 08 Aug 2024 12:11:43 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id UATIH/+1tGZGSQAAe85BDQ (envelope-from ) for ; Thu, 08 Aug 2024 14:11:43 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1723119103; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=UnN59TB399lWvB5Yr1k0qUncXfIb/n0Uy3/mvKJTsx0=; b=UegTzz7HWvzBmfEc/cIXbxfzOC2CQp7fTBXh68wgg8Is8txJbzDFAXhwZQDRWwRy+dFo2Z 7ZyqGz8mhhdPtLRc/cVThUfJ0fjg/WRN81knKIW2IStkW00cWKHo836OsA9qERiCX/gYtm H28klL74WuN2v07rbZkTNFXqw5v/T3Yh9lg7sfH+sWYR8r7AIu/FcPSzXy4QSdgFkF5Jf9 CadNXDGycM1YTxyhL/e1psXsfvWHgtA7zS7NKeU3M5Ixig63M/9KagReGykoniV949GTgZ AQxNxoV/lSyQ8xYF+HClHs2yKE0ZJelWy+5uHHGMjYzSKdVvydH7gbJEYzqSxA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1723119103; a=rsa-sha256; cv=none; b=DJK9nfidfrwo2sTaF8QnJ1pE9hXl7N9b8ZEgQvcvfgyzHOfnv5l/p/bQnUTFbjlhnXv3oK sxmMX7lrpV8qQJIdEVXHhfCK5cmoJelUXsYa8IY3DhRcijxV85RukLkJmZ+z2dXLUPgtkw 8PpQXvWEO/oV7ftO9nM5BDQotube89NKesaAZqUbyLFpdIIbuHu9NyRhQ7gm4DH/agyBf1 FHuJaMshP/LJXcQTXj9/U3qYb8ppMnGS4nPYaqKzHTuTvgdzHbuTaRwdEkTS05UasAiqPZ qOLoPsm+4LYyxI6alRbuHU5dhLr+xOl5a21SiWwA7id+PhhBNJtWab1qRcJc8A== 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 3A4A279A8E for ; Thu, 8 Aug 2024 14:11:43 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sc1yy-0000t1-DX; Thu, 08 Aug 2024 08:11:04 -0400 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 1sc1yt-0000sP-OS for help-guix@gnu.org; Thu, 08 Aug 2024 08:10:59 -0400 Received: from smtprelay05.ispgateway.de ([80.67.31.97]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sc1yr-0003Oi-2l for help-guix@gnu.org; Thu, 08 Aug 2024 08:10:58 -0400 Received: from [62.8.169.120] (helo=milk) by smtprelay05.ispgateway.de with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98) (envelope-from ) id 1sc1yi-000000006Gb-3a7U; Thu, 08 Aug 2024 14:10:48 +0200 From: Simon Streit To: Felix Lechner Cc: Maxim Cournoyer , Felix Lechner via Subject: Re: Mcron jobs using with-mail-out In-Reply-To: <87ed72d1tm.fsf@lease-up.com> (Felix Lechner's message of "Mon, 05 Aug 2024 15:47:33 -0700") References: <87a5xtgsaq.fsf@gmail.com> <87ed72d1tm.fsf@lease-up.com> Gcc: nnfolder+archive:sent.2024-08 Date: Thu, 08 Aug 2024 14:10:46 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Df-Sender: c2ltb25AbmV0cGFuaWMub3Jn Received-SPF: pass client-ip=80.67.31.97; envelope-from=simon@netpanic.org; helo=smtprelay05.ispgateway.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: -5.95 X-Migadu-Queue-Id: 3A4A279A8E X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -5.95 X-TUID: Zkf97NwKHKdq Felix Lechner writes: > Do you provide a 'sendmail' executable in your system profile? If so, > should the system PATH include "/run/setuid-programs"? I understand your question now. Please disregard my previous message. Sendmail is available through /run/current-system/profile/sbin and /run/setuid-programs/sendmail. Both are provided by OpenSMTPd. I don't have sendmail in my user profile, and am trying to get on with mailutils and OpenSMTPd only for the time being. I have no need for msmtpd yet. Mcron's service PATH contains only /run/current-system/profile/bin and thus can't find sendmail. If I use my previous job example and leave (setenv ...) out, I get the following error: --8<---------------cut here---------------start------------->8--- 2024-08-08 12:17:00 19819 /gnu/store/ir80y6y5g4w1qf2fcqm71lv8rh2gppwq-setuid-sans.scm: running... 2024-08-08 12:17:00 19819 /gnu/store/ir80y6y5g4w1qf2fcqm71lv8rh2gppwq-setuid-sans.scm: completed in 0.090s 2024-08-08 12:17:00 19819 /gnu/store/ir80y6y5g4w1qf2fcqm71lv8rh2gppwq-setuid-sans.scm: /gnu/store/fl3l5wx8qynjrvx5lilz6c38hb77cf36-bash-minimal-5.1.16/bin/bash: line 1: sendmail: command not found --8<---------------cut here---------------end--------------->8--- This is slowly giving me a slight headache. Should mcron not know about sbin, and maybe more so about setuid binaries? The PATH in gnu/services/mcron.scm is defined a follows: --8<---------------cut here---------------start------------->8--- #:environment-variables (cons* "GUILE_AUTO_COMPILE=0" "PATH=/run/current-system/profile/bin" (remove (cut string-prefix? "PATH=" <>) (environ))) --8<---------------cut here---------------end--------------->8--- This applies generally. Is that not too limiting? Kind regards -- Simon