Message Delivery in Exchange Server fails with an Event ID 3017 & a NDR with a status code of 5.4.5

Author:

Mohammed Athif Khaleel MVP

COMMUNITY SOLUTIONS CONTENT DISCLAIMER

MICROSOFT CORPORATION AND/OR ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY, RELIABILITY, OR ACCURACY OF THE INFORMATION AND RELATED GRAPHICS CONTAINED HEREIN. ALL SUCH INFORMATION AND RELATED GRAPHICS ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT AND/OR ITS RESPECTIVE SUPPLIERS HEREBY DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THIS INFORMATION AND RELATED GRAPHICS, INCLUDING ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, WORKMANLIKE EFFORT, TITLE AND NON-INFRINGEMENT. YOU SPECIFICALLY AGREE THAT IN NO EVENT SHALL MICROSOFT AND/OR ITS SUPPLIERS BE LIABLE FOR ANY DIRECT, INDIRECT, PUNITIVE, INCIDENTAL, SPECIAL, CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF USE, DATA OR PROFITS, ARISING OUT OF OR IN ANY WAY CONNECTED WITH THE USE OF OR INABILITY TO USE THE INFORMATION AND RELATED GRAPHICS CONTAINED HEREIN, WHETHER BASED ON CONTRACT, TORT, NEGLIGENCE, STRICT LIABILITY OR OTHERWISE, EVEN IF MICROSOFT OR ANY OF ITS SUPPLIERS HAS BEEN ADVISED OF THE POSSIBILITY OF DAMAGES.

SUMMARY

Event ID 3017: A non-delivery report with a status code of 5.4.5 was generated for recipient rfc822; user@domain.com.Causes: A looping condition was detected. (The server is configured to route mail back to itself).

SYMPTOMS

Event Type: Error
Event Source: MSExchangeTransport
Event Category: NDR
Event ID: 3017
User:  N/A
 
Description:
A non-delivery report with a status code of 5.3.5 was generated for recipient rfc822;User@domain.com (Message-ID <>).  

Causes: A looping condition was detected. (The server is configured to route mail back to itself). If you have multiple SMTP Virtual Servers configured on your Exchange server, make sure they are defined by a unique incoming port and that the outgoing SMTP port configuration is valid to avoid looping between local virtual servers. 
  
Solution: Check the configuration of the virtual serverÆs connectors for loops and ensure each virtual server is defined by a unique incoming port.
For more information, see Help and Support Center at .
Data:
0000: cf 02 04 c0               Ï..À   

CAUSE

This is due to a loop-back situation where the server is configured to loop back on itself and a non-delivery report with a status code of 5.3.5 was generated for recipient.

RESOLUTION

Check the configuration of the SMTP Virtual Server;
 
- Using Exchange System Manager navigate to the following location;
- Default SMTP Virtual Server Properties
- Delivery Tab - Advanced
- Advanced Delivery - Configure
- Make sure you do not have any Internal and External DNS configured. This may cause a loop-back situation.

Note: External DNS IP's should be configured only on Front End SMTP Virtual Server.
Check the configuration of the Exchange SMTP Connector;
 
- Using Exchange System Manager navigate to the following location;
- Administrative Group - Servers
- Connectors
- SMTP Internet Connector - Properties
- Address space - Make sure the SMTP Address space is Asterisk, "*"
 
Since, SMTP Connector is used to send emails to any domain on Internet, it should always be "*"
 

MORE INFORMATION

For a list of Non Delivery Report Status Codes, check;
Delivery status notifications in Exchange Server and in Small Business Server;

Properties

Article ID: 555418 - Last Review: 14 Feb 2017 - Revision: 1

Microsoft Exchange Server 2003 Enterprise Edition, Microsoft Exchange Server 2003 Standard Edition

Feedback