Config of sending emails SEN-9169397

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

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

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

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.

It response a timeout

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

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
Community showcase
Published Mar 05, 2018 in Jira Software

Jack Graves: Real Ale enthusiast with a knack for Jira Software implementation

@Jack Graves [AC] first caught our eye with his incredible breakdown of what, in his opinion, can make or break a Jira software implementation. (Read his thoughts on this thread)! In this follow...

96,842 views 4 14
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