配置邮件重试间隔、重新提交间隔和过期间隔Configure message retry, resubmit, and expiration intervals

在 Exchange Server 中,可以在邮箱服务器和边缘传输服务器上的传输服务中配置邮件重试、重新提交和过期间隔。In Exchange Server, you can configure message retry, resubmit, and expiration intervals in the Transport service on Mailbox servers and Edge Transport servers. 有关这些设置的详细说明,请参阅邮件重试间隔、重新提交间隔和过期间隔For detailed descriptions of these settings, see Message retry, resubmit, and expiration intervals.

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

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

  • 您只能在邮箱服务器上使用 Exchange 管理中心(EAC)。You can only use the Exchange admin center (EAC) on Mailbox servers. 有关 EAC 的详细信息,请参阅 exchange Server 中的 exchange 管理中心For more information about the EAC, see Exchange admin center in Exchange Server. 若要了解如何在本地 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.

  • 您必须先获得权限,然后才能执行此过程或多个过程。You need to be assigned permissions before you can perform this procedure or procedures. 若要查看所需的权限,请参阅邮件流权限主题中的 "传输服务" 和 "边缘传输服务器" 条目。To see what permissions you need, see the "Transport service" and "Edge Transport severs" entries 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.

使用 Edgetransport.exe 配置队列故障重试计数、队列故障重试间隔、邮箱传递队列重试间隔和重新提交间隔前的最长空闲时间Use EdgeTransport.exe.config to configure the queue glitch retry count, the queue glitch retry interval, the mailbox delivery queue retry interval, and the maximum idle time before resubmit interval

  • 队列故障重试计数:传输服务在连接到目标服务器时出现问题时,立即尝试的连接尝试次数。Queue glitch retry count: The number of connection attempts that are immediately tried when the Transport service has trouble connecting to the destination server. 通常情况下,除非网络不可靠并且继续出现许多意外断开连接的情况,否则不需要修改此项。Typically, you don't need to modify this key unless the network is unreliable and continues to experience many accidentally dropped connections.

  • 队列故障重试间隔:每个队列故障重试间隔。Queue glitch retry interval: The interval between each queue glitch retry. 通常情况下,除非网络不可靠并且继续出现许多意外断开连接的情况,否则不需要修改此项。Typically, you don't need to modify this key unless the network is unreliable and continues to experience many accidentally dropped connections.

  • 邮箱传递队列重试间隔:队列尝试连接到无法成功访问的目标邮箱数据库的邮箱传输传递服务的频率。Mailbox delivery queue retry interval: How frequently a queue try to connect to the Mailbox Transport Delivery service for a destination mailbox database that can't be successfully reached.

  • 重新提交前的最长空闲时间:传递队列中未送达邮件重新提交前的重试状态的等待时间。Max idle time before resubmit: How long undelivered messages in delivery queues the status of Retry wait before they're resubmitted.

若要配置这些间隔,请修改邮箱服务器或边缘传输服务器上的% ExchangeInstallPath% Bin \ Edgetransport.exe XML 应用程序配置文件中的密钥。To configure these intervals, you modify keys in the %ExchangeInstallPath%Bin\EdgeTransport.exe.config XML application configuration file on Mailbox servers or Edge Transport servers. 在重新启动 Exchange 传输服务后,将应用保存到此文件中的更改。Changes you save to this file are applied after you restart the Exchange Transport service. 重新启动此服务时,会临时中断服务器上的邮件流。When you restart this service, mail flow on the server is temporarily interrupted.

备注

