Mail fails to send with 550 5.7.1 Unable to relay error in Jira server

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Problem

Outlook cannot handle outbound mail. One or more of the following appears in the atlassian-jira.log:

1 2 3 javax.mail.SendFailedException: Invalid Addresses; nested exception is: class com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 Unable to relay for jira@google.com
1 com.atlassian.mail.MailException: com.sun.mail.smtp.SMTPSendFailedException: 550 5.7.1 Command not allowed
1 2 3 com.atlassian.mail.MailException: javax.mail.SendFailedException: Invalid Addresses; nested exception is: com.sun.mail.smtp.SMTPAddressFailedException: 554 5.7.1 <user@mail.com>: Relay access denied
1 Caused by: com.sun.mail.smtp.SMTPSendFailedException: 550 5.7.1 Client does not have permissions to send as this sender

ℹ️ There is a known bug tracked in JRASERVER-31238 - Exchange with authentication requires From address matches the authenticated user which has been verified to affect instances where the project level From address is configured to be different from the global SMTP From address in JIRA applications.

Cause

Your Exchange mail server is not configured to relay messages.

Resolution

Exchange 2003:

Open the Exchange System Manager

  1. Go in Administrative Groups -> Administrative group name -> Server -> Server name -> Protocols -> SMTP

  2. Right click on Default SMTP Virtual Server -> properties

  3. Access tab -> Relay button

  4. Select "only the list below" and add the domain and\or IPs of your server

Exchange 2007:

For Exchange 2007, create a second receive connector for external addresses as described in How to Set Up SMTP Relay in Exchange 2007.

Newer versions of Exchange/Office 365:

Please refer to Microsoft's Allow anonymous relay on Exchange servers documentation. Remember to select the version of Exchange from 'Version' drop-down in the top-left of the screen.

Updated on April 8, 2025

Still need help?

The Atlassian Community is here for you.