On Sun, 12 Mar 2023, Victor Ustugov via Exim-users wrote:
> Hello.
>
> # uname -sr
> FreeBSD 13.1-RELEASE-p6
>
> # pkg info -E exim
> exim-4.96
>
> exim compiled with all the patches from exim4_4.96-14
> https://packages.debian.org/source/sid/exim4
>
> I try to setup OAuth2 client authenticator:
>
> client_oauth2:
> driver = plaintext
> public_name = XOAUTH2
> client_send = ${lookup{$host<@>$sender_address<@>oauth2}\
> lsearch*{CONFDIR/smtpauthdb}{${expand:$value}}fail}
>
> When I sent a test message, I got an error message in the
> /var/log/exim/mainlog:
>
> 2023-03-11 23:03:13 [2340] 1pb6Mz-0000bk-0v <= v.corvax.test@???
> U=root P=local S=610
> 2023-03-11 23:03:13 [2341] 1pb6Mz-0000bk-0v == oauth2-test@???
> R=mailertable_smtp T=remote_smtp defer (-48): expansion of "${expand"
> failed in client_oauth2 authenticator: "${expand" is not a known
> operator (or a } is missing in a variable reference)
>
> But value of client_send is correct. I checked it with exim -be.
>
> without ${expand:
>
> # exim -be
> '${lookup{smtp.gmail.com<@>v.corvax.test@???<@>oauth2}lsearch*{/usr/local/etc/exim/smtpauthdb}{$value}fail}'
> ${run{/bin/sh -c
> /usr/local/bin/get_oauth2_access_token-v.corvax.test@???}{$value}{$value}}
Can you tell me more about this get_oauth2_access_token script
- I do not see it in
https://packages.debian.org/source/sid/exim4 ?
Thanks,
--
Andrew C. Aitchison Kendal, UK
andrew@???