When ip block list providers are configured the standard error message for rejected messages in the Agentlog log field 'SmtpResponse' contains '550 5.7.1' at the beginning of the message.
When ip block list providers are configured the custom error message for rejected messages in the Agentlog log field 'SmtpResponse' contains '550-5.7.1' at the beginning of the message.
The Get-Agentlog powershell cmdlet in the Powershell Exchange Management Shell throws an exception on the customized log records as below and the record is skipped by the Get-Agent cmdlet.
The SMTP response at line 213 in file "C:\Program Files\Microsoft\Exchange Server\V14\TransportRoles\Logs\AgentLog\AgentLog20150406-1.LOG" isn't formatted according to RFC 2821.Parameter name: smtpResponse
+ CategoryInfo : InvalidArgument: (:) [Get-AgentLog], ArgumentException
+ FullyQualifiedErrorId : 78B82C6B,Microsoft.Exchange.Management.AgentLog.GetAgentLog
This behavior prevents the use of the Exchange Management Shell Get-Agentlog cmdlet in the processing of the Exchange Agentlog files. Is this behavior by design? I would like to use both custom error messages and the Get_Agentlog cmdlet.
Thanks in advance.