Exchange 2016 Rule - Exclude "Diagnostic Information for Administrators"

durrie 386 Reputation points
2020-08-19T15:30:56.68+00:00

Hi,

In my Exchange 2016 organization I have a Rule configured to "reject the mesage with the explanation" option configured.

The rule rejects mail sent to our "NoReply" email address with a note.

Senders then receive the NDR with the note but also a list of diagnistic info about our exchange organization under the heading "Diagnostic Information for Administrators"

Is it possible to remove this information from the NDR so users ONLY get my message as configured in the Exchange rule?

Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
6,084 questions
No comments
{count} votes

Accepted answer
  1. Lydia Zhou - MSFT 2,356 Reputation points Microsoft Employee
    2020-08-20T02:16:47.373+00:00

    Agree with AD-7937. You can use NDRDiagnosticInfoEnabled parameter to hide diagnostic information for administrators section. However, this will affect all NDR messages.

    Here are test results for NDRDiagnosticInfoEnabled parameter:

    1. This is the rule I created to reject specific messages:
      18982-536.png

    2) Use the following command to remove diagnostic information from NDR message:

    Set-RemoteDomain Default -NDRDiagnosticInfoEnabled $false  
    get-RemoteDomain|fl name,NDREnabled,NDRDiagnosticInfoEnabled  
    

    18819-537.png

    3) The NDRDiagnosticInfoEnabled parameter works as expected:
    18991-538.png

    18992-539.png


1 additional answer

Sort by: Most helpful
  1. Andy David - MVP 109.5K Reputation points Microsoft MVP
    2020-08-19T15:37:44.133+00:00

    Try this and set for the default remote domain

    https://learn.microsoft.com/en-us/powershell/module/exchange/set-remotedomain?view=exchange-ps

    -NDRDiagnosticInfoEnabled
    This parameter is available only in on-premises Exchange.

    The NDRDiagnosticInfoEnabled parameter specifies whether diagnostic information is included in non-delivery reports (also known NDRs or bounce messages) that are sent to recipients the remote domain. Valid values are:

    $true: The diagnostic information of an NDR includes details that help administrators troubleshoot delivery problems. This detailed information includes internal server names. This is the default value.

    $false: The diagnostic information section in the NDR body as well as internal server headers from the attached original message headers are removed from the NDR.

    This parameter is meaningful only when the value of the NDREnabled parameter is $true.

    No comments