큐의 메시지에 대 한 절차

[이 항목은 시험판 설명서로, 향후 릴리스에서 변경될 수 있습니다. 빈 항목은 자리 표시자로 포함되어 있습니다. 피드백이 있다면 기꺼이 듣겠습니다! ExchangeHelpFeedback@microsoft.com으로 전자 메일을 보내 주세요.]  

적용 대상:Exchange Server 2016

Learn how to remove, suspend, resume, and redirect messages in queues in Exchange 2016.

In Exchange Server 2016, you can use the Queue Viewer in the Exchange 도구 상자 or the Exchange 관리 셸 to manage messages in queues. For more information about messages in queues, see Message properties.

This topic describes how to perform the following procedures on messages in queues:

  • Remove messages   You can remove messages from queues with our without a non-delivery report to the sender (also known as an NDR, delivery status notification, DSN, or bounce message).

  • Suspend messages   When you suspend a message, you prevent delivery of the message. The message won't leave the queue until you resume the message.

  • Resume messages   You can resume a message that currently has a status of Suspended. By resuming a message, you enable delivery of the message.

  • Redirect messages   You can drain messages from all the delivery queues on a Mailbox server, and transfer those messages to another Mailbox server.

For information about exporting messages from queues, see 큐에서 메시지 내보내기.

  • Estimated time to complete each procedure: 5 minutes

  • Exchange 도구 상자를 찾아서 열려면 다음 절차 중 하나를 사용합니다.

    • Windows 10 시작 > 모든 앱 > MicrosoftExchange Server 2016 > Exchange 도구 상자를 클릭합니다.

    • Windows Server 2012 R2 또는 Windows 8.1   시작 화면의 왼쪽 아래 모서리에 있는 아래쪽 화살표를 클릭하거나 화면 중간에서 위로 살짝 밀어서 앱 보기를 엽니다. Exchange 도구 상자 바로 가기는 그룹 MicrosoftExchange Server 2016에 포함되어 있습니다.

    • Windows Server 2012    다음 방법 중 하나를 사용합니다.

      • 시작 화면에서 빈 영역을 클릭하고 Exchange 도구 상자를 입력합니다.

      • 바탕 화면 또는 시작 화면에 Windows 키 + Q를 누릅니다. 검색 참에서 Exchange 도구 상자를 입력합니다.

      • 바탕 화면 또는 시작 화면에서 커서를 오른쪽 위 모서리로 이동하거나 화면 오른쪽 가장자리에서 왼쪽으로 살짝 밀어 참을 표시합니다. 검색 참을 클릭하고 Exchange 도구 상자를 입력합니다.

      바로 가기가 결과에 표시되면 선택할 수 있습니다.

  • 온-프레미스 Exchange 조직에서 Exchange 관리 셸을 여는 방법을 확인하려면 Exchange 관리 셸 열기를 참조하세요.

  • For more information about using filters and identity values in the Exchange 관리 셸, see Exchange 관리 셸에서 큐의 큐 및 메시지 찾기.

  • 이러한 절차를 수행하려면 먼저 사용 권한을 할당받아야 합니다. 필요한 사용 권한을 확인하려면 다음을 참조하세요. "Queues" entry in the 메일 흐름 사용 권한 topic.

  • 이 항목의 절차에 적용할 수 있는 바로 가기 키에 대한 자세한 내용은 Exchange 관리 센터의 바로 가기 키을 참조하세요.

tip팁:
문제가 있습니까? Exchange 포럼에서 도움을 요청하세요. 포럼 주소는 다음과 같습니다. Exchange Server, Exchange Online 또는 Exchange Online Protection.

Notes:

  • A message that's being sent to multiple recipients might be located in more than one queue. To remove a message from more than one queue in a single operation, you need to use a filter. For more information, see 큐에서 메시지의 속성 and Message filtering parameters.

  • You can't remove messages from the Submission queue.

  1. In the Exchange 도구 상자, in the Mail flow tools section, double-click Queue Viewer to open the tool in a new window.

  2. In Queue Viewer, click the Messages tab. A list of all messages on the server that you're connected to is displayed. To adjust the action to a single queue, click the Queues tab, double-click the queue name, and then click the Server\Queue tab that appears.

  3. Select one or more messages from the list, right-click, and then select Remove Messages (with NDR) or Remove Messages (without NDR). A dialog box appears that confirms the selected action and displays, Do you want to continue?. Click Yes.

  4. To remove all messages from a particular queue, click the Queues tab. Select a queue, right-click, and then select Remove Messages (with NDR) or Remove Messages (without NDR). A dialog box appears that confirms the selected action and displays, Do you want to continue?. Click Yes.

    note참고:
    If you're working with a filtered list, the displayed page may not include all items in the filter. In this case, a prompt appears that displays: This action will affect all items on this page. To expand the scope of this action to include all items in this filter, check the following box before you click OK.

To remove messages from queues, use the following syntax.

Remove-Message <-Identity MessageIdentity | -Filter {MessageFilter}> -WithNDR <$true | $false>

This example removes messages in the queues that have a subject of "Win Big" without sending an NDR.

Remove-Message -Filter {Subject -eq "Win Big"} -WithNDR $false

This example removes the message with the message ID 3 from the Unreachable queue on server named Mailbox01 and sends an NDR.

Remove-Message -Identity Mailbox01\Unreachable\3 -WithNDR $true

For more information, see Remove-Message

