On Fri, Jul 17, 2020 at 07:31:11PM -0700, PGNet Dev wrote: > I simply want to ensure that the distro-pkg's bins get pointed to my > configs in /usr/local/etc/postfix. > > two simple ways to do that are > > (1) ln -sf /usr/local/etc/postfix /etc/postfix
This would be the preferred approach. But (don't recall the details) that might elicit complaints from postfix-check, because the global config_directory is not a directory. > (2) shell alias each bin with "... -c /usr/local/etc/postfix", or > shell-script-wrap in /usr/local/bin each postfix-bin, doing the same. The drawback here is that it is liable to break multi-instance support. The "postmulti -x" command runs variaus postfix commands with the "MAIL_CONFIG" environment variable set to point to the right instance, but your "-c options" would incorrectly always force the default instance. > Is either (1) or (2) preferred for any reason? > Or is there a better way to accomplish this? The best way may well be a loopback mount, if a symlink (1) creates non-trivial friction. -- Viktor.