'javax.mail.MessagingException 501 Syntax HELO hostname' Due to Server Host Name


JIRA fails to send an email message stating:

Attempted test email send.  Log shows the following (this is the top  of the output):
com.atlassian.mail.MailException: javax.mail.MessagingException: 501  Syntax: HELO hostname


The server's hostname is not set. JIRA is sending the server's IP address instead.


Resolutions include:

  1. Refer to your system's documentation to set the hostname correctly.
  2. Alternatively, add an entry in /etc/hosts.
  3. If this doesn't work, pass the hostname to JIRA specifically.

See Problems Sending Email from JIRA - EHLO requires domain address for details.

Was this helpful?

Thanks for your feedback!

Why was this unhelpful?

Have a question about this article?

See questions about this article

Powered by Confluence and Scroll Viewport