I'm trying to set up Email notifications for builds. I currently have a hosted Exchange Server which has IMAP/SMTP functionality enabled.
The hosted Exchange server requires TSL (SSL) SMTP authentication and uses a non-standard port. When I set these values in Administration->Server Configuration->Edit Email Notifier Settings, and test the connection, I get an error:
javax.mail.MessagingException: Could not connect to SMTP host: mail.******.com, port: ***;
nested exception is:
java.io.IOException: Couldn't connect using "javax.net.ssl.SSLSocketFactory" socket factory to host, port: mail.*******.com, ***; Exception: java.lang.reflect.InvocationTargetException"