I have come upon an interesting behaviour of the Jira server while configuring notifications via cloud hosted smtp server.
When I try to configure SMTP notifications in Jira using the SMTP with TLS on 465 I get SocketTimeoutException.
Of course first thing I suspected was a network problem, but I installed the email client (ThunderBird) on the serwer hosting the Jira instance and repeated the configuration. To my surprise everything worked OK which suggests that the Jira server itself might have a problem with the SMTP connection.