550 5.7.1 Unable to Relay Mail From Exchange Server
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
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: