Not enough arguments for 'srs_encode' (v1.8.0~beta2)

Hello.

In a mail account I have configured a forwarding to another mail account and the following error appears in the exim log:

2023-07-02 18:53:49 1qG0Kb-001DEJ-11 == [email protected] [email protected] R=dnslookup T=remote_forwarded_smtp defer (-1): Failed to expand return path “${srs_encode {readfile{/etc/exim4/srs.conf}} {$return_path} {$original_domain}}”: Not enough arguments for ‘srs_encode’ (min is 3)

On the other hand, I’m also seeing a lot of log entries of this type:

2023-07-02 18:40:02 1qEXk2-0032Xk-1l H=gmail-smtp-in.l.google.com [74.125.133.26] TLS error on connection (recv): The TLS connection was non-properly terminated.
2023-07-02 18:40:02 1qEXk2-0032Xk-1l H=gmail-smtp-in.l.google.com [74.125.133.26] TLS error on connection (recv): The specified session has been invalidated for some reason.

Regards.

What OS are you using?

Debian 12.

Does /etc/exim4/srs.conf Exists?

If not create it with an random string inside

root@mad:~# l /etc/exim4/srs.conf
-rw-r----- 1 root root 17 jun 23 01:42 /etc/exim4/srs.conf

Yes, this file exists and has a string of 16 alphabetic characters.

It works correctly by setting the value directly in the configuration.

SRS_SECRET = ${readfile{/etc/exim4/srs.conf}}

Should solve the issue