Link to home
Start Free TrialLog in
Avatar of Techneut
TechneutFlag for United States of America

asked on

how to remove email domain off exchange 2010 to stop receiving emails from internally

We just unmerged with a company that we merged into our AD and exchange. Now that they have left, we cannot email them (have not deleted their mailboxes - but disabled their accounts) from internally. I have deleted cached information on our outlooks and manually retyped their address.

No error because I believe our server is still accepting the emails.

Removed them from HUB transport rules - accepted domains - address policies.. no luck

We have Exchange 2010 on 2008 server.... any help appreciated.
Avatar of Alan Hardisty
Alan Hardisty
Flag of United Kingdom of Great Britain and Northern Ireland image

Remove the domain from the Accepted domain list (after removing any Email Address Policies) and then delete all email addresses in user accounts, email-enabled Public Folders and distribution groups etc.

Org Config> Hub Transport> Accepted Domains
Avatar of Techneut

ASKER

I have removed them from accepted domains, but not yet removed user accounts because there was a day of emails that they still need in those mailboxes.
Is it possible to have AD accounts w/mailboxes and still send them emails that are no longer on our exchange server?
You can remove the domain from the accepted domain list and this won't affect your received emails in people's mailboxes.

If you have removed the accepted domain - you won't be able to receive emails to those addresses, although Exchange may still deliver emails sent internally due to cached info.
So that is where I'm at.

"If you have removed the accepted domain - you won't be able to receive emails to those addresses, although Exchange may still deliver emails sent internally due to cached info."

Is there any reason why, on my server, is still accepting those emails? I manually retype the email address but they still do not receive the emails...?
Is it accepting the emails from outside, inside, or both?
The domain was moved to another office, completely separate from our domain and network. They can send and receive externally, and send to our domain. We cannot send to them because the emails are still being routed to our server. It seems that our server is accepting the emails for that domain, even after we removed the domain from accepted domain on our exchange.
I have verified in our ADSI that the listof accepted domainsis stored in CN=configuration -> CN=Services -> CN = Microsoft Exchange -> CN = "myOrganization" -> CN = Transport Settings -> CN = Accepted Domains

is not listed there as well. Still so confused on what needs to be done.
Can you run the following please and advise if it is still listed:

Get-AcceptedDomain
it is not in the list...
Should I change all of their email accounts in AD to a different email address? For instance:

Joe Smith = jsmith@abc.com would be changed to jsmith@def.com

Willing to try anything at this point... but I'm guessing the email will still go our server since for some reason it thinks we still accept abc.com
Do I have to reboot the server to have everything "set" into place?
Good that it's not in the list.

Have you restarted the Exchange Transport Service since removing the domain?  If not - please do and try emailing the domain again.
no luck...
What I have noticed is that when the name is finished typed, it gets underlined? As if it knew the email address?
It will as it will be cached in Outlook.

When you start to type the email address - you should see the rest auto-fill, but before you press enter, highlight the name and press Delete.  Once deleted, start to type the address again and complete the full email address, then send and see what happens.
Did that a few times. As I type in the email address, I delete the email address. Then retype it in manually, but it underlines the name again and changes the entire email address to just a name.
Okay - have you also deleted the Offline Address Book or regenerated the Offline address book and then re-downloaded it in Outlook?
Yes I have just checked and rebooted the server. Removed them from address book on server then redownloaded and still same result.
Did you rebuild the all the address books?

Update-Addresslist "AddressListName"
Update-globaladdresslist -identity "Global Address List"
Update-offlineaddressbook -identity "OfflineAddressBookName"
Update-FileDistributionService -identity CASSERVERNAME -type "oab"
Through the GUI, I clicked on Apply on the address list, but I will run the commands you posted to see if it works. Will let you know... about how long does this take?
It should all be very quick with each command - unless you have zillions of users on your server.
WARNING: The recipient "abc.com/Microsoft Exchange System Objects/Offline Address Book - First Administrative Group"
is invalid and couldn't be updated.
WARNING: The recipient "abc.com/Microsoft Exchange System Objects/Schedule+ Free Busy Information - First
Administrative Group" is invalid and couldn't be updated.

when I tried to run: Update-globaladdresslist -identity "Default Global Address List"
Check the name of your Global Address List and replace it accordingly.

Each name needs to match your environment.
Everything else ran perfectly except that line, I will retry.
Yeah same issue, replaced the name exactly as it is stated, but the same warning... Everything else ran perfectly.
I get the same on a Customer's server - works on mine!

Leave that for now.

Any better now?
No it still went to our server.
ASKER CERTIFIED SOLUTION
Avatar of Alan Hardisty
Alan Hardisty
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
no the user accounts still have email addresses, because I was told to reserve the mailboxes on exchange. If I remove those email addresses, won't I lose their mailboxes?
No - Changing the email address or removing it is fine.  Do they have a single email address in the account, or multiple?

If they have multiple - delete the old domain address.

If a single address - modify it to make it different to the current one by adding a 1 to the end of the user part or something similar.
Okay will do, and by the way - thank you for sticking around to see me through this!
You are welcome - I like getting my teeth into a problem :)
It did not work and I'm not sure where it went because I don't see it in my queue.
What didn't work exactly?
The email didn't go to the recipient. I believe it went to our server?
Okay - so it didn't arrive at the recipient - but it won't be delivered internally now and should be sent externally.
oh... So if I change back the email address on the user account it won't be in the inbox - as if it were to be sitting in a queue somewhere?
I believe it worked!
TY VM!
Excellent - we got there in the end :)

Thanks for the points.

Alan