08.12.2024 19:10, Viktor Dukhovni via Postfix-users wrote:
DO NOT attempt to build database tables, except just-in-time, shortly before Postfix is ready to be started. Otherwise, you cannot know the desired value of various supporting parameters, that may depend on the system environment: - default_database_type - alias_database - ... In other words, run "newaliases" in the start script, not at package build time. If you're upgrading a "live" system, you may be able to in some cases just rebuild the alias table (perhaps atomically) and leave Postfix running, if the file format is somehow known stable, but a restart is generally required, because that's hard to know for some unknown database type, and whether packages you've installed affect its on disk layout.
Just to demonstrate what's in debian about the matter, which I basically just removed a few days ago: https://salsa.debian.org/postfix-team/postfix-dev/-/commit/60a176aeee7dc0397037bc7980d5f3f265b624fa - to have some more or less clean start for further actions. Especially see runnewaliases function in there. /mjt _______________________________________________ Postfix-users mailing list -- postfix-users@postfix.org To unsubscribe send an email to postfix-users-le...@postfix.org