Getting exception java.net.NoRouteToHostException while configuring mail server

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

症状

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:
	java.net.NoRouteToHostException: No route to host
	at com.atlassian.mail.server.impl.SMTPMailServerImpl.send(SMTPMailServerImpl.java:169)
	at com.atlassian.jira.web.action.admin.mail.SendTestMail.doExecute(SendTestMail.java:93)
	at webwork.action.ActionSupport.execute(ActionSupport.java:165)

原因

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 nc -vnz -w 1 <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 10, 2024

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.