Share via


Create a Custom DSN Message

 

Applies to: Exchange Server 2010 SP3, Exchange Server 2010 SP2

You can use the Shell to create a customized delivery status notification (DSN) message on a computer running Microsoft Exchange Server 2010 that has the Hub Transport server role or the Edge Transport server role installed.

Looking for other management tasks related to DSNs? Check out Managing Delivery Status Notifications.

Prerequisites

Before you perform these procedures, you must specify the identity of the message and prepare the text that you want to include in the message. For more information about how to specify the identity of a DSN message and how to work with the text of a customized DSN message, including how to format HTML DSN messages, see DSN Message Identity and DSN Message Text.

Use the Shell to create a customized DSN message targeted to internal senders

You need to be assigned permissions before you can perform this procedure. To see what permissions you need, see the "DSNs" entry in the Transport Permissions topic.

Note

You can't use the EMC to create a customized DSN message targeted to internal senders.

Use the New-SystemMessage cmdlet to create a customized DSN. This example creates a customized DSN with the following settings:

  • Customized DSN is created for DSN code 5.1.2.

  • DSN is sent to internal senders only.

  • DSN is customized for the English language.

New-SystemMessage -DSNCode 5.1.2 -Text "The mailbox you tried to send an e-mail message to is disabled and is no longer accepting messages. Please contact the Help Desk at extension 123 for assistance." -Internal $true -Language En

For detailed syntax and parameter information, see New-SystemMessage.

Use the Shell to create a customized DSN message targeted to external senders

You need to be assigned permissions before you can perform this procedure. To see what permissions you need, see the "DSNs" entry in the Transport Permissions topic.

Note

You can't use the EMC to create a customized DSN message targeted to external senders.

Use the New-SystemMessage cmdlet to create a customized DSN. This example creates a customized DSN with the following settings:

  • Customized DSN is created for DSN code 5.1.2.

  • DSN is sent to external senders only.

  • DSN is customized for the English language.

New-SystemMessage -DSNCode 5.1.2 -Text "The mailbox you tried to send an e-mail message to is disabled and is no longer accepting messages. Please contact your System Administrator for more information." -Internal $false -Language En

For detailed syntax and parameter information, see New-SystemMessage.

Use the Shell to create a customized HTML DSN message targeted to internal senders

You need to be assigned permissions before you can perform this procedure. To see what permissions you need, see the "DSNs" entry in the Transport Permissions topic.

Note

You can't use the EMC to create a customized HTML DSN message targeted to internal senders.

Use the New-SystemMessage cmdlet to create an HTML formatted customized DSN. This example creates a customized DSN with the following settings:

  • Customized DSN is created for code 5.1.2.

  • DSN text is HTML formatted, including a hyperlink.

  • DSN is sent to internal senders only.

  • DSN is customized for the English language.

New-SystemMessage -DSNCode 5.1.2 -Text 'The mailbox you tried to send an e-mail message to is <B>disabled</B>. Please visit <A HREF="http://it.contoso.com">Internal Support</A> or contact &quot;InfoSec&quot; for more information.' -Internal $true -Language En

For detailed syntax and parameter information, see New-SystemMessage.

 © 2010 Microsoft Corporation. All rights reserved.