Exchange Server 中的 Dsn 和 Ndr 的过程Procedures for DSNs and NDRs in Exchange Server

与早期版本的 Exchange 一样,Exchange Server 使用传递状态通知(也称为 Dsn、未送达报告、Ndr 或退回邮件)来向邮件发件人提供传递状态和失败通知邮件。Like previous versions of Exchange, Exchange Server uses delivery status notifications (also known as DSNs, non-delivery reports, NDRs, or bounce messages) to provide delivery status and failure notification messages to message senders. 有关 Ndr 的详细信息,请参阅Exchange Server 中的 dsn 和 ndrFor more information about NDRs, see DSNs and NDRs in Exchange Server.

您可以使用 Exchange 中包含的默认 Ndr,也可以使用 Exchange 命令行管理程序来创建带有自定义文本的 Ndr,以满足组织的需求。You can use the default NDRs that are included in Exchange, or you can use the Exchange Management Shell to create NDRs with custom text to meet the needs of your organization. 自定义 NDR 文本将替换给定的增强状态代码或配额事件的默认文本。The custom NDR text replaces the default text for a given enhanced status code or quota event. 如果删除自定义 NDR,则使用默认的 NDR 文本(无法完全删除默认 NDR)。If you remove the custom NDR, the default NDR text is used (you can't completely remove a default NDR). 您还可以禁用自定义 Ndr 以保留它们,但不使用它们(使用默认的 NDR 文本)。You can also disable custom NDRs to preserve them, but not use them (the default NDR text is used).

开始前,需要知道什么?What do you need to know before you begin?

  • 估计完成每个步骤的时间:少于10分钟。Estimated time to complete each procedure: less than 10 minutes.

  • 本主题的主要重点是自定义 NDR 文本,用于替换 Exchange 使用的默认 Ndr 的文本。The main focus of this topic is custom NDR text that replaces the text of default NDRs that are used by Exchange. 您可以为其他增强状态代码值创建新的 Ndr (例如,5.999.999),但如果 Exchange 未使用增强状态代码,则不会有任何人看到这些 Ndr。You can create new NDRs for other enhanced status code values (for example, 5.999.999), but no one will see these NDRs if the enhanced status code isn't used by Exchange. 您可以使用自定义增强状态代码的范围作为邮件流规则的操作的一部分(也称为传输规则)。You can use a range of custom enhanced status codes as part of an action for a mail flow rule (also known as a transport rule). 有关详细信息,请参阅Exchange Server 中的邮件流规则操作For more information, see Mail flow rule actions in Exchange Server.

  • 本主题中的过程在邮箱服务器和边缘传输服务器上可用。The procedures in this topic are available on Mailbox servers and Edge Transport servers.

  • 对于本主题中的大部分过程,不能使用 Exchange 管理中心(EAC)。You can't use the Exchange admin center (EAC) for most of the procedures in this topic. 需要使用 Exchange 命令行管理程序。You need to use the Exchange Management Shell. 若要了解如何在本地 Exchange 组织中打开 Exchange 命令行管理程序,请参阅 Open the Exchange Management ShellTo learn how to open the Exchange Management Shell in your on-premises Exchange organization, see Open the Exchange Management Shell.

  • 您必须先获得权限,然后才能执行此过程或多个过程。若要查看所需的权限,请参阅 邮件流权限主题中的"DNS"条目。You need to be assigned permissions before you can perform this procedure or procedures. To see what permissions you need, see the "DSNs" entry in the Mail flow permissions topic.

  • 若要了解本主题中的过程可能适用的键盘快捷键,请参阅 Exchange 管理中心内的键盘快捷键For information about keyboard shortcuts that may apply to the procedures in this topic, see Keyboard shortcuts in the Exchange admin center.

提示

遇到问题?请访问以下 Exchange 论坛寻求帮助:Exchange ServerExchange OnlineExchange Online ProtectionHaving problems? Ask for help in the Exchange forums. Visit the forums at: Exchange Server, Exchange Online, or Exchange Online Protection.

使用 Exchange 命令行管理程序查看所有默认 NdrUse the Exchange Management Shell to view all default NDRs

若要将所有语言的所有默认 Ndr 的列表输出到名为 C:\My Documents\Default 的 HTML 文件中。 HTML,请运行以下命令:To output the list of all default NDRs in all languages to an HTML file named C:\My Documents\Default NDRs.html, run this command:

Get-SystemMessage -Original | Select-Object -Property Identity,DsnCode,Language,Text | ConvertTo-Html | Set-Content -Path "C:\My Documents\Default NDRs.html"

注意:应将列表输出到文件中,因为列表很长,如果未安装所需的语言包,则会收到错误。Note: You should output the list to a file, because the list is very long, and you'll receive errors if you don't have the required language packs installed.

有关详细的语法和参数信息,请参阅Get-SystemMessageFor detailed syntax and parameter information, see Get-SystemMessage.

使用 Exchange 命令行管理程序查看自定义 NdrUse the Exchange Management Shell to view custom NDRs

若要查看组织中所有自定义 Ndr 的摘要列表,请运行以下命令:To view a summary list of all custom NDRs in your organization, run this command:

Get-SystemMessage

注意:默认情况下没有自定义 ndr,因此此命令不会返回任何结果。Note: By default, there are no custom NDRs, so this command returns no results.

若要查看自定义 NDR 的详细信息,请使用以下语法:To view detailed information for a custom NDR, use this syntax:

Get-SystemMessage -Identity <NDRIdentity>

有关可用_ <的 NDRIdentity> _值的说明,请参阅本主题中的 " ndr 的标识值" 部分。For an explanation of the available <NDRIdentity> values, see the Identity values for NDRs section in this topic.

本示例返回以英语形式发送给内部发件人的增强状态代码5.1.2 的自定义 NDR 的详细信息。This example returns detailed information for the custom NDR for the enhanced status code 5.1.2 that's sent to internal senders in English. 如果没有针对此语言、受众和增强状态代码组合的自定义 NDR,则会收到错误消息。If there's no custom NDR for this combination of language, audience, and enhanced status code, you'll receive an error.

Get-SystemMessage En\Internal\5.1.2 | Format-List

本示例为邮箱上的ProhibitSendReceive配额返回自定义英语 NDR 的详细信息。This example returns detailed information for the custom English NDR for the ProhibitSendReceive quota on mailboxes. 如果这种语言和配额组合没有自定义 NDR,则会收到错误消息。If there's no custom NDR for this combination of language and quota, you'll receive an error.

Get-SystemMessage En\ProhibitSendReceiveMailBox | Format-List

有关详细的语法和参数信息,请参阅Get-SystemMessageFor detailed syntax and parameter information, see Get-SystemMessage.

创建自定义 NdrCreate custom NDRs

使用 Exchange 命令行管理程序为增强状态代码创建自定义 NdrUse the Exchange Management Shell to create custom NDRs for enhanced status codes

若要为增强的状态代码创建自定义 NDR,请使用以下语法:To create a custom NDR for an enhanced status code, use this syntax:

New-SystemMessage -Internal <$true | $false> -Language <Locale> -DSNCode <x.y.z> -Text "<NDR text>"

值为:The values are:

  • Internal:控制是否向内部或外部发件人发送 NDR。Internal: Controls whether the NDR is sent to internal or external senders. 对于内部发件人,使用$true值。For internal senders, use the value $true. 对于外部发件人,使用$false值。For external senders, use the value $false. 例如,在内部发件人的自定义文本中,可以包含在外部发件人的 Ndr 中不希望包含的 "技术支持" 联系人信息。For example, in the custom text for internal senders, you can include help desk contact information that you wouldn't want to include in NDRs for external senders.

  • 语言:有关可用语言的列表,请参阅本主题中的 " Ndr 的受支持语言" 部分。Language: For the list of available languages, see the Supported languages for NDRs section in this topic.

  • DSNCode:增强的状态代码。DSNCode: The enhanced status code. 有效值为4。Valid values are 4. xx. _y_或5。y or 5. xx. y ,其中_x_和_y_是一到三个数字。y where x and y are one to three digit numbers.

  • 文本:您可以使用纯文本或 HTML 格式。Text: You can use plain text or HTML formatting. 有关详细信息,请参阅本主题中的HTML 标记和 ndr部分中的特殊字符部分。For more information, see the HTML tags and special characters in NDRs section in this topic.

本示例为以英语形式发送给外部发件人的增强状态代码5.1.2 创建自定义纯文本 NDR。This example creates a custom plain text NDR for the enhanced status code 5.1.2 that's sent to external senders in English.

New-SystemMessage -Internal $false -Language En -DSNCode 5.1.2 -Text "You tried to send a message to a disabled mailbox that's no longer accepting messages. Please contact your System Administrator for more information."

本示例为以英语形式发送给内部发件人的增强状态代码5.1.2 创建自定义 HTML NDR。This example creates a custom HTML NDR for the enhanced status code 5.1.2 that's sent to internal senders in English.

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

有关语法和参数的详细信息,请参阅get-systemmessageFor detailed syntax and parameter information, see New-SystemMessage.

使用 Exchange 命令行管理程序为配额创建自定义 NdrUse the Exchange Management Shell to create custom NDRs for quotas

若要为配额创建自定义 NDR,请使用以下语法:To create a custom NDR for quotas, use this syntax:

New-SystemMessage -Language <Locale> -QuotaMessageType <Quota> -Text "<NDR text>"

值为:The values are:

本示例为邮箱上的ProhibitSendReceive配额创建自定义英语纯文本 NDR。This example creates a custom English plain text NDR for the ProhibitSendReceive quota on mailboxes.

New-SystemMessage -Language En -QuotaMessageType ProhibitSendReceiveMailBox -Text "Your mailbox is full, and can't send or receive messages. Delete any unwanted large messages (messages with attachments) and empty your Deleted Items folder"

有关语法和参数的详细信息,请参阅get-systemmessageFor detailed syntax and parameter information, see New-SystemMessage.

如何判断是否生效?How do you know this worked?

若要验证是否已成功创建自定义 NDR,请执行以下步骤:To verify that you have successfully created a custom NDR, do these steps:

  • 运行以下命令并验证属性值:Run the following command and verify the property values:

    Get-SystemMessage | Format-List Identity,DsnCode,Language,Text
    
  • 发送将生成您配置的自定义 NDR 的测试邮件。Send a test message that will generate the custom NDR that you configured.

使用 Exchange 命令行管理程序修改自定义 NdrUse the Exchange Management Shell to modify custom NDRs

若要修改自定义 Ndr,请使用以下语法:To modify custom NDRs, use this syntax:

Set-SystemMessage -Identity <NDRIdentity> [-Text "<NDR text>"] [-Original]

有关可用_ <的 NDRIdentity> 值的说明,请参阅本主题中的 " ndr 的标识值" 部分。For an explanation of the available <NDRIdentity> values, see the Identity values for NDRs section in this topic. 有关 <ndr 文本> _值的说明,请参阅本主题中的 " ndr 中的 HTML 标记和特殊字符" 部分。For an explanation of the <NDR text> values, see the HTML tags and special characters in NDRs section in this topic.

本示例将已发送给内部发件人的增强状态代码5.1.2 的自定义 NDR 中的文本更改为英语。This example changes the text in the custom NDR for the enhanced status code 5.1.2 that's sent to internal senders in English.

Set-SystemMessage -Identity En\Internal\5.1.2 -Text "The mailbox you tried to send an email message to is disabled and is no longer accepting messages. Please contact the Help Desk at extension 123 for assistance."

本示例为邮箱上的ProhibitSendReceive配额更改自定义英语 NDR 中的文本。This example changes the text in the custom English NDR for the ProhibitSendReceive quota on mailboxes.

Set-SystemMessage -Identity En\ProhibitSendReceiveMailBox -Text "Your mailbox is full. Delete large messages and empty your Deleted Items folder."

本示例禁用指定的自定义 NDR。This example disables the specified custom NDR. 自定义 NDR 将保留,并显示在get-systemmessage的结果中,但改为使用默认 NDR。The custom NDR is preserved, and appears in the results of Get-SystemMessage, but the default NDR is used instead.

Set-SystemMessage -Identity En\Internal\5.1.2 -Original

注意:如果没有相应的默认 NDR,则当您使用_原始_开关时,将收到错误消息。Note: If there's no corresponding default NDR, you receive an error when you use the Original switch.

有关详细的语法和参数信息,请参阅Set-SystemMessageFor detailed syntax and parameter information, see Set-SystemMessage.

如何判断是否生效?How do you know this worked?

若要验证是否已成功修改自定义 NDR,请_ <将> NDRIdentity_替换为适当的值,并运行以下命令以验证属性值:To verify that you have successfully modified a custom NDR, replace <NDRIdentity> with the appropriate value, and run this command to verify the property values:

Get-SystemMessage -Identity <NDRIdentity> | Format-List

使用 Exchange 命令行管理程序删除自定义 NdrUse the Exchange Management Shell to remove custom NDRs

若要删除自定义 NDR,请使用以下语法:To remove a custom NDR, use this syntax:

Remove-SystemMessage -Identity <NDRIdentity>

有关可用_ <的 NDRIdentity> _值的说明,请参阅本主题中的 " ndr 的标识值" 部分。For an explanation of the available <NDRIdentity> values, see the Identity values for NDRs section in this topic.

本示例将删除以英语形式发送给内部发件人的增强状态代码5.1.2 的自定义 NDR。This example removes the custom NDR for the enhanced status code 5.1.2 that's sent to internal senders in English.

Remove-SystemMessage -Identity En\Internal\5.1.2

本示例将删除邮箱上的ProhibitSendReceive配额的自定义英语 NDR。This example removes the custom English NDR for the ProhibitSendReceive quota on mailboxes.

Remove-SystemMessage -Identity En\ProhibitSendReceiveMailBox

有关语法和参数的详细信息,请参阅 Remove-SystemMessageFor detailed syntax and parameter information, see Remove-SystemMessage.

如何判断是否生效?How do you know this worked?

若要验证是否已成功删除自定义 NDR,请运行以下命令来验证是否未列出自定义 NDR:To verify that you have successfully removed a custom NDR, run this command to verify the custom NDR isn't listed:

Get-SystemMessage

将 Ndr 副本转发到 Exchange 收件人邮箱Forward copies of NDRs to the Exchange recipient mailbox

您可以将您的 Exchange 组织配置为将 Ndr 副本发送给 Exchange 收件人。You can configure your Exchange organization to send copies of NDRs to the Exchange recipient. 但是,默认情况下,不会向 Exchange 收件人分配邮箱,因此发送到 Exchange 收件人的任何邮件都将被丢弃。However, by default, no mailbox is assigned to the Exchange recipient, so any messages that are sent to the Exchange recipient are discarded. 若要将 Ndr 副本发送到 Exchange 收件人邮箱,您需要执行以下操作:To send copies of NDRs to the Exchange recipient mailbox, you need to:

  1. 将邮箱分配给 Exchange 收件人。Assign a mailbox to the Exchange recipient.

  2. 指定要监视的增强状态代码(而非配额)。Specify the enhanced status codes that you want to monitor (not quotas).

步骤1:使用 Exchange 命令行管理程序将邮箱分配给 Exchange 收件人Step 1: Use the Exchange Management Shell to assign a mailbox to the Exchange recipient

注意:由于邮件量过大,我们建议对 Exchange 收件人使用专用邮箱。Note: Due to the high volume of messages, we recommend using a dedicated mailbox for the Exchange recipient. 有关创建邮箱的详细信息,请参阅在 exchange 管理中心创建共享邮箱在 Exchange Server 中创建用户邮箱For more information about creating mailboxes, see Create shared mailboxes in the Exchange admin center and Create user mailboxes in Exchange Server.

若要将邮箱分配给 Exchange 收件人,请使用以下语法:To assign a mailbox to the Exchange recipient, use this syntax:

Set-OrganizationConfig -MicrosoftExchangeRecipientReplyRecipient <MailboxIdentity>

本示例将名为 "Contoso System 邮箱" 的现有邮箱分配给 Exchange 收件人。This example assigns the existing mailbox named "Contoso System Mailbox" to the Exchange recipient.

Set-OrganizationConfig -MicrosoftExchangeRecipientReplyRecipient "Contoso System Mailbox"

步骤2:指定要监视的增强状态代码Step 2: Specify the enhanced status codes that you want to monitor

  • 您可以使用 EAC 或 Exchange 命令行管理程序。You can use the EAC or the Exchange Management Shell.

  • 默认情况下,即使没有指定增强的状态代码,这些代码的 Ndr 也会自动发送到 Exchange 收件人:By default, even though there are no enhanced status codes specified, NDRs for these codes are automatically sent to the Exchange recipient:

    • 5.1.4

    • 5.2.0

    • 5.2.4

    • 5.4.4

    • 5.4.6

    • 5.4.8

  • 您只能指定增强的状态代码。You can only specify enhanced status codes. 您不能指定配额。You can't specify quotas.

使用 EAC 指定要监视的增强状态代码Use the EAC to specify the enhanced status codes to monitor

有关 EAC 的详细信息,请参阅 exchange Server 中的 exchange 管理中心For more information about the EAC, see Exchange admin center in Exchange Server.

  1. 在 EAC 中,转到 "邮件流 > " "接收连接器"。In the EAC, go to Mail flow > Receive connectors.

  2. 单击 "更多选项更多选项图标)",然后选择 "组织传输设置"。Click More options (More Options icon) and select Organization transport settings.

  3. 在打开的 "组织传输设置" 窗口中,单击 "传递" 选项卡。在 " DSN 代码" 部分,执行以下一个或多个步骤:In the Organization transport settings window that opens, click the Delivery tab. In the DSN codes section, do one or more of these steps:

    • 若要添加条目,请键入要监视的增强状态代码(4。To add entries, type the enhanced status code that you want to monitor (4. y z> <<y.z> or 5. _ <a-z>),然后单击 "添加" (添加图标)。<y.z>_), and then click Add (Add icon). 根据需要重复此步骤多次。Repeat this step as many times as you need to.

    • 若要修改现有条目,请将其选中,然后单击"编辑" (编辑图标),然后将其以内联方式修改。To modify an existing entry, select it click Edit (Edit icon), and then modify it inline.

    • 若要删除现有条目,请将其选中, **** 然后单击"删除" (删除图标)。To remove an existing entry, select it and then click Remove (Remove icon).

    完成后,单击“保存”****。When you're finished, click Save.

使用 Exchange 命令行管理程序指定要监视的增强状态代码Use the Exchange Management Shell to specify the enhanced status codes to monitor

若要将增强的状态代码添加到监视器中,以替换任何现有值,请使用以下语法:To add enhanced status codes to monitor, which replaces any existing values, use this syntax:

Set-TransportConfig -GenerateCopyOfDSNFor <x.y.z>,<x.y.z>...

本示例将 Exchange 组织配置为将增强状态代码值5.7.1、5.7.2 和5.7.3 的所有 Ndr 转发给 Exchange 收件人。This example configures the Exchange organization to forward all NDRs for the enhanced status code values 5.7.1, 5.7.2, and 5.7.3 to the Exchange recipient.

Set-TransportConfig -GenerateCopyOfDSNFor 5.7.1,5.7.2,5.7.3

若要在不修改任何现有值的情况下添加或删除条目,请使用以下语法:To add or remove entries without modifying any existing values, use this syntax:

Set-TransportConfig -GenerateCopyOfDSNFor @{Add="<x.y.z>","<x.y.z>"...; Remove="<x.y.z>","<x.y.z>"...}

本示例添加增强的状态代码5.7.5,并从已转发给 Exchange 收件人的现有 Ndr 列表中删除5.7.1。This example adds the enhanced status code 5.7.5 and removes 5.7.1 from the existing list of NDRs that are forwarded to the Exchange recipient.

Set-TransportConfig -GenerateCopyOfDSNFor @{Add="5.7.5"; Remove="5.7.1"}

如何判断是否生效?How do you know this worked?

若要验证是否已成功配置要发送到 Exchange 收件人邮箱的 Ndr 副本,请To verify that you've successfully configured copies of NDRs to be sent to the Exchange recipient mailbox,

  • 运行以下命令并验证属性值:Run the following command and verify the property values:

    Get-TransportConfig | Format-List GenerateCopyOfDSNFor
    
  • 监视 Exchange 收件人邮箱,以查看是否在那里传递包含指定增强状态代码的 Ndr。Monitor the Exchange recipient mailbox to see if NDRs that contain the specified enhanced status codes are delivered there.

Ndr 的标识值Identity values for NDRs

NDR 的标识使用以下格式之一:The identity of an NDR uses one of these formats:

  • 增强状态代码的 ndr: _ <Language> _ \<Internal |>\ 外部<DSNcode>NDRs for enhanced status codes: <Language>\<Internal | External>\ <DSNcode>. 例如, En\Internal\5.1.2Ja\External\5.1.2For example, En\Internal\5.1.2 or Ja\External\5.1.2.

    • DSNcode:有效值为4。 ** <>**<DSNcode>: Valid values are 4. xx. _y_或5。y or 5. xx. y ,其中_x_和_y_是一到三个数字。y where x and y are one to three digit numbers. 若要生成 Exchange 使用的增强状态代码的列表,请参阅本主题前面的使用 Exchange 命令行管理程序查看所有默认 ndr部分。To generate a list of the enhanced status codes that are used by Exchange, see the Use the Exchange Management Shell to view all default NDRs section earlier in this topic.

    • 内部或外部:您可以将不同的文本用于内部或外部发件人的 ndr 中。Internal or External: You can use different text in NDRs for internal or external senders.

    • 语言:有关受支持的语言的列表,请参阅本主题中的支持 ndr 的语言部分。 ** <>**<Language>: For the list of supported languages, see the Supported languages for NDRs section in this topic.

  • 针对配额的 ndr: _ <>Language_\ <QuotaMessageType>NDRs for quotas: <Language>\ <QuotaMessageType>. 例如,En\ProhibitSendReceiveMailBoxFor example, En\ProhibitSendReceiveMailBox.

    • 语言:有关受支持的语言的列表,请参阅本主题中的支持 ndr 的语言部分。 ** <>**<Language>: For the list of supported languages, see the Supported languages for NDRs section in this topic.

    • QuotaMessageType:有效值为: ** <>**<QuotaMessageType>: Valid values are:

      可以使用 and 比较运算符指定多个条件。不是以整数表示的属性值必须使用引号 (") 括住。Mailbox size quotas:

      • ProhibitSendReceiveMailBox:邮箱超出了其ProhibitSendReceiveQuota限制。ProhibitSendReceiveMailBox: A mailbox exceeds its ProhibitSendReceiveQuota limit.

      • ProhibitSendMailbox:邮箱超出了其ProhibitSendQuota限制。ProhibitSendMailbox: A mailbox exceeds its ProhibitSendQuota limit.

      • WarningMailbox:邮箱在配置IssueWarningQuota ProhibitSendQuotaProhibitSendReceiveQuota限制时超出其限制。WarningMailbox: A mailbox exceeds its IssueWarningQuota limit when it has a ProhibitSendQuota or ProhibitSendReceiveQuota limit configured.

      • WarningMailboxUnlimitedSize:当邮箱未配置IssueWarningQuota ProhibitSendQuotaProhibitSendReceiveQuota限制时,邮箱超出其限制。WarningMailboxUnlimitedSize: A mailbox exceeds its IssueWarningQuota limit when it doesn't have a ProhibitSendQuota or ProhibitSendReceiveQuota limit configured.

      WarningMailboxUnlimitedSize:邮箱超出了它的 IssueWarningQuota 限制(若未配置 ProhibitSendQuota 或 ProhibitSendReceiveQuota 限制的话)。Public folder size quotas:

      • ProhibitPostPublicFolder:公用文件夹超出了其ProhibitPostQuota限制。ProhibitPostPublicFolder: A public folder exceeds its ProhibitPostQuota limit.

      • WarningPublicFolder:公用文件夹在配置IssueWarningQuota ProhibitPostQuota限制时超出其限制。WarningPublicFolder: A public folder exceeds its IssueWarningQuota limit when it has a ProhibitPostQuota limit configured.

      • WarningPublicFolderUnlimitedSize:公用文件夹超出了配置IssueWarningQuota ProhibitPostQuota限制时的限制。WarningPublicFolderUnlimitedSize: A public folder exceeds its IssueWarningQuota limit when it doesn't have a ProhibitPostQuota limit configured.

      WarningPublicFolderUnlimitedSize:公用文件夹超出了它的 IssueWarningQuota 限制(若未配置 ProhibitPostQuota 限制的话)。Maximum number of messages in a mailbox folder:

      • ProhibitReceiveMailboxMessagesPerFolderCount:邮箱超出了其MailboxMessagesPerFolderCountReceiveQuota限制。ProhibitReceiveMailboxMessagesPerFolderCount: A mailbox exceeds its MailboxMessagesPerFolderCountReceiveQuota limit.

      • WarningMailboxMessagesPerFolderCount:邮箱在配置MailboxMessagesPerFolderCountWarningQuota ailboxMessagesPerFolderCountReceiveQuota限制时超出其限制。WarningMailboxMessagesPerFolderCount: A mailbox exceeds its MailboxMessagesPerFolderCountWarningQuota limit when it has a ailboxMessagesPerFolderCountReceiveQuota limit configured.

      • WarningMailboxMessagesPerFolderUnlimitedCount:当邮箱未配置MailboxMessagesPerFolderCountWarningQuota MailboxMessagesPerFolderCountReceiveQuota限制时,邮箱超出其限制。WarningMailboxMessagesPerFolderUnlimitedCount: A mailbox exceeds its MailboxMessagesPerFolderCountWarningQuota limit when it doesn't have a MailboxMessagesPerFolderCountReceiveQuota limit configured.

      WarningMailboxMessagesPerFolderUnlimitedCount:邮箱超出了它的 MailboxMessagesPerFolderCountWarningQuota 限制(若未配置 MailboxMessagesPerFolderCountReceiveQuota 限制的话)。Maximum number of subfolders in a mailbox folder:

      • ProhibitReceiveFolderHierarchyChildrenCountCount:邮箱超出了其FolderHierarchyChildrenCountReceiveQuota限制。ProhibitReceiveFolderHierarchyChildrenCountCount: A mailbox exceeds its FolderHierarchyChildrenCountReceiveQuota limit.

      • WarningFolderHierarchyChildrenCount:邮箱在配置FolderHierarchyChildrenCountWarningQuota FolderHierarchyChildrenCountReceiveQuota限制时超出其限制。WarningFolderHierarchyChildrenCount: A mailbox exceeds its FolderHierarchyChildrenCountWarningQuota limit when it has a FolderHierarchyChildrenCountReceiveQuota limit configured.

      • WarningFolderHierarchyChildrenUnlimitedCount:当邮箱未配置FolderHierarchyChildrenCountWarningQuota FolderHierarchyChildrenCountReceiveQuota限制时,邮箱超出其限制。WarningFolderHierarchyChildrenUnlimitedCount: A mailbox exceeds its FolderHierarchyChildrenCountWarningQuota limit when it doesn't have a FolderHierarchyChildrenCountReceiveQuota limit configured.

      • ProhibitReceiveFoldersCount:邮箱超出了其FoldersCountReceiveQuota限制。ProhibitReceiveFoldersCount: A mailbox exceeds its FoldersCountReceiveQuota limit.

      • WarningFoldersCount:邮箱在配置FoldersCountWarningQuota FoldersCountReceiveQuota限制时超出其限制。WarningFoldersCount: A mailbox exceeds its FoldersCountWarningQuota limit when it has a FoldersCountReceiveQuota limit configured.

      • WarningFoldersCountUnlimited邮箱在未配置FoldersCountWarningQuota FoldersCountReceiveQuota限制时超出其限制。WarningFoldersCountUnlimited A mailbox exceeds its FoldersCountWarningQuota limit when it doesn't have a FoldersCountReceiveQuota limit configured.

      WarningFoldersCountUnlimited:邮箱超出了它的 FoldersCountWarningQuota 限制(若未配置 FoldersCountReceiveQuota 限制的话)。Maximum number of levels (depth) in a mailbox folder:

      • ProhibitReceiveFolderHierarchyDepth:邮箱超出了其FolderHierarchyDepthWarningQuota限制。ProhibitReceiveFolderHierarchyDepth: A mailbox exceeds its FolderHierarchyDepthWarningQuota limit.

      • WarningFolderHierarchyDepth:邮箱在配置FolderHierarchyDepthWarningQuota FolderHierarchyDepthReceiveQuota限制时超出其限制。WarningFolderHierarchyDepth: A mailbox exceeds its FolderHierarchyDepthWarningQuota limit when it has a FolderHierarchyDepthReceiveQuota limit configured.

      • WarningFolderHierarchyDepthUnlimited::当邮箱未配置FolderHierarchyDepthWarningQuota FolderHierarchyDepthReceiveQuota限制时,邮箱超出其限制。WarningFolderHierarchyDepthUnlimited:: A mailbox exceeds its FolderHierarchyDepthWarningQuota limit when it doesn't have a FolderHierarchyDepthReceiveQuota limit configured.

受支持的 Ndr 语言Supported languages for NDRs

此表列出了可以在自定义 Ndr 中使用的代码支持的语言。This table lists the supported language that codes you can use in custom NDRs.

语言代码Language code 语言Language
afaf 南非荷兰语Afrikaans
am-ETam-ET 阿姆哈拉语(埃塞俄比亚)Amharic (Ethiopia)
arar 阿拉伯语Arabic
as-INas-IN 阿萨姆语(印度)Assamese (India)
bgbg 保加利亚语Bulgarian
bn-BDbn-BD 孟加拉语(孟加拉国)Bengali (Bangladesh)
bn-INbn-IN 孟加拉语(印度)Bengali (India)
bs-Cyrl-BAbs-Cyrl-BA 波斯尼亚语(西里尔文,波斯尼亚和黑塞哥维那)Bosnian (Cyrillic, Bosnia and Herzegovina)
bs-Cyrl-BAbs-Latn-BA 波斯尼亚语(拉丁语,波斯尼亚和黑塞哥维那)Bosnian (Latin, Bosnia and Herzegovina)
caca 加泰罗尼亚语Catalan
cscs 捷克语Czech
cy-GBcy-GB 威尔士语(英国)Welsh (Great Britain)
dada 丹麦语Danish
dede 德语German
elel 希腊语Greek
enen 英语English
eses 西班牙语Spanish
etet 爱沙尼亚语Estonian
eueu 巴斯克语Basque
fafa 波斯语Persian
fifi 芬兰语Finnish
fil-PHfil-PH 菲律宾语(菲律宾)Filipino (Philippines)
frfr 法语French
ga-IEga-IE 爱尔兰语(爱尔兰)Irish (Ireland)
glgl 加利西亚语Galician
gugu 古吉拉特语Gujarati
ha-Latn-NGha-Latn-NG 豪萨语(拉丁语,尼日利亚)Hausa (Latin, Nigeria)
hehe 希伯来语Hebrew
hihi 印地语Hindi
hrhr 克罗地亚语Croatian
huhu 匈牙利语Hungarian
hyhy 亚美尼亚语Armenian
idid 印度尼西亚语Indonesian
ig-NGig-NG 伊博语(尼日利亚)Igbo (Nigeria)
isis 冰岛语Icelandic
itit 意大利语Italian
iu-Latn-CAiu-Latn-CA 依奴提图特语(拉丁语,加拿大)Inuktitut (Latin, Canada)
jaja 日语Japanese
kaka 格鲁吉亚语Georgian
kkkk 哈萨克斯坦语Kazakh
km-KHkm-KH 高棉语(柬埔寨)Khmer (Cambodia)
knkn 卡纳达语Kannada
koko 朝鲜语Korean
kokkok 孔卡尼语Konkani
kyky 吉尔吉斯坦语Kyrgyz
lb-LUlb-LU 卢森堡语(卢森堡)Luxembourgish (Luxembourg)
lo-LAlo-LA 老挝语(老挝人民民主共和国)Lao (Lao People's Democratic Republic)
ltlt 立陶宛语Lithuanian
lvlv 拉脱维亚语Latvian
mi-NZmi-NZ 毛利语(新西兰)Maori (New Zealand)
mkmk 马其顿语Macedonian
ml-INml-IN 马拉雅拉姆语(印度)Malayalam (India)
mrmr 马拉地语Marathi
msms 马来语Malay
ms-BNms-BN 马来语(文莱达鲁萨兰国)Malay (Brunei Darussalam)
mt-MTmt-MT 马耳他语(马耳他)Maltese (Malta)
ne-NPne-NP 尼泊尔语(尼泊尔)Nepali (Nepal)
nlnl 荷兰语Dutch
nn-NOnn-NO 挪威语(尼诺斯克语)Norwegian (Nynorsk)
nono 挪威语Norwegian
nso-ZAnso-ZA 塞索托语(南非)Sesotho sa Leboa (South Africa)
or-INor-IN 奥里雅语(印度)Oriya (India)
papa 旁遮普语Punjabi
plpl 波兰语Polish
ps-AFps-AF 普什图语(阿富汗)Pashto (Afghanistan)
ptpt 葡萄牙语Portuguese
pt-PTpt-PT 葡萄牙语(葡萄牙)Portuguese (Portugal)
qut-GTqut-GT 基切语(危地马拉)K'iche (Guatemala)
quz-PEquz-PE 盖丘亚语(秘鲁)Quechua (Peru)
roro 罗马尼亚语Romanian
ruru 俄语Russian
rw-RWrw-RW 金雅旺达语(卢旺达)Kinyarwanda (Rwanda)
si-LKsi-LK 僧伽罗语(斯里兰卡)Sinhala (Sri Lanka)
sksk 斯洛伐克语Slovak
slsl 斯洛文尼亚语Slovenian
sqsq 阿尔巴尼亚语Albanian
srsr 塞尔维亚语Serbian
sr-Cyrl-CSsr-Cyrl-CS 塞尔维亚语(西里尔文,塞尔维亚)Serbian (Cyrillic, Serbia)
svsv 瑞典语Swedish
swsw 斯瓦希里语Kiswahili
tata 泰米尔语Tamil
tete 泰卢固语Telugu
thth 泰语Thai
tn-ZAtn-ZA 塞茨瓦纳语(南非)Setswana (South Africa)
trtr 土耳其语Turkish
tttt 鞑靼语Tatar
ukuk 乌克兰语Ukrainian
urur 乌尔都语Urdu
uzuz 乌兹别克语Uzbek
vivi 越南语Vietnamese
wo-SNwo-SN 沃洛夫语(塞内加尔)Wolof (Senegal)
xh-ZAxh-ZA 科萨语(南非)isiXhosa (South Africa)
yo-NGyo-NG 约鲁巴语(尼日利亚)Yoruba (Nigeria)
zh-Hanszh-Hans 中文(简体)Chinese (Simplified)
zh-Hantzh-Hant 中文(繁体)Chinese (Traditional)
zh-HKzh-HK 中文(香港)Chinese (Hong Kong)
zu-ZAzu-ZA 祖鲁语(南非)isiZulu (South Africa)

若要控制在 Ndr 中使用的语言,请在set-transportconfig cmdlet 中使用以下参数:To control the languages that are used in NDRs, you use these parameters on the Set-TransportConfig cmdlet:

  • ExternalDsnDefaultLanguage:指定要在外部 ndr 上使用的默认语言。ExternalDsnDefaultLanguage: Specifies the default language to use on external NDRs. 默认值为空($null),这意味着使用默认的 Windows server 语言。The default value is blank ($null), which means the default Windows server language is used.

  • InternalDsnDefaultLanguage:指定要在内部 ndr 中使用的默认语言。InternalDsnDefaultLanguage: Specifies the default language to use on internal NDRs. 默认值为空($null),这意味着使用默认的 Windows server 语言。The default value is blank ($null), which means the default Windows server language is used.

  • ExternalDsnLanguageDetectionEnabledExternalDsnLanguageDetectionEnabled

    • $true: Exchange 尝试使用与原始邮件相同的语言发送外部 NDR。$true: Exchange tries to send an external NDR in the same language as the original message. 所有者、作者和网站所有者仍可以访问此项目。This is the default value.

    • $false:禁用语言检测对于外部 Ndr,NDR 语言由_ExternalDsnDefaultLanguage_参数决定。$false: Language detection is disabled for external NDRs, The NDR language is determined by the ExternalDsnDefaultLanguage parameter.

  • InternalDsnLanguageDetectionEnabledInternalDsnLanguageDetectionEnabled

    • $true: Exchange 尝试使用与原始邮件相同的语言发送内部 NDR。$true: Exchange tries to send an internal NDR in the same language as the original message. 所有者、作者和网站所有者仍可以访问此项目。This is the default value.

    • $false:禁用了语言检测对于内部 Ndr,NDR 语言由_InternalDsnDefaultLanguage_参数决定。$false: Language detection is disabled for internal NDRs, The NDR language is determined by the InternalDsnDefaultLanguage parameter.

Ndr 中的 HTML 标记和特殊字符HTML tags and special characters in NDRs

NDR 中包含的自定义文本最多可以包含512个字符,其中包括文本和 HTML 标记。The custom text that you include in an NDR can contain a maximum of 512 characters, which includes text and HTML tags. 例如,您可以包括问题的详细说明、技术支持人员的联系信息以及指向支持部门网站的链接。For example, you can include a detailed description of the problem, contact information for your help desk, and a link to your support department's web site.

若要控制 Exchange 是在 Ndr 中使用 HTML 还是纯文本,请在set-transportconfig cmdlet 中使用以下参数:To control whether Exchange uses HTML or plain text in NDRs, you use these parameters on the Set-TransportConfig cmdlet:

  • ExternalDsnSendHtmlExternalDsnSendHtml

    • $true:对外部发件人使用 Ndr 中的 HTML 标记。$true: Use HTML tags in NDRs for external senders. 所有者、作者和网站所有者仍可以访问此项目。This is the default value.

    • $false:在外部发件人的 Ndr 中使用纯文本。$false: Use plain text in NDRs for external senders.

  • InternalDsnSendHtmlInternalDsnSendHtml

    • $true:对内部发件人使用 Ndr 中的 HTML 标记。$true: Use HTML tags in NDRs for internal senders. 此为默认值This is the default value

    • $false:在内部发件人的 Ndr 中使用纯文本。$false: Use plain text in NDRs for internal senders.

此表介绍了可在 NDR 文本中使用的 HTML 标记。This table describes the HTML tags that you can use in the NDR text.

说明Description HTML 标记HTML tags
粗体Bold <B></B><B> and </B>
斜体Italic <EM></EM><EM> and </EM>
换行符Line break <BR>
ParagraphParagraph <P></P><P> and </P>
超链接Hyperlink <A HREF="url"></A><A HREF="url"> and </A>

注意:由于此标记包含双引号,如果在自定义文本中使用此标记,则需要在完整的文本字符串周围使用单引号(而不是双引号)。Note: Because this tag contains double quotation marks, you need to use single quotation marks (not double quotation marks) around the complete text string if you use this tag in your custom text. 否则,您将收到错误。Otherwise, you'll receive an error.

NDR 中的某些字符需要转义代码以字面意义(而不是在 NDR 中的函数)来标识它们。Certain characters in an NDR require escape codes to identify them literally, and not by their function in the NDR. 下表描述了这些字符:These characters are described in the following table:

CharacterCharacter 转义代码Escape code
< &lt;
> &gt;
" &quot;
& &amp;

例如,如果您希望 NDR 显示文本Please contact the Help Desk at <1234>.,则需要值"Please contact the Help Desk at &lt;1234&gt;."For example, if you want the NDR to display the text Please contact the Help Desk at <1234>., you need to the value "Please contact the Help Desk at &lt;1234&gt;."

这是使用 HTML 标记和转义代码的自定义 NDR 文本值的示例。This is an example of a custom NDR text value that uses HTML tags and escape codes.

'You tried to send a message to a <B>disabled</B> mailbox. Please visit <A HREF="https://it.contoso.com">Internal Support</A> or contact &quot;InfoSec&quot; for more information.'