在 Exchange 服务器上(例如,web.config 文件或 Edgetransport.exe 文件)上的 Exchange XML 应用程序配置文件中所做的任何自定义 Exchange 或 Internet 信息服务器(IIS)设置将在您安装 Exchange CU 时覆盖Any customized Exchange or Internet Information Server (IIS) settings that you made in Exchange XML application configuration files on the Exchange server (for example, web.config files or the EdgeTransport.exe.config file) will be overwritten when you install an Exchange CU. 请务必保存此信息,以便在安装后可以轻松地重新应用这些设置。Be sure save this information so you can easily re-apply the settings after the install. 安装 Exchange CU 后,需要重新配置这些设置。After you install the Exchange CU, you need to re-configure these settings.

  1. 在邮箱服务器或边缘传输服务器上的命令提示符窗口中,通过运行以下命令在记事本中打开 Edgetransport.exe 文件:In a Command prompt window on the Mailbox server or Edge Transport server, open the EdgeTransport.exe.config file in Notepad by running this command:

    Notepad %ExchangeInstallPath%Bin\EdgeTransport.exe.config
    
  2. <appSettings>部分中找到以下项。Locate the following keys in the <appSettings> section.

    <add key="QueueGlitchRetryCount" value="<Integer>" />
    <add key="QueueGlitchRetryInterval" value="<hh:mm:ss>" />
    <add key="MailboxDeliveryQueueRetryInterval" value="<hh:mm:ss>" />
    <add key="MaxIdleTimeBeforeResubmit" value="<hh:mm:ss>" />
    

    此示例将队列小故障重试计数更改为 6,将队列小故障重试间隔更改为 30 秒,将邮箱传递队列重试间隔更改为 3 分钟,并将重新提交间隔前的最长空闲时间更改为 6 小时。This example changes the queue glitch retry count to 6, the queue glitch retry interval to 30 seconds, the mailbox delivery queue retry interval to 3 minutes, and the maximum idle time before resubmit interval to 6 hours.

    <add key="QueueGlitchRetryCount" value="6" />
    <add key="QueueGlitchRetryInterval" value="00:00:30" />
    <add key="MailboxDeliveryQueueRetryInterval" value="00:03:00" />
    <add key="MaxIdleTimeBeforeResubmit" value="6:00:00" />
    
  3. 完成后,保存并关闭 Edgetransport.exe 文件。When you're finished, save and close the EdgeTransport.exe.config file.

  4. 通过运行以下命令重新启动 Exchange 传输服务:Restart the Exchange Transport service by running this command:

    net stop MSExchangeTransport && net start MSExchangeTransport
    

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

若要验证是否已配置这些时间间隔,请执行以下步骤:To verify that you've configured these intervals, do these steps:

  1. 运行以下命令,在记事本中打开 Edgetransport.exe 文件:Open the EdgeTransport.exe.config file in Notepad by running this command:

    Notepad %ExchangeInstallPath%Bin\EdgeTransport.exe.config
    
  2. 验证 "" <appSettings>部分中的以下项的值。Verify the values of the following keys in the <appSettings> section.

    <add key="QueueGlitchRetryCount" value="<Integer>" />
    <add key="QueueGlitchRetryInterval" value="<hh:mm:ss>" />
    <add key="MailboxDeliveryQueueRetryInterval" value="<hh:mm:ss>" />
    <add key="MaxIdleTimeBeforeResubmit" value="<hh:mm:ss>" />
    

配置瞬间失败重试次数、瞬间失败重试间隔和出站连接失败重试间隔Configure the transient failure retry attempts, the transient failure retry interval, and the outbound connection failure retry interval

  • 瞬间失败重试次数:在由_QueueGlitchRetryCount_和_QueueGlitchRetryInterval_项控制的连接尝试失败后尝试的连接尝试次数。Transient failure retry attempts: The number of connection attempts that are tried after the connection attempts controlled by the QueueGlitchRetryCount and QueueGlitchRetryInterval keys have failed. 有效值为0至15,默认值为6。A valid value is 0 through 15, and the default value is 6. 如果将此值设置为0,则下一次连接尝试由出站连接失败重试间隔控制。If you set the value to 0, the next connection attempt is controlled by the outbound connection failure retry interval.

  • 瞬间失败重试间隔:每个暂时故障重试尝试之间的时间间隔。Transient failure retry interval: The interval between each transient failure retry attempt. 在邮箱服务器上,默认值为5分钟。On Mailbox servers, the default value is 5 minutes. 在 Edge Tranport 服务器上,默认值为10分钟。On Edge Tranport Servers, the default value is 10 minutes.

  • 出站连接失败重试间隔:之前失败的传出连接尝试的重试间隔(暂时失败重试次数和瞬间失败重试间隔)。Outbound connection failure retry interval: The retry interval for outgoing connection attempts that have previously failed (the transient failure retry attempts and the transient failure retry interval). 在邮箱服务器上,默认值为10分钟。On Mailbox servers, the default value is 10 minutes. 在 Edge Tranport 服务器上,默认值为30分钟。On Edge Tranport Servers, the default value is 30 minutes.

