Your question
Hi,
I have Stalwart 0.16.11
I want to change the TLS in Outbound Strategies in order to deliver emails to domains with this kind of error:
2026-07-03T11:34:26Z INFO STARTTLS error (delivery.start-tls-error) queueId = 316212629099997184, queueName = “remote”, from = “[email protected]”, to = [“[email protected]”, “[email protected]”], size = 194896, total = 3, domain = “destinationdomain.ro”, hostname = “mail.destinationdomain.ro”, reason = SMTP error occurred (smtp.error) { details = “I/O Error”, reason = “tls handshake eof” }, elapsed = 8ms
I understood from documentation that I have to add condifiton to TLS Output Strategy in Settings->MTA->Outbound->Strategy similar with this one:
if retry_num > 0 && last_error == ‘tls’
‘invalid-tls’
but I don’t know what string should I put in comparison of last_error. It should be
- tls handshake eof
- STARTTLS error
or something else?
Thanks,
Andrei
I understand that topics in this category are triaged by a bot first but a human reply will follow up. If I’d prefer a human-only reply, I’ll add the no-ai tag to my topic.
on