Good morning,

On 2024-02-24 Eric Kingston via Exim-users <exim-users@lists.exim.org> wrote:
[...]
> 16:48:51.076 57957  ╭considering: <; ${if exists{passwd.client}
[...]
> 16:48:51.076 57957  ├──condition: exists{passwd.client}
> 16:48:51.076 57957  ├─────result: false
[...]
> It seems that the check if passwd.client exists may be failing...

> 16:48:51.076 57957  ├──condition: exists{passwd.client}
> 16:48:51.076 57957  ├─────result: false

exactly.

> But the path it lists is correct and the file does exist....

It tests for "exists{passwd.client}" instead of
"exists{/etc/exim4/passwd.client}" i.e. it will search in the current
working directory instead of below /etc.

[...]
> remote_smtp_smarthost:
>   debug_print = "T: remote_smtp_smarthost for $local_part@$domain"
>   driver = smtp
>   multi_domain
>   hosts_try_auth = <; ${if exists{passwd.client} \
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>         {\
>         ${lookup{$host}nwildlsearch{CONFDIR/passwd.client}{$host_address}}\
                                      ^^^^^^^^^^^^^^^^^^^^^

Note the difference. 

cu Andreas

-- 
## 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/

Reply via email to