使用 EAC 在邮箱服务器上配置瞬间失败重试次数、瞬间失败重试间隔或出站连接失败重试间隔Use the EAC to configure the transient failure retry attempts, the transient failure retry interval, or the outbound connection failure retry interval on Mailbox servers

  1. 在 EAC 中,转到 "服务器 > " "服务器",选择服务器,然后单击 "](../../media/ITPro_EAC_EditIcon.png)编辑 ![编辑图标"。In the EAC, go to Servers > Servers, select the server, and then click Edit Edit icon.

  2. 在打开的 "服务器属性" 窗口中,单击 "传输限制"。In the server properties window that opens, click Transport limits.

  3. 在 "重试" 部分,为以下任何设置输入值:In the Retries section, enter a value for any of these settings:

    • 出站连接失败重试间隔(秒)Outbound connection failure retry interval (seconds)

    • 瞬间失败重试间隔(分钟)Transient failure retry interval (minutes)

    • 瞬间失败重试次数Transient failure retry attempts

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

使用 Exchange 命令行管理程序在邮箱服务器或边缘传输服务器上配置瞬间失败重试次数、瞬间失败重试间隔和出站连接失败重试间隔Use the Exchange Management Shell to configure the transient failure retry attempts, the transient failure retry interval, and the outbound connection failure retry interval on Mailbox severs or Edge Transport servers

若要配置邮箱服务器或边缘传输服务器上的传输服务中的间隔,请使用以下语法:To configure the intervals in the Transport service on Mailbox servers or Edge Transport servers, use this syntax:

Set-TransportService -Identity <ServerIdentity> -TransientFailureRetryCount <Integer> -TransientFailureRetryInterval <hh:mm:ss> -OutboundConnectionFailureRetryInterval <dd.hh:mm:ss>

若要配置邮箱服务器上的前端传输服务中的间隔,请使用以下语法:To configure the intervals in the Front End Transport service on Mailbox servers, use this syntax:

Set-FrontEndTransportService -Identity <ServerIdentity> -TransientFailureRetryCount <Integer> -TransientFailureRetryInterval <hh:mm:ss>

本示例将更改名为 Mailbox01 的邮箱服务器上的以下值:This example changes the following values on the Mailbox server named Mailbox01:

  • 瞬间失败重试次数设置为 8。The number of transient failure retry attempts is set to 8.

  • 瞬间失败重试间隔设置为 1 分钟。The transient failure retry interval is set to 1 minute.

  • 出站连接失败重试间隔设置为 45 分钟。The outbound connection failure retry interval is set to 45 minutes.

Set-TransportService -Identity Mailbox01 -TransientFailureRetryCount 8 -TransientFailureRetryInterval 00:01:00 -OutboundConnectionFailureRetryInterval 00:45:00

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

若要验证是否已配置这些时间间隔,请执行以下任一步骤:To verify that you've configured these intervals, do any of these steps:

  • 在邮箱服务器上,打开 EAC,然后转到 "服务器 > " "服务器",选择服务器,然后单击 "](../../media/ITPro_EAC_EditIcon.png)编辑 ![编辑图标"。On a Mailbox server, open the EAC and go to Servers > Servers, select the server, and then click Edit Edit icon. 在打开的 "服务器属性" 窗口中,单击 "传输限制",然后验证 "重试次数" 部分中的值。In the server properties window that opens, click Transport limits, and verify the values in the Retries section.

  • 在邮箱服务器或边缘传输服务器上的 Exchange 命令行管理程序中,运行以下命令以验证属性值:In the Exchange Management Shell on a Mailbox server or Edge Transport server, run this command to verify the property values:

    Get-TransportService | Format-List Name,TransientFailureRetry*,OutboundConnectionFailureRetryInterval
    
  • 在邮箱服务上的 Exchange 命令行管理程序中,运行以下命令以验证属性值:In the Exchange Management Shell on a Mailbox serve, run this command to verify the property values:

    Get-FrontEndTransportService | Format-List Name,TransientFailureRetry*
    

使用 Exchange 命令行管理程序配置邮件重试间隔Use the Exchange Management Shell to configure the message retry interval

邮件重试间隔指定对状态为 "重试" 的队列中各个邮件的发送尝试之间等待的时间。The message retry interval specifies how long to wait between sending attempts for individual messages in queues that have a status of Retry. 默认值为15分钟,建议您不要更改默认值,除非 Microsoft 客户服务和支持人员指示你这样做,或者是特定产品文档。The default value is 15 minutes, and we recommend that you don't change the default value unless you're directed to do so by Microsoft Customer Service and Support, or specific product documentation.

