My goal is to have a single configuration file that can run across
different environments (dev/stage/live.)
I was really hoping Exim had an evaluate-once assignment operator like
the Makefile walrus (:=).
No problem, I'll come up with a different solution - an include with
macros or just a simple 'sed'.
FWIW, the readfile assignment hasn't caused issues anywhere else so
far, just in the cert paths, which I presume are a special case for
security.
Thanks!
Lance
On 4/15/23, 4:43 PM, "Jeremy Harris" <jgh@???
<
mailto:jgh@wizmail.org>> wrote:
On 15/04/2023 19:36, Lance Lovette via Exim-users wrote:
> But I need primary_hostname to be dynamic, say read from a file.
>
> primary_hostname = ${readfile{/etc/mailname}{}}
You can't do that; the primary_hostname option does not
expand it's argument.
Could you explain your need further? Why do you want this value
to come from a file? Would it suffice to have that line of configuration
come from a file (if so, look into the .include directive).
--
Cheers,
Jeremy