Email forwarding problems

Ubuntu 20.04
HestiaCP

I cant seem to get my email fowarding to work The excim panic log contains this error

{${readfile{/etc/exim4/srs.conf}}} {$return_path} {$original_domain}}": “${srs_encode” is not a known operator (or a } is missing in a variable reference)
2023-07-13 04:28:11 1qJngl-000DPJ-2j == [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}}”: “${srs_encode” is not a known operator (or a } is missing in a variable reference)

I opened srs.conf it has this in it only nl9aqkO15ypPd9nD guessing its some hash? Any help would be really appreciated. Its a brand new fresh install with nothing else on the VPS

Ubuntu 20.04 doesn’t support SRS

Make sure to use config https://github.com/hestiacp/hestiacp/blob/main/install/deb/exim/exim4.conf.template

downloaded the .template file
sudo wget https://raw.githubusercontent.com/hestiacp/hestiacp/main/install/deb/exim/exim4.conf.template -O /etc/exim4/exim4.conf.template

reinstalled exim4-daemon-heavy
restarted exim4 (sudo systemctl restart exim4)

still not forwarding :frowning:

Check your logs /var/log/exim4/mainlog

I tried the latest and greatest Debian 11 and pulled this from the logs (I was hoping it would run correctly on debaian when you said it was a ubuntu issue

2023-07-14 11:36:03 1qK7j2-000ASL-Ev <= bddelectrical@gmail .com H=mail-qt1-f176.google. com [209.85.160.176] P=esmtps X=TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_128_GCM:128 CV=no SNI=mail.bdd.com.au K S=6732 DKIM=gmail. com id=01ae01d9b5f3$8b01ed60$a105c820$@gmail. com
2023-07-14 11:36:03 1qK7j2-000ASL-Ev => scott < scoteet@bdd. com .au> R=localuser T=local_delivery
2023-07-14 11:36:03 1qK7j2-000ASL-Ev = saraji .sb@g mail .com < scott [email protected] .au> R=dnslookup T=remote_forwarded_smtp defer (-1): Failed to expand return path “${srs_encode {${readfile{/etc/exim4/srs.conf}}} {$return_path} {$original_domain}}”: “${srs_encode” is not a known operator (or a } is missing in a variable reference)

I obficated the email addresses in the logs so spiders wont attack me

Debian 11 is not supported by SRS download Ubuntu 22.04 or Debian 12

I did try and to install SRS on debian 11 No luck (still errored). I reinstalled on Ubantu 22.04 - Works like a charm now. Thankyou so much. If I was the head man there is no way I would even try and support all the old OS out there. I just didnt know. Appreciated your help - It means a lot to me.

Debian 11 is not supported only Debian12 and Ubuntu 22.04

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.