I can't figure out how to make exim 4.82 recognise variable ${tls_sni} in tls_certificate section.
I'm trying to make exim use per-domain certificates, but I'm getting an error
expansion of tls_certificate failed: unknown variable in "${tls_sni}"
Here is a part of my conf file
tls_certificate = ${if exists{CONFDIR/ssl/cert.${tls_sni}}{CONFDIR/ssl/cert.${tls_sni}}{CONFDIR/ssl/exim.cert}}
tls_privatekey = ${if exists{CONFDIR/ssl/key.${tls_sni}}{CONFDIR/ssl/key.${tls_sni}}{CONFDIR/ssl/exim.key}}
Section log_selector +tls_sni is logging incoming SNI values during tls/ssl session.
I have also tried to use variable ${tls_in_sni} with the same result.
Thanks in advance for any help.