On Mon, Jul 26, 2021 at 12:18:01PM +0000, Scott Kitterman wrote:
> >(it is listed in the postfix 3.6.1 tarball in conf/postfix-files:
> >"$meta_directory/makedefs.out:f:root:-:644"
>
> The Debian package management system tracks system induced changes in
> /etc and notifies users about them during package upgrade. Before I
> moved the file to /usr/share/postfix, there were alerts during package
> upgrade every time if makedefs.out changed (i.e. every time).
Note that the file is installed into "$meta_directory" along with a
small number of other files that apply to all Postfix instances:
$meta_directory/dynamicmaps.cf.d:d:root:-:755
$meta_directory/dynamicmaps.cf:f:root:-:644
$meta_directory/main.cf.proto:f:root:-:644
$meta_directory/makedefs.out:f:root:-:644
$meta_directory/master.cf.proto:f:root:-:644
$meta_directory/postfix-files.d:d:root:-:755
$meta_directory/postfix-files:f:root:-:644
The simplest solution would be to make $meta_directory be something like
/usr/share/postfix or the same as $daemon_directory. At which point the
only files in /etc/postfix that are updated with each package release
are:
$config_directory/LICENSE:f:root:-:644:1
$config_directory/TLS_LICENSE:f:root:-:644:1
$config_directory/bounce.cf.default:f:root:-:644:1
$config_directory/main.cf.default:f:root:-:644:1
What do you do about these?
> 3. Put it elsewhere and provide a symlink, which means the warning.
You should customise postfix-files to exactly match what the package
delivers. Replacing files with symlinks without changing the metadata
is not a good idea.
--
Viktor.