I've just had emerge telling me it wants to trash my postfix config :-)my /etc/postfix/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
I'm not sure whether my setup is actually using it, I use dovecot to
deliver my mail, but is there any way I can stop random updates trying
to trash my local changes? I'm rubbish at merging updates, and last time
I tried I think the result was a complete mess.
And I said I use dovecot to deliver mail - that takes a leaf out of the systemd book and has a master config file pointing to a local config
file. Any updates to dovecot don't touch the local file, and don't touch
my local settings.
Can I do anything similar for postfix?
Cheers,
Wol
I’m not a systemd user, so I don’t know precisely what systemd does. But
<br></div><div dir="auto">There are portage file merging tools for config updates, but I don’t use them often enough to use them properly. So I’ve reverted to this simple minded system. And backups!</div><div dir="auto"><br></div><div dir="auto">HTH</div><div dir="auto"><br></div><div dir="auto">John</div>
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.
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)".
On 27/11/2022 13:21, John Blinka wrote:
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)".
On 27/11/2022 14:50, 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.
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 youIt's not portage I'm worried about, it's me!
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.
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.
Of course, if you're Mr Perfect you won't have a problem. Why can't
postfix *protect* me, like systemd or dovecot do?
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 302 |
Nodes: | 16 (2 / 14) |
Uptime: | 98:55:10 |
Calls: | 6,767 |
Calls today: | 5 |
Files: | 12,295 |
Messages: | 5,376,396 |
Posted today: | 1 |