Mailboxes without AD accounts, not in disconnected state

We have a weird situation right now. We have a group of mailboxes whose AD accounts no longer exist, but which still show up as active mailboxes rather than disconnected. As far as I can tell the AD accounts were deleted long ago - my oldest AD backup does not have them in the tree so I cannot restore them that way. These are not active employees so I am not trying to recover anything, just clean up the mess. None of my staff is fessing up to this, either, so I don't know the method of their disappearance.

When I try to view the properties page of the mailbox, or run any powershell against it, the error states that the user couldn't be found on the domain controller (true). We have domain controllers from Windows Server 2003 to 2012, functional level of 2003. Exchange is 2010 SP3, RU4, on Windows Server 2008 R2.

If an AD account is removed, shouldn't any associated mailbox move to a disconnected state? Any reasons why that wouldn't happen? Also, can I get rid of these somehow? Disable-Mailbox and Remove-Mailbox are failing without an AD object...

Posted Mar 25, 2014, 8:07 PM UTC

513
nmapLocalhost•
2
chrish012OP•

I should say i did Get-MailboxDatabase | Clean-MailboxDatabase about an hour ago and they remain.

2
Weyoun2•

I got nuttin, but somehow I suspect ADSIEDIT is going to be your friend here to manually edit the mailbox object.

2
ashdrewnessMCM/MCSM/MVP-Exchange•

Do you use resource forests at all? Could've been an old remote mailbox. Do a stare & compare of properties between a normal mailbox & this one to see what's different. Aside from that a last ditch effort would be to move all mailboxes (including arbitration mailboxes) to another DB & then whack that old DB using adsiedit. After a full backup of course.

1
chrish012OP•

No resource forest, no remote/linked mailboxes. I can't do a stare and compare; the AD user account does not exist and the exchange mailbox properties are all empty (accompanied by an error). I cannot move them because there is no AD object found and I don't know what database they are 'in'

1
ashdrewnessMCM/MCSM/MVP-Exchange•

How many databases in the environment? Could move all good mailboxes to new databases & then delete the old one. This is really only feasible if you're not a huge environment. It could be pulling shadow data from one of you databases.

You could try a new-mailboxrepairrequest on all databases but that may not yield any results.

1
chrish012OP•

Just getting back to this issue... We have 29 databases right now, and I don't know which ones have the bad mailboxes. I found one thread suggesting to remove the EMC cache file, which seemed to get the mailboxes out of the Recipients list in EMC but they still come up in EMS if i go looking for them.

New-MailboxRepairRequest failed. I tried to recreate a user account in the OU it was expecting, but it hasn't "synced up" with the mailbox (I didn't expect it to).

Googling suggests others have had this problem, mostly in a situation where they had to recover a domain controller. To my knowledge this hasn't happened in our environment. And no answers, only more questions.

This is very frustrating...

1
chrish012OP•
1
whatcantyoudo•

Is System Attendant borked and running off of a cache, or perhaps do you have AD replication problems lingering in the background causing those old objects to be seen still?

1
ashdrewnessMCM/MCSM/MVP-Exchange•

Very crazy for sure. This may not be the your fav answer but I would think Microsoft would be genuinely interested in hearing the issue & possibly trying to figure out root cause.

Also, not sure on probability of success on this one but you might try changing the deleted mailbox retention period on all your databases down to something like 1 day; assuming this issue hasn't already gone on longer than the current setting & also that you're ok with doing it (understanding the reprocussions).

Only other thing I can think of is parsing through user accounts in ADUC/ADSIEDIT & trying to find one that still has exchange attributes but no mailbox to be found. Definitely let me know how this one ends up.

1
chrish012OP•

SOLVED - We were on the right path with AD lingering objects. As I mentioned one of our remote DC/GCs was known to be having replication errors, which lasted longer than the tombstone period, which caused it to stop replicating to its designated partners. Either by AD's own decision, or some admin who hasn't come clean, a bunch of replication links were created from it to various other domain controllers and the corrupted directory partition made its way into the world.

Our primary data center has multiple domain controllers and all held the Global Catalog. What we noticed was that as EMC/EMS launched and connected to different GCs, the phantom mailboxes might appear or not. We determined that so many GCs in one site was not necessary and started removing it from those known to have bad info. We ended up removing Global Catalog from all the domain controllers with which the bad DC above was replicating. I don't know why that bad data didn't make it beyond those, but I'm glad. In the end we didn't have to go hunting for lingering objects, unticking GC on a handful of NTDS objects was enough.

I don't want to get into why we don't watch our AD better...

2
ashdrewnessMCM/MCSM/MVP-Exchange•

Great to hear you got it resolved. I didn't know it was intermittent. You can also use EMC/EMS to hard set GC's for troubleshooting purposes, as an FYI.

1
chrish012OP•

Absolutely will keep you in the loop, and a call to Microsoft may be in my future...

Current working theory is "Lingering Objects" in the active directory. We discovered a domain controller (with Global Catalog) in a child domain, in a retail location, which has been having trouble replicating the parent domain partition for going on longer than the tombstone period. It has been demoted but the damage appears to be done, and we're now trying to find and remove those 'ghost' objects.

Whats funny is that certain GCs seem to have this bad information, and others don't. So as EMC/EMS decides to pick a GC in its site, its hit or miss whether you're going to see that corrupt info.

1