Sometimes we get a delivery failure due to the Legacy Exchange DN or X500 address. An example below:
Delivery has failed to these recipients or groups:
MIS SINGAPORE
The e-mail address you entered couldn’t be found. Please check the recipient’s e-mail address and try to resend the message. If the problem continues, please contact your helpdesk.
Diagnostic information for administrators:
Generating server: Server.domain.local
IMCEAEX-_O=SG+20DOMAIN+20EXCHANGE_OU=EXCHANGE+20ADMINISTRATIVE+20GROUP+20+
28FYDIBOHF23SPDLT+29_CN=RECIPIENTS_CN=MIS+20SINGAPORE@domain.local
#550 5.1.1 RESOLVER.ADR.ExRecipNotFound; not found ##
I wrote a simple script to convert these into a proper X500 address, which can then be added to the affected user’s proxy address. All you need to do is copy the IMCEAEX error value into the $X500Source variable below. The resulting $X500 variable will then be used to resolve the issue in Exchange.
# Define the Legacy Exchange DN here
$X500Source = “IMCEAEX-_O=SG+20Domain+20EXCHANGE_OU=EXCHANGE+20ADMINISTRATIVE+20GROUP+20+
28FYDIBOHF23SPDLT+29_CN=RECIPIENTS_CN=MIS+20SINGAPORE@domain.local”
# Converts the various strings to the proper syntax
$X500 = $X500Source.Replace(“_”, “/”)
$X500 = $X500.Replace(“+20″, ” “)
$X500 = $X500.Replace(“IMCEAEX-“, “”)
$X500 = $X500.Replace(“+28”, “(“)
$X500 = $X500.Replace(“+29”, “)”)
$X500 = $X500.Replace(“+2E”, “.”)
$X500 = $X500.Replace(“+5F”, “_”)
$X500 = $X500.Replace(“@apcprd06.prod.outlook.com”, “”)
Write-Host $X500
Like this:
Like Loading...