On 10/03/17 04:20, Robert Moskowitz wrote:
> I was not clear in my intent.

No, you were not, and yet...

> This is for a guide that uses a number of interactive environment
> variables to build lots of conf files that are needed, it seems, for a
> mail server.
> 
> So the variables are long gone when the server is up and running. Thus
> for main.cf, I want to hard code the value of those variables into
> mydomain and myhostname.

and the command that Viktor gave you does just that, it substitutes the
environment variable in the postconf command and the results are written
to main.cf.  The environment variables are evaluated at command time,
not runtime.

> The eval with echo command is run through the
> guide to execute these postconf commands to have the desired main.cf. 

The eval and echo are both completely unnecessary, ugly, slow, and even
carry some security risks.

> But thanks for the insight.

Obviously not enough insight as you completely missed what Viktor was
telling you.


Peter

Reply via email to