≡ Menu

Find top senders/recipients in Exchange 2007 queue

If Exchange 2007 queue is growing fast and you want to find who is the top contributor, below code helps you. You need to run this code from a exchange management shell since the code involves Exchange cmdlets like get-message.

Find top 10 senders in Exchange Queue:

$senders = @{}
$queuemessages = Get-message -Resultsize unlimited
$queuemessages | % { $senders[$_.FromAddress] = $senders[$_.FromAddress] + 1 }
$senders.getenumerator() | sort value -last 10

Similarly you can filter the Get-Message output by recipients to get the top recipients.

Comments on this entry are closed.

  • krish November 6, 2010, 10:14 pm

    There is no reporting tool for Exchange server?

    Postfix and Exim are awesome that way 🙂

  • Sitaram Pamarthi November 20, 2010, 6:44 pm

    What is the built-in tool that does this in Postfix/Exim? Curious to know. AFAIK, any licensed product will be like this. They provide the functionalities which are applicable to all customers and provides a mechanism(APIs) for serving individual custom requirements.