550 5.7.1 Unable to Relay Mail From Exchange Server

Cross Product Knowledge

On this page

Still need help?

The Atlassian Community is here for you.

Ask the community

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

Note that this knowledge base article was created for the Data Center version of the product. Data Center knowledge base articles 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 is not processing outbound mail from Atlassian applications. One or more of the following appears in the logs

javax.mail.SendFailedException: Invalid Addresses;
  nested exception is:
	class com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 Unable to relay for atlassian@google.com
com.atlassian.mail.MailException: com.sun.mail.smtp.SMTPSendFailedException: 550 5.7.1 Command not allowed
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
Caused by: com.sun.mail.smtp.SMTPSendFailedException: 550 5.7.1 Client does not have permissions to send as this sender

(info) There is a bug in JIRA tracked as part of 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.

Diagnosis

Environment

  • Using Exchange for mail with Atlassian applications

Cause

The Exchange mail server is configured to not allow users to send mail to external domains or relay messages.

Resolution

Refer to the appropriate section for either Exchange 2003 or 2007:

Click here to expand for Exchange 2003...

Exchange 2003

  1. Open the Exchange System Manager
  2. Go in Administrative Groups -> Administrative group name -> Server -> Server name -> Protocols -> SMTP
  3. Right click on Default SMTP Virtual Server -> properties
  4. Access tab -> Relay button
  5. Select "only the list bellow" and add your domain and\or IPs you do want to allow the relay.
  6. Check the "Allow all computers which successfully authenticate to relay, regardless of the list above" checkbox.
tip/resting Created with Sketch.

Check Microsoft's forums as well.

Click here to expand for Exchange 2007...

Exchange 2007

tip/resting Created with Sketch.

Check Microsoft's Exchange Archive as well.

Last modified on Feb 18, 2025

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.