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
Accepted answer

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
Community showcase
Published Monday in Jira Software

Implementing Jira in Small Business

Introduction This article will give insight on how a small software development department implemented Atlassian products to enhance and streamline the business process. The privately held company h...

313 views 2 8
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