若要配置邮件重试间隔,请使用以下语法:To configure the message retry interval, use this syntax:

Set-TransportService -Identity <ServerIdentity> -MessageRetryInterval <dd.hh:mm:ss>

此示例在名为 Mailbox01 的邮箱服务器上将邮件重试间隔更改为 20 分钟。This example changes the message retry interval to 20 minutes on the Mailbox server named Mailbox01.

Set-TransportService -Identity Mailbox01 -MessageRetryInterval 00:20:00

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

若要验证您是否已在邮箱服务器或 Edget 传输服务器上配置邮件重试间隔,请在 Exchange 命令行管理程序中运行以下命令来验证MessageRetryInterval属性值:To verify that you've configured the message retry interval on a Mailbox server or Edget Transport server, run this command in the Exchange Management Shell to verify the MessageRetryInterval property value:

Get-TransportService | Format-List Name,MessageRetryInterval

配置延迟 DSN 超时设置Configure the delay DSN timeout settings

  • 延迟 dsn 邮件通知超时间隔:将延迟 DSN 邮件发送给发件人之前要等待的时间。Delay DSN message notification timeout interval: How long to wait before sending delay DSN messages to senders. 此设置适用于邮箱服务器或边缘传输服务器上的传输服务。This setting applies to the Transport service on a Mailbox server or an Edge Transport server.

注意:此值应始终大于瞬时故障重试计数乘以瞬间失败重试间隔(默认总数为邮箱服务器上的30分钟,而在边缘传输服务器上为1小时)。Note: This value should always be greater than the transient failure retry count multiplied by the transient failure retry interval (the default total is 30 minutes on a Mailbox server, and one hour on an Edge Transport server).

  • 内部和外部延迟 dsn 设置:指定是否可以向内部或外部邮件发件人(Exchange 组织内部或外部的发件人)发送延迟 DSN 邮件。Internal and external delay DSN settings: Specifies whether delay DSN messages can be sent to internal or external message senders (senders who are inside or outside the Exchange organization). 此设置适用于组织中所有邮箱服务器上的传输服务。This setting applies to the Transport service on all Mailbox servers in the organization.

使用 EAC 在邮箱服务器上配置延迟 DSN 邮件通知超时间隔Use the EAC to configure the delay DSN message notification timeout interval on Mailbox servers

  1. 在 EAC 中,单击 "服务器 > " "服务器",选择服务器,然后单击 "](../../media/ITPro_EAC_EditIcon.png)编辑 ![编辑图标"。In the EAC, click Servers > Servers, select the server, and then click Edit Edit icon.

  2. 在打开的 "服务器属性" 窗口中,单击 "传输限制"。In the server properties window that opens, click Transport limits.

  3. 在 "通知" 部分中,输入 "当邮件延迟(小时)后通知发件人" 的值,然后单击 "保存"。In the Notifications section, enter a value for Notify sender when message is delayed after (hours), and then click Save.

使用 Exchange 命令行管理程序在邮箱服务器或边缘传输服务器上配置延迟 DSN 邮件通知超时间隔Use the Exchange Management Shell to configure the delay DSN message notification timeout interval on Mailbox servers or Edge Transport servers

若要配置延迟 DSN 邮件通知超时间隔,请使用以下语法:To configure the delay DSN message notification timeout interval, use this syntax:

Set-TransportService -Identity <ServerIdentity> -DelayNotificationTimeout <dd.hh:mm:ss>

此示例在名为 Mailbox01 的邮箱服务器上将延迟 DSN 邮件通知超时间隔更改为 6 小时。This example changes the delay DSN message notification timeout interval to 6 hours on the Mailbox server named Mailbox01.

Set-TransportService -Identity Mailbox01 -DelayNotificationTimeout 06:00:00

使用 Exchange 命令行管理程序启用或禁用将延迟 DSN 通知发送给外部或内部邮件发件人Use the Exchange Management Shell to enable or disable the sending of delay DSN notifications to external or internal message senders

若要配置延迟 DSN 通知设置,请使用以下语法:To configure the delay DSN notification settings, use this syntax:

Set-TransportConfig -ExternalDelayDSNEnabled <$true | $false> -InternalDelayDSNEnabled <$true |$false>

此示例阻止将延迟 DSN 通知邮件发送给外部发件人。This example prevents the sending of delay DSN notification messages to external senders.

Set-TransportConfig -ExternalDelayDSNEnabled $false