To verify that you have successfully removed messages from queues, use either of the following procedures:

  • In Queue Viewer, select the queue or create a filter to verify the messages no longer exist.

  • In the Exchange 관리 셸, replace MessageFilter with the filter that you used, or <QueueIdentity> with the identity of the queue, and run either of the following commands to verify the messages no longer exist:

    Get-Message -Filter {MessageFilter}
    

    Or

    Get-Message -Queue <QueueIdentity>
    

    For more information, see Get-Message.

Notes:

  • A message that's being sent to multiple recipients might be located in more than one queue. To suspend a message in more than one queue in a single operation, you need to use a filter. For more information, see 큐에서 메시지의 속성 and Message filtering parameters.

  • If you suspend a message that's in the act of being transmitted to the next hop, delivery of the message will continue, and the message status will be PendingSuspend. If delivery fails, the message will re-enter the queue, and then the message will be suspended.

  1. In the Exchange 도구 상자, in the Mail flow tools section, double-click Queue Viewer to open the tool in a new window.

  2. In Queue Viewer, click the Messages tab. A list of all messages on the server that you're connected to is displayed. To limit the view to a single queue, click the Queues tab, double-click the queue name, and then click the Server\Queue tab that appears.

  3. Select one or more messages, right-click, and then select Suspend.

To suspend messages, use the following syntax:

Suspend-Message <-Identity MessageIdentity | -Filter {MessageFilter}>

This example suspends the message with the message ID 3 in the Unreachable queue on server named Mailbox01.

Suspend-Message -Identity Mailbox01\Unreachable\3

This example suspends all messages in all queues on the local server that are from any sender in the domain contoso.com.

Suspend-Message -Filter {FromAddress -like "*contoso.com"}

This example suspends all messages in the delivery queue for contoso.com on the server named Mailbox01.

Get-Queue Mailbox01\contoso.com | Get-Message | Suspend-Message

This example suspends all messages in all queues on the local server.

Get-Queue | Get-Message | Suspend-Message

For more information, see Suspend-Message.

To verify that you have successfully suspended messages in queues, use either of the following procedures:

  • In Queue Viewer, select the queue or create a filter to verify messages are suspended.

  • In the Exchange 관리 셸, replace MessageFilter with the filter that you used, or <QueueIdentity> with the identity of the queue, and run either of the following commands to verify that the messages are suspended:

    Get-Message -Filter {MessageFilter}
    

    Or

    Get-Message -Queue <QueueIdentity>
    

    For more information, see Get-Message.

Notes:

  • You can only resume messages that have a status of Suspended.

  • The status of the queue that holds the messages affects the delivery of the message. For example, if you resume suspended messages in a queue that has a status of Suspended, the messages can't be delivered until you resume the queue. For more information about resuming queues, see Resume queues.

  1. In the Exchange 도구 상자, in the Mail flow tools section, double-click Queue Viewer to open the tool in a new window.

  2. In Queue Viewer, click the Messages tab. A list of all messages on the server that you're connected to is displayed. To adjust the action to focus on a single queue, click the Queues tab, double-click the queue name, and then click the Server\Queue tab that appears.

  3. Click Create Filter, and enter your filter expression as follows:

    1. Select Status from the message property drop-down list.

    2. Select Equals from the comparison operator drop-down list.

    3. Select Suspended from the value drop-down list.

  4. Click Apply Filter. All messages that have a status of Suspended are displayed.

  5. Select one or more messages from the list, right-click, and select Resume.

To resume messages, use the following syntax:

Resume-Message <-Identity MessageIdentity | -Filter {MessageFilter}>

This example resumes all messages being sent from any sender in the contoso.com domain.

Resume-Message -Filter {FromAddress -like "*contoso.com"}

This example resumes the message with the message ID 3 in the Unreachable queue on server named Mailbox01.

Resume-Message -Identity Mailbox01\Unreachable\3

To verify that you have successfully resumed messages in queues, use either of the following procedures:

  • In Queue Viewer, select the queue or create a filter to verify the that messages are no longer suspended.

  • In the Exchange 관리 셸, replace MessageFilter with the filter that you used, or <QueueIdentity> with the identity of the queue, and run either of the following commands to verify that the messages are no longer suspended:

    Get-Message -Filter {MessageFilter}
    

    Or

    Get-Message -Queue <QueueIdentity>
    

    For more information, see Get-Message.

If you can't find the messages in any queues on the server, this likely indicates the message was successfully delivered to the next hop.

Redirecting messages drains all active messages from delivery queues on the source Mailbox server and routes them to the target Mailbox server. The messages are queued for delivery and routed to the next hop.

Notes:

  • Only active messages are redirected.

  • Shadow queues and messages in the poison message queue aren't redirected.

  • The source Mailbox server doesn't accept new messages while messages are being redirected.

  • You can only use the Exchange 관리 셸 to redirect messages.

To redirect messages, use the following syntax:

Redirect-Message -Server <ServerIdentity> -Target <ServerFQDN>

This example redirects messages from all delivery queues on the server named Mailbox01 to the server named Mailbox02.contoso.com.

Redirect-Message -Server Mailbox01 -Target Mailbox02.contoso.com

For more information, see Redirect-Message.

To verify that you have successfully redirected messages in queues, use either of the following procedures:

  • In Queue Viewer, verify that the Message Count value on delivery queues on the source server is empty or decreasing.

  • In the Exchange 관리 셸, run the following command to verify that the MessageCount property value for the delivery queues on the source server is decreasing or empty.

    Get-Queue
    
 
표시: