As I am having an error condition with ${if} items inside ${run} items I made a simple example:
warn log_message = Sender is ${run{/usr/bin/echo ${if def:sender_address {$sender_address}}}} This produces the result: 2024-06-05 11:35:31 failed to expand ACL message "Sender is ${run{/usr/bin/echo ${if def:sender_address {$sender_address}}}}": Expansion of "${if" from command "/usr/bin/echo ${if def:sender_address {$sender_address}}" in ${run} expansion failed: condition name expected, but found "" Are ${if} items permitted inside ${run} items? -- ## subscription configuration (requires account): ## https://lists.exim.org/mailman3/postorius/lists/exim-users.lists.exim.org/ ## unsubscribe (doesn't require an account): ## exim-users-unsubscr...@lists.exim.org ## Exim details at http://www.exim.org/ ## Please use the Wiki with this list - http://wiki.exim.org/