I am trying to send an email using curl via mail.ecloud.global. The handshake comes as far as verifying the certificate. After that the server stops responding. curl --verbose ... option says:
curl is a swiss army knife of protocols, it really can do smtp too (and imap). OP wants to talk imap to a non imap port? as no capabilities are returned… so a timeout is inevitable. It would be fair though, as some imap servers will send the mail for you if you store the individual mail in an outbox.
Edit: I think the curl example isn’t fully rfc compliant at Date: - add the timezone drift vs utc at the end +0000 - though not all recipient will insist on this being present, some do (GMX did at least)