Freigeben über


Fix those IMCEAEX NDRs

I had a customer migrate some mailboxes a few weeks ago, and they're now just getting some NDRs.  Here's a sample NDR:

imceaex-1

To fix this, you can take the NDR that you receive, copy/paste it into this function, and then take the resultant decoded x500 address and add it back to the proxyAddress array for the recipient.

 Function FixX500($address)
     { 
     $x500 = $address.Replace("IMCEAEX-","x500:").Replace("_","/").Replace("+20"," ").Replace("+28","(").Replace("+29",")").Split("@")[0]
     Write-Host "Add the following value to the proxyAddresses of the errored recipient:"
     Write-Host -ForeGroundColor Green $x500
     }

To see it in action with the above NDR:

imceaex-2

Comments

  • Anonymous
    August 30, 2016
    Thankshaven't seen that one yet...only years ago when doing forests migrations(or fixing other's:))
  • Anonymous
    September 18, 2016
    Nice Automation to fix the NDR..