Thursday, May 7, 2009

Why Does Exchange Hate me...

What the hell is going on with my exchange server!!! My Global Address List is showing two entries for the group Support. When I open the items to get the details for each entry it shows one has an email address of support@COMPANYNAME.com and the other has support2@COMPANYNAME.com. This is causing issues for my users when they try and send an email to Support, support2@COMPANYNAME.com shouldn't exist.

They both have the icon of being a public folder. Armed with this knowledge, I took the time to comb through my Public Folder structure (well over 500 mail enabled folders) and we couldn't find the culprit. Failing the manual process (don't ask me why I tried the hard way first, but I did) I turned to PowerShell. Using PowerGui, in conjunction with the Exchange Management shell, I browsed the Mail Enabled Public Folders using the command
get-mailPublicFolder |Sort-Object -Property 'Alias'

Using this command, I found the two entries. I see one located at
corp.COMP.com/Microsoft Exchange System Objects/Support THIS IS THE GOOD ONE

and the other one is located at
corp.COMP.com/Microsoft Exchange System Objects/Support 76405063 THE BAD ONE.

Armed with this info, I turned to PowerShell and ran the following command:
Get-MailPublicFolder | where { $_.Name -eq 'Support 76405063'} | Remove-PublicFolder -Confirm
running that, i got this wonderful message:
# WARNING: There is no existing PublicFolder that matches the following Identity: '/O=COMPANY/OU=EXCHANGE ADMINISTRATIVE GROUP (FYDIBOHF23SPDLT)/CN=RECIPIENTS/CN=SUPPORT98FAB85E4D0DF6C75D9FF78950567A5F351BA6'. Please make sure that you specified the correct PublicFolder Identity and that you have the necessary permissions to view PublicFolder.
#

WTF!!!!

So i thought, OK, lets try and hide the folder from the GAL, so i ran:
Get-MailPublicFolder | where { $_.Name -eq 'Support 76405063'} | Set-MailPublicFolder -HiddenFromAddressListsEnabled $true

SAME PROBLEM.


Does anyone have any thoughts to what could be causing this?

Any help would be appreciated.

app

2 comments:

Brad said...

Was this a fresh Exchange 2007 install, or was it an upgrade of some sort? From the numbers at the end it almost seems like it was a folder/Email address that got created and name appended because it already existed.

Aaron Perrault said...

Upgrade from 2003. I am seeing other remnants from the 2003 organization, and for the life of me i can't get rid of this. I used ADSIedit, and that doesn't help. Any help would be appreciated.

app