Back to Top

Help & Support

Get instant answers 24/7

Top > Outbound email delivery and tracking service > Outbound troubleshooting > Outbound error: 550 5.7.1 Cannot forward message

Solving smart host delivery issues with distribution groups in Exchange 2019

When the SpamHero outbound/smart host feature is used with Exchange 2019, emails that are forwarded to distribution group email addresses will not be allowed to relay if the required conditions are not met and will be rejected with the following error:

Outbound error: 550 5.7.1 Cannot forward message

As explained in the above article, the use of SRS would be the best solution to this issue, however, at this point it is not known whether SRS is possible on Exchange servers. As a workaround, setting the Return-path header to blank may be a workable solution in some cases. A customer provided the following solution for setting the Return-path blank in Exchange 2019. This solution has not been tested by SpamHero staff.

Forcing a blank Return-path

In the default parameters for Exchange 2019, ReportToManagerEnabled is set to False and ReportToOriginatorEnabled is set to true when a distribution group is created. When both parameters are set to False, the Return-Path field in the header of the message is <> (blank). This can be achieved as follows:

  1. Open Exchange Management Shell and run:
     

    Get-DistributionGroup <email address> | fl *report*
     
  2. If the result is true, set the value to false by running:
     

    Set-DistributionGroup <email address> -ReportToOriginatorEnabled $false

This is a workaround, not a perfect solution

Using a blank Return-path can have negative side effects:

  • The recipient's mail server will not send non-delivery reports.
  • Some spam filters may not accept messages with a blank Return-path.
Last updated June 23, 2023