Mail server connection failed with SMTP

Still need help?

The Atlassian Community is here for you.

Ask the community



After configuring the mail server in Confluence to use SMTP  with port 465, sending a test email fails with the following log:

The following appears in the Atlassian-Confluence.log

2016-02-02 02:57:04,496 ERROR [http-nio-8090-exec-1] [atlassian.confluence.jmx.JmxUtil] unregisterBean Unable to unregister object with name [ Confluence:name=MailServer-SMTP Сервер ]  due to : Confluence:name=MailServer-SMTP Сервер
 -- referer: | url: /confluence/admin/mail/doeditmailserver.action | userName: cnf | action: doeditmailserver


Port 465 shows up in Appendix A of the 1996 non-standard The SSL Protocol Version 3.0 as "Simple Mail Transfer Protocol with SSL". Unfortunately, it's not registered for SMTPs. It's registered for URD - "URL Rendezvous Directory for SSL" by Cisco. The recommended approach, at least for authentication, is to use STARTTLS encryption on port 587.

Port 25 can be used but it is for server to relay messages to one another. Port 587 is recommended because this way ISPs can block outgoing SMTP on their networks but still allow users to send email to another mail server.


See Configure the Mail Server to Use GMail


Last modified on Nov 2, 2018

Was this helpful?

Provide feedback about this article
Powered by Confluence and Scroll Viewport.