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

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published yesterday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

58 views 0 5
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