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 vote

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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

356 views 20 10
Join discussion

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