Working with custom DSN messages

Delivery Status Notification (DSN) messages are system messages generated by the transport service that inform the sender of a message about its status. When a message cannot be delivered to a recipient, Exchange will respond to the sender with a message that is associated with a status message. Sometimes, these status messages may not be detailed enough for your liking. In those cases, you can create new messages associated with the DSN code to provide more details to the sender. This is something that has to be done from the Exchange Management Shell.

How to do it...

You can use the New-SystemMessage cmdlet to create a custom DSN message:

New-SystemMessage -DSNCode 5.1.1 `
-Text "The mailbox you tried to send an ...

Get Microsoft Exchange Server 2013 PowerShell Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.