From nobody Fri Apr 19 22:34:39 2024 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VLqFw4d1Lz5Ht0R for ; Fri, 19 Apr 2024 22:34:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VLqFw2BvVz4Kvl for ; Fri, 19 Apr 2024 22:34:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1713566084; a=rsa-sha256; cv=none; b=Xu2F4F11H76rKx2pXDC4d099t0t+r+DUAuWb/FAcOTwGiYfzCM91l8MKTlnxRRpZGHy1Pp sd8xv/cfiKnlkZfFneJ+wTARGV2oFMkDt/FiKE/4idvtgmvUcBv1tVCP6OyoBwDB7bEQEN /tYucYCQccVsqlCb2G2RChBbdfHeiDk6hdxzFOs+uPJ0lVdx/VCty6Vc3L245k1Hg+iU5D EhCItAEVGTTBVqkYv5lj91v9XWMso3CQ0r4qFKD1NkCNR0rSCWp+CBCNTu4v8hbJZzTiqu YnW8CUdrHyzdrhgbAmqPo8p4Q3NGnvOGvXZSDbFQPngXiLT5zhqrWsKRlDsT/w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1713566084; h=from:from: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: in-reply-to:in-reply-to:references:references; bh=dGaaGI2Uj5FjAz3kxV7rHwVvpR5ejcQYfmtZniFVP9A=; b=OXp6aTLVy71z6xWiAe8D5/bSwjTTOSu/1nMesiMB0Kj43bJfmpYOLCvz/BVVWZwKSBB/em Xcnlyq1LvJM1DqUkZAFY01oHFlyk1BvsSoGQHxw0CTQLZFwFkMWMCWIm9xFLlxVt+T7ChW Ksx68Ax44fmGoZYHCDDMkLxM0BiR7twOvVpdQYgf81a+w22CPCd2BDOuPnHDmXACdabEaF GZo0/uZjTLKsAlEJECUFYupUWGEOXvAnKSW0eob7bG2HFlG8o7Jlpcvi8S8tp4Jq0unRph YK2sBrRBBUGqdzLLf4z1WW3k7sWsyY+BhmxBxBLL+AXn0q483IPcLwbgYwecTw== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4VLqFw1m1zz1B0D for ; Fri, 19 Apr 2024 22:34:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 43JMYikP028248 for ; Fri, 19 Apr 2024 22:34:44 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 43JMYiiD028246 for bugs@FreeBSD.org; Fri, 19 Apr 2024 22:34:44 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 25218] mailwrapper(8) invokes sendmail when resources are tight Date: Fri, 19 Apr 2024 22:34:39 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 4.2-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: Works As Intended X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D25218 --- Comment #9 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D961bcbeef251b87463446860fca9910a4= 61a3909 commit 961bcbeef251b87463446860fca9910a461a3909 Author: Lexi Winter AuthorDate: 2023-12-30 15:09:15 +0000 Commit: Warner Losh CommitDate: 2024-04-19 22:20:44 +0000 mailwrapper(8): change behaviour if mailer.conf cannot be opened Previously, mailwrapper(8) would default to invoking _PATH_DEFAULTMTA (i.e., dma) if mailer.conf couldn't be opened for any reason, including transient errors like ENFILE. This behaviour is undesirable, because if the administrator has configured a different MTA in mailer.conf, they almost certainly don't want mailwrapper to unpredictably fall back to the compiled-in default; and in any case, the default MTA is probably not running, meaning the mail may be queued and then never delivered, which is worse than not accepting it to begin with. Change this behaviour depending on why mailer.conf can't be opened: - If it doesn't exist, keep the existing behaviour of falling back to the default MTA, on the assumption that this is a reasonable default if mailer.conf hasn't been configured at all. - If it cannot be opened for any other reason, do not invoke an MTA and instead return an error to the caller. PR: 25218 Reviewed by: imp, emaste, markj Pull Request: https://github.com/freebsd/freebsd-src/pull/969 usr.sbin/mailwrapper/mailwrapper.c | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) --=20 You are receiving this mail because: You are the assignee for the bug.=