by chance, i happened to create a parameter which used a dash in the
name, and was referencing it in another parameter, e.g.:

foo-param = foo
bar_param = ${foo-param}

upon restart, postfix complained about this:

postconf: warning: macro name syntax error: "foo-param"
postconf: fatal: macro processing error

i changed the dash to an underscore, and everything was fine - so no
real issue here.  but, it got me wondering where the syntax for valid
parameter names was documented.  i looked at postconf(5) and
postconf(1), but didn't find it.  is this documented somewhere and i'm
just missing it?

alternatively, is my conclusion flawed, and it's not actually related to
use of dash?  on a whim, i tried a dot (.) as well, with the same outcome.

also, when reading postconf(5), i noticed the following:

"The expressions "${name:value}" and "${name?{value}}" are replaced with
"value" when "$name" is empty. [...]"

just based on my understanding, should that be:

"The expressions "${name:value}" and "${name:{value}}" are replaced with
"value" when "$name" is empty.[...]"?

-ben

Reply via email to