How to Create a New DSN Message

Microsoft Exchange Server 2007 will reach end of support on April 11, 2017. To stay supported, you will need to upgrade. For more information, see Resources to help you upgrade your Office 2007 servers and clients.

 

Applies to: Exchange Server 2007, Exchange Server 2007 SP1, Exchange Server 2007 SP2, Exchange Server 2007 SP3

This topic explains how to use the Exchange Management Shell to create a new customized delivery status notification (DSN) message in Exchange Server 2007 on a computer that has the Hub Transport server role or the Edge Transport server role installed.

Note

You cannot use the Exchange Management Console to perform the procedures in this topic. Instead, you must use the Exchange Management Shell. For more information about how to use the Exchange Management Shell, see Using the Exchange Management Shell.

Before You Begin

To perform these procedures on a computer that has the Hub Transport server role installed, the account you use must be delegated the following:

  • Exchange Organization Administrator role

To perform the following procedures on a computer that has the Edge Transport server role installed, you must log on by using an account that is a member of the local Administrators group on that computer.

For more information about permissions, delegating roles, and the rights that are required to administer Exchange Server 2007, see Permission Considerations.

Also, 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 the following topics:

Procedure

You can create a new customized non-HTML DSN message by using the following command syntax:

New-SystemMessage -DsnCode <DSN Code> -Text <"DSN message text to display"> -Internal <$True | $False> -Language <Locale Code>

You can create a new customized HTML DSN message that includes a hyperlink by using the following command syntax:

New-SystemMessage -Dsncode <DSN Code> -Text <'HTML DSN message text to display with <A HREF="url">hypertext</A>.'> -Internal <$True | $False> -Language <Locale Code>

To use the Exchange Management Shell to create a new customized DSN message that is targeted to internal senders

  • Run the following command:

    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 message. Please contact the Help Desk at extension 123 for assistance." -Internal $True -Language En
    

To use the Exchange Management Shell to create a new customized DSN message that is targeted to external senders

  • Run the following command:

    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 message. Please contact your Systems Administrator for more information." -Internal $False -Language En
    

To use the Exchange Management Shell to create a new customized HTML DSN message that is targeted to internal senders

  • Run the following command:

    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 More Information

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

For information about how to manage DSN messages on an Exchange server, see the following topics: