550 5.7.1 Unable to Relay Mail From Exchange Server

This Knowledge Base article was written specifically for the Atlassian Server platform. Due to the Restricted functions in Atlassian Cloud apps, the contents of this article cannot be applied to Atlassian Cloud applications.

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  JRA-31238 - Getting issue details... STATUS  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 Jul 8, 2016

Was this helpful?

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