Microsoft Exchange 2007 Agent Logs

Unfortunately, the logging for the rejected or deleted messages in Exchange Server 2007 is a bit poor.

There is a set of commands that may help examining the log:
  • Display the log for the specific period:
    Get-AgentLog -StartDate “4/16/2007″ -EndDate “4/17/2007″
    Get-AgentLog -StartDate “4/17/2007 8:00 AM” -EndDate “4/17/2007 2:00 PM”
  • Filtering in order to show messages to a particular recipient:
    Get-AgentLog -StartDate “4/16/2007″ -EndDate “4/17/2007″ | where {$_.recipients -like “foo@yourdomain.com”}
  • To search for messages from a particular sender:
    Get-AgentLog -StartDate “4/16/2007″ -EndDate “4/17/2007″ | where {$_.P1FromAddress -like “aqe@easymoney2u.com” -or $_.P2FromAddresses -like “aqe@easymoney2u.com”}
There are more commands, that can help you filter the log for the agent or the host IP address and other stuff.
 
Many thanks to Bharat Suneja for this article.


 

Popular posts from this blog

Domain Controller Machine Password Reset

Configuring a Certificate on Exchange Receive Connector

Running Multiple NGINX Ingress Controllers in AKS