[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 539
  • Last Modified:

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.
0
Techneut
Asked:
Techneut
  • 24
  • 18
1 Solution
 
Alan HardistyCo-OwnerCommented:
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
0
 
TechneutAuthor Commented:
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.
0
 
TechneutAuthor Commented:
Is it possible to have AD accounts w/mailboxes and still send them emails that are no longer on our exchange server?
0
Free tool for managing users' photos in Office 365

Easily upload multiple users’ photos to Office 365. Manage them with an intuitive GUI and use handy built-in cropping and resizing options. Link photos with users based on Azure AD attributes. Free tool!

 
Alan HardistyCo-OwnerCommented:
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.
0
 
TechneutAuthor Commented:
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...?
0
 
Alan HardistyCo-OwnerCommented:
Is it accepting the emails from outside, inside, or both?
0
 
TechneutAuthor Commented:
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.
0
 
TechneutAuthor Commented:
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.
0
 
Alan HardistyCo-OwnerCommented:
Can you run the following please and advise if it is still listed:

Get-AcceptedDomain
0
 
TechneutAuthor Commented:
it is not in the list...
0
 
TechneutAuthor Commented:
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
0
 
TechneutAuthor Commented:
Do I have to reboot the server to have everything "set" into place?
0
 
Alan HardistyCo-OwnerCommented:
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.
0
 
TechneutAuthor Commented:
no luck...
0
 
TechneutAuthor Commented:
What I have noticed is that when the name is finished typed, it gets underlined? As if it knew the email address?
0
 
Alan HardistyCo-OwnerCommented:
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.
0
 
TechneutAuthor Commented:
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.
0
 
Alan HardistyCo-OwnerCommented:
Okay - have you also deleted the Offline Address Book or regenerated the Offline address book and then re-downloaded it in Outlook?
0
 
TechneutAuthor Commented:
Yes I have just checked and rebooted the server. Removed them from address book on server then redownloaded and still same result.
0
 
Alan HardistyCo-OwnerCommented:
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"
0
 
TechneutAuthor Commented:
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?
0
 
Alan HardistyCo-OwnerCommented:
It should all be very quick with each command - unless you have zillions of users on your server.
0
 
TechneutAuthor Commented:
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"
0
 
Alan HardistyCo-OwnerCommented:
Check the name of your Global Address List and replace it accordingly.

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

Leave that for now.

Any better now?
0
 
TechneutAuthor Commented:
No it still went to our server.
0
 
Alan HardistyCo-OwnerCommented:
Okay - just a reminder - have you removed the email addresses from the user accounts?
0
 
TechneutAuthor Commented:
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?
0
 
Alan HardistyCo-OwnerCommented:
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.
0
 
TechneutAuthor Commented:
Okay will do, and by the way - thank you for sticking around to see me through this!
0
 
Alan HardistyCo-OwnerCommented:
You are welcome - I like getting my teeth into a problem :)
0
 
TechneutAuthor Commented:
It did not work and I'm not sure where it went because I don't see it in my queue.
0
 
Alan HardistyCo-OwnerCommented:
What didn't work exactly?
0
 
TechneutAuthor Commented:
The email didn't go to the recipient. I believe it went to our server?
0
 
Alan HardistyCo-OwnerCommented:
Okay - so it didn't arrive at the recipient - but it won't be delivered internally now and should be sent externally.
0
 
TechneutAuthor Commented:
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?
0
 
TechneutAuthor Commented:
I believe it worked!
0
 
TechneutAuthor Commented:
TY VM!
0
 
Alan HardistyCo-OwnerCommented:
Excellent - we got there in the end :)

Thanks for the points.

Alan
0

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

  • 24
  • 18
Tackle projects and never again get stuck behind a technical roadblock.
Join Now