On 27/11/2022 13:21, John Blinka wrote:
I’m not a systemd user, so I don’t know precisely what systemd does. But
my /etc/postfix/main.cf <http://main.cf> is a soft link to
“main.cf.works”, which was an unoriginal name for an experimental config
file that worked (as opposed to a series of trial configs that didn’t).
The original main.cf <http://main.cf> is renamed main.cf.orig to keep it
around as an unadulterated reference. Works for me and doesn’t get
clobbered in updates.
Systemd stores its *distro*supplied* config files in /usr.
It stores its user-supplied config files in /etc.
So when your distro updates systemd, it doesn't go anywhere near your
local changes.
Dovecot doesn't do it quite the same way, the default distro config
loads a "config.local" file if it exists. So when your distro updates
the master config, your local config is untouched.
Postfix afaik just has one humungous config file, so when your distro
updates the config, all your local changes are trashed :-(
I don't want to faff about with special copies, backups, origs etc.
Everything should "just work (tm)".
Cheers,
Wol