On 2020-07-17 PGNet Dev wrote:
> i'm deploying a postfix server, using distr-pkg'd postfix
> 
> to date, i've always/only used postfix that i've built/installed to my
> liking.
> 
> i prefer to keep my configs under /usr/local/etc/postfix.
> 
> my postfix is config'd/built with config dir ==
> /usr/local/etc/postfix.  so its bins (postconf, postfix, postsuper,
> etc etc) are are, by default, pointed to that config path.
> 
> distro pkgs are built with, typically, default config location ==
> /etc/postfix.  similarly, its bins are pointed to THAT config path.
> 
> 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
> 
> (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.
> 
> Is either (1) or (2) preferred for any reason? Or is there a better
> way to accomplish this?

Yes. Stop working against your distro. Either compile Postfix yourself
or use the structures the distro implements. If for some reason you must
use the pre-packaged Potfix but still have /usr/local/etc/postfix just
create it as a symlink to /etc/postfix, not the other way 'round.

Regards
Ansgar Wiechers
-- 
"All vulnerabilities deserve a public fear period prior to patches
becoming available."
--Jason Coombs on Bugtraq

Reply via email to