I’m running into an issue where I am getting an UnexpectedMessage (or alert unexpected message using openssl) when trying to use starttls in kumomta relaying email to smtp-relay.brevo.com.
Running openssl s_client -connect smtp-relay.brevo.com:587 -starttls smtp in the kumomta container works just fine (OpenSSL 3.0.2 15 Mar 2022)
I was wondering what some recommended troubleshooting steps would be for diagnosing the issue.
"content":"KumoMTA internal: failed to connect to any candidate hosts: TLS handshake with ResolvedAddress { name: \"smtp-relay.brevo.com.\", addr: 1.179.119.1 }:587 failed: received fatal alert: UnexpectedMessage",
It ended up being fixed by setting enable_tls to OprotunisticInsecure. The server’s TLS cert has a CN of “smtp-relay-offshore-us-west1-v2.brevo.com” with SANs of “DNS:smtp-relay-offshore-us-west1-v2.brevo.com, DNS:smtp-relay.brevo.com”.