On 03/12/2022 16:39, exim-users--- via Exim-users wrote:
> It fails on expanding the condition, which is part of the exim configuration from Ubuntu/Debian:
> deny
> condition = ${run{/usr/bin/spfquery.mail-spf-perl --ip \
> ${quote:$sender_host_address} --identity \
> ${if def:sender_address_domain \
> {--scope mfrom --identity ${quote:$sender_address}}\
> {--scope helo --identity ${quote:$sender_helo_name}}}}\
> {no}{${if eq {$runrc}{1}{yes}{no}}}}
The docs for ${run } say:
If the option preexpand is not used, the command string is
split into individual arguments by spaces and then each argument is expanded.
- so that expansion is questionable around the ${if }'s. But that doesn't explain
the complaint about ${quote:$sender_host_address}.
You could play with "exim -d -be" (replacing variables with suitable values,
to trace the evaluation of the expansion. Or you could just slam in a
"preexpand" option to see what happens.
Either way, the maintainers of that config probably need to know (if they've not
already made some modification which you've not picked up).
--
Cheers,
Jeremy