On Mon, Jul 14, 2025 at 9:58 AM Wietse Venema via Postfix-users < postfix-users@postfix.org> wrote:
> Matt Zagrabelny via Postfix-users: > > Greetings Postfix-users, > > > > I've grepped the man page (man 5 postconf) and performed some searching > on > > the internet regarding the idea of an include directory for config > snippets. > > > > For instance, openssh has: > > > > /etc/ssh/sshd_config.d/*.conf > > > > for adding config snippets to the daemon configuration. > > > > Does Postfix have such a mechanism? > > What realistic problem would it solve? > Separating distro/upstream default configs from admin local configs. That way on upgrades to systems the default config can be easily upgraded and kept separate from local admin changes. > > If not, would the developers be amenable to such a feature? > > - How would "postconf" edit multiple files, when adding a setting > that does not exist in any file? Create a new entry in main.cf? In > every file? In a random file? In a new file? What is the name of > that new file? > > - How would "postconf" edit those files, when a parameter setting > exists in two files? Three files? Update all those files? > > - What value will Postfix use when a parameter is specified in > two files? Three files? > Agreed. These would be conceivable issues to work through. I'm a light user of postfix, so I don't know the usage patterns of editing configurations with postconf (I never have) and what potential pitfalls would be. A quick, and ignorant suggestion would be that an "include" stanza and editing with postconf would be mutually exclusive. > > - Why main.cf.d, why not master.cf.d? > The impetus for my initial inquiry was that it seems that main.cf is tailored more by the distribution than master.cf and I was curious about optimizing drift mitigation between distro configs and local configs. It also feels like main.cf is closer to config files like sshd_config. Hence I chose main.cf to talk about. Thanks for the dialogue! -m
_______________________________________________ Postfix-users mailing list -- postfix-users@postfix.org To unsubscribe send an email to postfix-users-le...@postfix.org