From nobody Fri May 06 11:55:45 2022 X-Original-To: ports-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 B1ECC1AB5FB3 for ; Fri, 6 May 2022 11:55:45 +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 4Kvpt93DVHz4vfV for ; Fri, 6 May 2022 11:55:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 4BBAB1B4D2 for ; Fri, 6 May 2022 11:55:45 +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 246Btjrr084687 for ; Fri, 6 May 2022 11:55:45 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 246Btj3O084686 for ports-bugs@FreeBSD.org; Fri, 6 May 2022 11:55:45 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 263813] mail/postfix: running post-install script modifies custom configuration settings Date: Fri, 06 May 2022 11:55:45 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: ports@skyforge.at X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: otis@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: 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: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1651838145; 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; bh=PnVG/4FtwT0/Aws2PLvWF5iIbKkqnG03MKdjPwNWFr4=; b=q556TJJTmGPo1cCCh/7G9zhuUfNn1XnVo6Mkf4n7sJfSIJh5vvjBPpCGGkcmcCCCPKd4vR MhtvWJWRRbL3FQ7jtQoRmGT/k7OlwapAIE/qoEfmgDw9VTQZz5wLOxPpawmmJuWflXtFYR PLf3bN2KoHvAup/v0XWA+dvyKW2PkVzIFo/qxGIJzpC5HWr0CxD6EXckEsqz7sGtzF9lKR hJll+8CW6ITfTVC824XIfuachktX7kBwkA4BaYLMzrNOdIVWmiFVwx3/AK5ZQR/dkCiLN7 OgDkJYuv3LW4HSYGNIJIKoVdwOZQh0amMEEtShj0HhlmmFFLsiUjOK1jdjUxrQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1651838145; a=rsa-sha256; cv=none; b=rR9WFsQHmN0Th10GxArZraDnLUARWKTCFkj3APWC4/2NWyxZKPLtZi7yelnpGf4B1k9VL3 BpKb+54V9ep8K5FntvtetibloblcZPYUU7Ym0R4mSFGgxipqyQPJt3VwkSqsSjxTu8Zp37 lEIrGyM5yvTACofTF8/UEdxEXdikNMVEep48uWoNyMOUDfFSiMCfnZ1psHSQEpkuGaqUHQ p6wcxFOmI9vfvw/b042kB1LfBb6//yvUITGiM+rwcUyz7hotYCfvxyoRWE7L+miu4X1WVi b+sVQLLPsBXq5cjeVoHUB65Ti8D/x/0j5ztL7tVBRGDYtD1zz1AAdDTFQs3NGA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D263813 Bug ID: 263813 Summary: mail/postfix: running post-install script modifies custom configuration settings Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: otis@FreeBSD.org Reporter: ports@skyforge.at Flags: maintainer-feedback?(otis@FreeBSD.org) Assignee: otis@FreeBSD.org The pkg-install routine of mail/postfix calls postfix's post-install script= on every update with the upgrade-package parameter. This parameter updates installed main.cf and master.cf, regardless of whether they were modified b= y a user or not. This is particularly problematic because of that script's odd behaviour to restrict postfix to ipv4 only, see [1]. We should really try to avoid changing configuration files after they've be= en modified by the user, in particular if it may result in unpleasant surprise= s. Is there any way to call this script if and only if the main.cf/master.cf f= ile hasn't been modified by the user and/or restrict its modifications to the sample files?=20 Cheers, Sascha [1] https://github.com/vdukhovni/postfix/blob/master/postfix/conf/post-install#= L859 --=20 You are receiving this mail because: You are the assignee for the bug.=