Exchange Mail Flow Error: RESOLVER.ADR.ExRecipNotFound; not found

Hi All,

We have a few users, where email is being bounced back with a NDR to the senders. Below is what we are receiving.

IMCEAEX-_O=ING+20GROUP_OU=Common+20Administrative+20Group_cn=Recipients_cn=*************

Remote Server returned '550 5.1.1 RESOLVER.ADR.ExRecipNotFound; not found'

We've been troubleshooting this and seems like that tehir is a issue with the X.500 address, and found plenty of sites which talk about this.

We've cleared the cache address of users sending emails to user A with the above issue.

We've also followed solutions from the following sites:

https://amagsmb.wordpress.com/2014/03/06/getting-ndr-remote-server-returned-550-5-1-1-resolver-adr-exrecipnotfound-not-found-for-existing-user/

http://mostlyexchange.blogspot.com.au/2007/08/exchange-2007-legacyexchangedn-and-mail.html

http://exchangeitup.blogspot.com.au/2014/07/exchange-2010-bounced-email-error-550.html

and even using this script

    

cls

Function CleanLegacyExchangeDN ([string]$imceaex) {

    #IMCEAEX Example: IMCEAEX-_O=ING+20GROUP_OU=Common+20Administrative+20Group_cn=Recipients_cn=*************"

    $imceaex = $imceaex.Replace("IMCEAEX-","")
    $imceaex = $imceaex.Replace("_","/")
    $imceaex = $imceaex.Replace("+20"," ")
    $imceaex = $imceaex.Replace("+28","(")
    $imceaex = $imceaex.Replace("+29",")")
    $imceaex = $imceaex.Replace("+2E",".")
    $imceaex = $imceaex.Replace("+21","!")
    $imceaex = $imceaex.Replace("+2B","+")
    $imceaex = $imceaex.Replace("+3D","=")
    $regex = New-Object System.Text.RegularExpressions.Regex('@.*')
    $imceaex = $regex.Replace($imceaex,"")
    $imceaex # return object
}

$ExPowerShellPath = $env:ExchangeInstallPath + "bin\RemoteExchange.ps1"

#region "Check Powershell Version and Load in Exchange 2013 Poweshell Snap-In"

if ((Get-Host).Version.Major -eq 1)
{
    Write-Output "$CurrentDate --> Powershell Version 1 is not supported `n" | Add-Content $LogPath
throw "Powershell Version 1 not supported";
}

if (!(Get-Command Get-ExchangeServer -ErrorAction SilentlyContinue))
{
if (Test-Path $ExPowerShellPath)
{
. $ExPowerShellPath
Connect-ExchangeServer -auto
} elseif (Test-Path "C:\Program Files\Microsoft\Exchange Server\bin\Exchange.ps1") {
Add-PSSnapIn Microsoft.Exchange.Management.PowerShell.Admin
.'C:\Program Files\Microsoft\Exchange Server\bin\Exchange.ps1'
} else {
throw "Exchange Management Shell cannot be loaded"
}
}

#endregion


#region "Main"

$CurrentMBXUser = Read-Host "Enter User affected by (UserAccount) "
$IMCEAEXAttrib = Read-Host "Enter the users IMCEAEX, this is found on the NDR "

$userLegacyDNIssue = New-Object PsObject
$userLegacyDNIssue  | add-member MBXAccount $CurrentMBXUser
$userLegacyDNIssue  | add-member IMCEAEX $IMCEAEXAttrib

$exchangeLegDN = CleanLegacyExchangeDN($userLegacyDNIssue.IMCEAEX)
$x500address = "X500:$exchangeLegDN"

    # check what recipient type is
    $recipientType = (Get-Recipient $userLegacyDNIssue.MBXAccount).RecipientType

    # format command appropriately
    switch ($recipientType) {
        "DynamicDistributionGroup" {$command = "Set-DynamicDistributionGroup `"$($userLegacyDNIssue.MBXAccount)`" -EmailAddresses @{Add=`"$x500address`"}"}
        "MailUniversalDistributionGroup" {$command = "Set-DistributionGroup `"$($userLegacyDNIssue.MBXAccount)`" -EmailAddresses @{Add=`"$x500address`"}"}
        "MailUniversalSecurityGroup" {$command = "Set-DistributionGroup `"$($userLegacyDNIssue.MBXAccount)`" -EmailAddresses @{Add=`"$x500address`"}"}
        "UserMailbox" {$command = "Set-Mailbox `"$($userLegacyDNIssue.MBXAccount)`" -EmailAddresses @{Add=`"$x500address`"}"}
        "MailUser" {$command = "Set-MailUser `"$($userLegacyDNIssue.MBXAccount)`" -EmailAddresses @{Add=`"$x500address`"}"}
        "MailContact" {$command = "Set-MailContact `"$($userLegacyDNIssue.MBXAccount)`" -EmailAddresses @{Add=`"$x500address`"}"}
        "PublicFolder" {$command = "Set-MailPublicFolder `"$($userLegacyDNIssue.MBXAccount)`" -EmailAddresses @{Add=`"$x500address`"}"}
    }

    # output command to console
    $command

#endregion

Seems like nothing is working.

Any help on this would be great.



  • Edited by maksoy2099 Monday, February 16, 2015 3:02 AM
February 16th, 2015 6:01am

Hi,

Since the issue only occurs on some specific users, I suggest we compare their AD properties and find difference:

Pease export the following information on both of a good user and a problematic user so that I can compare with them. On the DC\GC server, open Command Prompt, type the commands:

ldifde -f c:\<Name of User>.txt -d "distinguishedName of User"

Here is the detailed steps for getting the distinguishedName of a user:

a. Run the Adsiedit.msc from a command prompt.

b. Expand Domain->DC=domainName,DC=com->CN=Users

c. Right click on CN=the problematic user name, click Properties.

d. Find the attribute distinguishedName attribute. Double click copy the value of it.

Thanks,

Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com

 

Free Windows Admin Tool Kit Click here and download it now
February 16th, 2015 9:56pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics