Re: Question on embedded variables in postconf command

2017-03-09 Thread Peter
On 10/03/17 12:59, Robert Moskowitz wrote: > There appears to be a difference between what you show above and what I > tested: > > So I did a little googling and learned the difference: > > http://stackoverflow.com/questions/6697753/difference-between-single-and-double-quotes-in-bash Yep, you

Re: Question on embedded variables in postconf command

2017-03-09 Thread Robert Moskowitz
Ah, On 03/09/2017 10:13 AM, Viktor Dukhovni wrote: On Mar 9, 2017, at 9:54 AM, Robert Moskowitz wrote: I have modified my guide by setting interactive variables in the beginning and then using them throughout, so that it is not necessary (or much less) to modify stuff.

Re: Question on embedded variables in postconf command

2017-03-09 Thread Peter
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

Re: Question on embedded variables in postconf command

2017-03-09 Thread Robert Moskowitz
Sorry, Viktor, I was not clear in my intent. 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

Re: Question on embedded variables in postconf command

2017-03-09 Thread Viktor Dukhovni
> On Mar 9, 2017, at 9:54 AM, Robert Moskowitz wrote: > > I have modified my guide by setting interactive variables in the beginning > and then using them throughout, so that it is not necessary (or much less) to > modify stuff. I came up with: > > eval $(echo

Re: Question on embedded variables in postconf command

2017-03-09 Thread Robert Moskowitz
On 03/07/2017 02:43 PM, Peter wrote: On 08/03/17 08:00, Robert Moskowitz wrote: After a bit of reflection, I may have asked the wrong question. Perhaps a better question is does the substitution take place on processing the option? It would take place at runtime (I believe). If you want it

Re: Question on embedded variables in postconf command

2017-03-07 Thread Robert Moskowitz
On 03/07/2017 02:43 PM, Peter wrote: On 08/03/17 08:00, Robert Moskowitz wrote: After a bit of reflection, I may have asked the wrong question. Perhaps a better question is does the substitution take place on processing the option? It would take place at runtime (I believe). If you want it

Re: Question on embedded variables in postconf command

2017-03-07 Thread Peter
On 08/03/17 08:00, Robert Moskowitz wrote: > After a bit of reflection, I may have asked the wrong question. Perhaps > a better question is does the substitution take place on processing the > option? It would take place at runtime (I believe). If you want it to hard-code the substitution into

Re: Question on embedded variables in postconf command

2017-03-07 Thread Robert Moskowitz
On 03/07/2017 02:19 PM, Christian Kivalo wrote: Am 7. März 2017 20:00:55 MEZ schrieb Robert Moskowitz : After a bit of reflection, I may have asked the wrong question. Perhaps a better question is does the substitution take place on processing the option? What about

Re: Question on embedded variables in postconf command

2017-03-07 Thread Christian Kivalo
Am 7. März 2017 20:00:55 MEZ schrieb Robert Moskowitz : >After a bit of reflection, I may have asked the wrong question. Perhaps > >a better question is does the substitution take place on processing the > >option? What about testing the assumption? Build the configuration

Re: Question on embedded variables in postconf command

2017-03-07 Thread Robert Moskowitz
After a bit of reflection, I may have asked the wrong question. Perhaps a better question is does the substitution take place on processing the option? thanks On 03/07/2017 01:59 PM, Robert Moskowitz wrote: Is there a way to get the following: postconf -e 'smtpd_tls_key_file =