I want to configure smtp mail server in confluence .

When i fill detail inside the mail server, I am getting below error.


An error has occurred with sending the test email:
com.atlassian.mail.MailException: javax.mail.MessagingException: Could not connect to SMTP host:, port: 25;
nested exception is:
java.net.SocketException: Network is unreachable: connect
at com.atlassian.confluence.jmx.JmxSMTPMailServer.doSendWithMessageIdSupport(JmxSMTPMailServer.java:143)
at com.atlassian.confluence.jmx.JmxSMTPMailServer.send(JmxSMTPMailServer.java:88)
at com.atlassian.confluence.admin.actions.mail.SendTestEmailAction.execute(SendTestEmailAction.java:60)

1 answer

0 votes

The message is pretty clear - your server can't reach the network.

It's nothing to do with Confluence at this point - you need to fix your network settings so that it can reach the email server.

I checked all the setting and is working properly through cmd. telnet is working fine and mail is going through cmd.

Then you have something blocking just Confluence's outgoing network connection

@Nic Brough [Adaptavist] can you help me on this ? I am unable to find the solution.


I really can't tell you any more - there is something wrong with the route between the Confluence server and the email server.  It's not a Confluence issue, the error says "Network is unreachable".  You need to fix that, and I can't do network diagnosis for you.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 12, 2019 in Confluence

Confluence Admin Certification now $150 for Community Members

More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...

276 views 2 10
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you