On Sun, 27 Nov 2022 22:12:21 +0000, Wol wrote:

> >> 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)".  
> > 
> > Except that portage doesn't overwrite stuff under /etc by default. It 
> > saves the new config file and then tells you there's an update so you 
> > can use etc-update or dispatch-conf to check/merge/abort the changes. 
> > After all the new version of software may need a change to the old 
> > config file.
> >   
> It's not portage I'm worried about, it's me!
> 
> Systemd DOES NOT PUT YOUR LOCAL CONFIG IN DANGER.
> 
> Dovecot DOES NOT PUT YOUR LOCAL CONFIG IN DANGER (if you do it
> properly).
> 
> EVERY SINGLE POSTFIX UPDATE PUTS YOUR CONFIG IN DANGER.

Only if you run your chosen config manager without paying attention, but
Gentoo is particularly good at punishing those who do not pay attention.

> Of course, if you're Mr Perfect you won't have a problem. Why can't 
> postfix *protect* me, like systemd or dovecot do?

Many, many programs have and option to include a local config file:
dnsmasq, Xorg, motion and rkhunter are the first to spring to mind right
now. Your problem is not with Gentoo, it does a good job of mitigating
the risk, it is with Postfix. Why not file a bug with them asking for an
"include otherfile.cf" option. Or, even better, and includedir option.


-- 
Neil Bothwick

Multitasking: Reading in the bathroom.

Attachment: pgpBTubAxugpy.pgp
Description: OpenPGP digital signature

Reply via email to