Config of sending emails SEN-9169397

Fahmi Hachicha July 26, 2017

I configure the sending emails with an account on an smtp server working on standard port 25 without ssl nor tls, the username and password are correct but the system on linux ubintu 16.4TLS is unable to make the test of sending emails from JIRA server.

 

An error has occurred with sending the test email:
com.atlassian.mail.MailException: com.sun.mail.util.MailConnectException: Couldn't connect to host, port: smtp.gnet.tn, 25; timeout 10000;

 

1 answer

0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 26, 2017

There's three most common problems that cause this:

  • The name resolution - your server is unable to resolve smpt.gnet.tn to the actual server address.  Try nslookup on your server to see if it gets an address and that it's the right one
  • A firewall blocking the route between your JIRA server and the mail server
  • No smtp server actually running on that host
Fahmi Hachicha July 26, 2017

The smtp.gnet.tn is associated to the IP Address: 193.95.59.10 and 193.95.57.10, this was reported by the ping command, once it reports the first adress and an other time, it reports the other but the nslookup reports the following

nslookup smtp.gnet.tn
Server: 213.186.33.99
Address: 213.186.33.99#53

Non-authoritative answer:
Name: smtp.gnet.tn
Address: 193.95.59.10

I tried to fill directly the IP adress in JIRA but the response is the same. SocketTimeoutException: connect timed out

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 26, 2017

Ok, that's good, it rules out the first problem.

What does "telnet smtp.gnet.tn 25" return?  It should respond quickly with something recognisable as a prompt to log into a mail server.

Fahmi Hachicha July 26, 2017

It response a timeout

telnet smtp.gnet.tn 25
Trying 193.95.57.10...
telnet: Unable to connect to remote host: Connection timed out

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 26, 2017

Ok, there's either a firewall (unlikely, as I'd expect a flat refusal) or there is something running on the server on port 25 that is not allowing login.  Probably an SMTP server, as 25 is the default port for that, but if it is that, it has been configured not to listen on that port.

Contact the email server administrator.

Suggest an answer

Log in or Sign up to answer