Le 06/01/2023 à 21:03, Demi Marie Obenour a écrit :
On 1/6/23 07:15, Wietse Venema wrote:
Peter Wienemann:
Hi,

is there a way to dump the effective postfix configuration rather than
the one specified in main.cf/master.cf? It seems that changes to
main.cf/master.cf have an immediate impact on the output of postconf
regardless of whether a reload/restart of the service was performed.
How would that work? Different Postfix processes start at different
times, and some processes (qmgr, master) run forever.
What about using inotify/kqueue to determine when a config file has
changed and reload accordingly?
Too dangerous and useless.
I want to issue reload for long running processes only when I want.
Periodically recycled process will take automatically the new conf when they restarts, inotify/kqueue is not needed for that. That is something you must know as a postfix user to not inadvertently crash your running config with half edited but saved config files.
Same expectations and warning for maps (according to their type).
For the conf files, one interesting change would be to do the opposite : Process only run with copies of validated conf files and new copies (+ process reload) are done only when explicit reload command is issued to avoid new conf taken by surprise on process recycling.

Emmanuel.

Reply via email to