I searched and found some posts about this without any real solution.
Basically, I have smtp relay set up globally and (after that didn’t work) on the mail domain directly:
find -L /etc -name "smtp_relay*" -print0 | xargs -0 -I {} sh -c 'echo "{}"; grep -E "^(host|port)" {}; echo'
/etc/exim4/smtp_relay.conf
host:[the.relay.host]
port:2525
/etc/exim4/domains/[themaildomain].com/smtp_relay.conf
host:[the.relay.host]
port:2525
Mail sent by HestiaCP directly (notification emails) or from roundcube work appropriately:
R=send_via_unauthenticated_smtp_relay T=remote_smtp H=the.relay.host [xx.xx.xx.xx] C="250 Queued (1.141 seconds)"
However, if I set a mail account to forward, it doesn’t use the smtp relay:
R=dnslookup T=remote_forwarded_smtp defer (110): Connection timed out H=destination.email.server [xx.xx.xx.xx]: SMTP timeout after initial connection
I imagine this is easy to fix, but I don’t know enough about exim or hestia’s setup with exim to try and muddle a fix on my own…