此示例阻止将延迟 DSN 通知邮件发送给内部发件人。This example prevents the sending of delay DSN notification messages to internal senders.

Set-TransportConfig -InternalDelayDSNEnabled $false

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

若要验证是否已配置延迟 DSN 超时设置,请执行以下任一步骤:To verify that you've configured the delay DSN timeout settings, do any of these steps:

  • 在邮箱服务器上,打开 EAC,然后转到 "服务器 > " "服务器",选择服务器,然后单击 "](../../media/ITPro_EAC_EditIcon.png)编辑 ![编辑图标"。On a Mailbox server, open the EAC and go to Servers > Servers, select the server, and then click Edit Edit icon. 在打开的 "服务器属性" 窗口中,单击 "传输限制",并验证 "通知发件人" 在 "通知" 部分中的 "邮件延迟后(小时) " 值。In the server properties window that opens, click Transport limits, and verify the Notify sender when message is delayed after (hours) value in the Notifications section.

  • 在邮箱服务器或边缘传输服务器上的 Exchange 命令行管理程序中,运行以下命令以验证属性值:In the Exchange Management Shell on a Mailbox server or Edge Transport server, run these commands to verify the property values:

    Get-TransportService | Format-List Name,DelayNotificationTimeout
    
    Get-TransportConfig | Format-List *DelayDSNEnabled
    

配置邮件过期超时间隔Configure the message expiration timeout interval

邮件过期超时间隔指定邮件过期并在未送达报告(也称为 "NDR" 或 "退回邮件")中返回给发件人之前要等待的时间。The message expiration timeout interval specifies how long to wait before the message expires and is returned to the sender in a non-delivery report (also known as an NDR or bounce message). 此设置适用于邮箱服务器或边缘传输服务器上的传输服务。This setting applies to the Transport service on a Mailbox server or an Edge Transport server.

使用 EAC 在邮箱服务器上配置邮件过期超时间隔Use the EAC to configure the message expiration timeout interval on Mailbox servers

  1. 在 EAC 中,单击 "服务器 > " "服务器",选择服务器,然后单击 "](../../media/ITPro_EAC_EditIcon.png)编辑 ![编辑图标"。In the EAC, click Servers > Servers, select the server, and then click Edit Edit icon.

  2. 在打开的 "服务器属性" 窗口中,单击 "传输限制"。In the server properties window that opens, click Transport limits.

  3. 在 "邮件过期" 部分中,输入 "提交后的最长时间(天)" 的值,然后单击 "保存"。In the Message expiration section, enter a value for Maximum time since submission (days), and then click Save.

使用 Exchange 命令行管理程序在邮箱服务器或边缘传输服务器上配置邮件过期超时间隔Use the Exchange Management Shell to configure the message expiration timeout interval on Mailbox servers or Edge Transport servers

若要配置邮件过期超时间隔,请使用以下语法。To configure the message expiration timeout interval, use the following syntax.

Set-TransportService -Identity <ServerIdentity> -MessageExpirationTimeout <dd.hh:mm:ss>

此示例在名为 Mailbox01 的 Exchange 服务器上将邮件过期超时间隔更改为 4 天。This example changes the message expiration timeout interval to 4 days on the Exchange server named Mailbox01.

Set-TransportService -Identity Mailbox01 -MessageExpirationTimeout 4.00:00:00

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

若要验证是否已配置邮件过期超时间隔,请执行以下任一步骤:To verify that you've configured the message expiration timeout interval, do any of these steps:

  • 在邮箱服务器上,打开 EAC,然后转到 "服务器 > " "服务器",选择服务器,然后单击 "](../../media/ITPro_EAC_EditIcon.png)编辑 ![编辑图标"。On a Mailbox server, open the EAC and go to Servers > Servers, select the server, and then click Edit Edit icon. 在打开的 "服务器属性" 窗口中,单击 "传输限制",并验证 "邮件过期时间" 部分中的 "提交后的最长时间(天) " 值。In the server properties window that opens, click Transport limits, and verify the Maximum time since submission (days) value in the Message expiration section.

  • 在邮箱服务器或边缘传输服务器上的 Exchange 命令行管理程序中,运行以下命令来验证MessageExpirationTimeout属性值:In the Exchange Management Shell on a Mailbox server or Edge Transport server, run this command to verify the MessageExpirationTimeout property value:

    Get-TransportService | Format-List Name,MessageExpirationTimeout