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

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

1 vote

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.

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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Apr 17, 2018 in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

767 views 2 19
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