Date: Fri, 06 May 2022 11:55:45 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 263813] mail/postfix: running post-install script modifies custom configuration settings Message-ID: <bug-263813-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
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.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-263813-7788>