Getting exception while configuring mail server

Still need help?

The Atlassian Community is here for you.

Ask the community


While configuring the SMTP server, an exception is thrown by your JIRA applications, and the following appears in the atlassian-jira.log:

An error has occurred with sending the test email:
com.atlassian.mail.MailException: javax.mail.MessagingException: Could not connect to SMTP host: server02.example.local, port: 25;
  nested exception is: No route to host
	at com.atlassian.mail.server.impl.SMTPMailServerImpl.send(
	at com.atlassian.jira.web.action.admin.mail.SendTestMail.doExecute(
	at webwork.action.ActionSupport.execute(


The JIRA application server is not able to reach the Mail server with the given hostname and port.


Please report this problem to the network administrator with regards to this problem. The following points might help troubleshoot the problem better :

  1. From your JIRA application server, can you ping the <hostname>?

  2. Check the output of the command telnet <hostname> 25
  3. Is the hostname correctly getting resolved in the DNS? Can you try using the IP instead?
  4. Does the SMTP server require authentication?
  5. Is there a firewall that blocks port 25?
  6. Is the internet/network down?
  7. Is there a proxy setting?

Last modified on Mar 30, 2016

Was this helpful?

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