[Bug 263813] mail/postfix: running post-install script modifies custom configuration settings

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 06 May 2022 11:55:45 UTC

            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 by 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 been
modified by the user, in particular if it may result in unpleasant surprises.
Is there any way to call this script if and only if the main.cf/master.cf file
hasn't been modified by the user and/or restrict its modifications to the
sample files? 



You are receiving this mail because:
You are the assignee for the bug.