Problem when trying to send emails from Jira

Even when everything outgoing server was configured correctly and is currently registered and active, no email are sent from Jira.

When testing, we get this error:

com.sun.mail.smtp.SMTPAddressFailedException: 504 5.5.2 <localhost>: Helo command rejected: need fully-qualified hostname

But the hostname is correctly configured like n1.domain.com.

We cannot find the place from within Jira where this parameter is configured.

Just to clarify, Jira was installed before the server configuration was finished, so it seems like Java does not recover the correct hostname.

2 answers

1 accepted

This widget could not be displayed.

If you ping/nslookup n1.domain.comdoes it resolve to the correct email address?

Is the mail server on that set up correctly with it's correct FQDN, or (like the one I messed up yesterday) does it have a similar but incorrect simple host name or one that does not actually match the FQDN? Try "hostname -f" to see what the server thinks it is called.

This widget could not be displayed.

Hostname -f returns localhost instead. You are right. We have fixed /etc/hosts file and placing FQDN server name in first place.

It seems it is an issue on Cent OS.

Thanks a lot Nic.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

193 views 1 3
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