[Bug 263813] mail/postfix: running post-install script modifies custom configuration settings
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 06 May 2022 11:55:45 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=263813 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: firstname.lastname@example.org 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 . 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? Cheers, Sascha  https://github.com/vdukhovni/postfix/blob/master/postfix/conf/post-install#L859 -- You are receiving this mail because: You are the assignee for the bug.