Unable to delete sub-domain from Exchange 2010

I have a Exchange 2010 server that has three domains for email. I want to keep the primary and delete the two sub-domain emails since I switched those domains over to hosted email. When I send from the primary domain which is on an Exchange server I am unable to receive the email on the hosted domain emails so there is a conflict someone.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Can you provide us with an NDR or some error you are receiving? What have you done in an attempt to look into the issue?
Simon Butler (Sembee)ConsultantCommented:
Primary reason for this is nicknames file. Exchange internally doesn't use the SMTP address of a user, so if you allow it to resolve on its own, then it will fail, because Exchange/Outlook still thinks it is an internal user.
You need to remove the entry from the nicknames file and enter it fresh.

csciarroAuthor Commented:
I added the two domains I wanted to delete to the disabledGatewayProxy in CN=Recipient Policies/CN=Default Policy. After I did that I went into the Exchange Management Console and right clicked on the domain in the Hub I wanted to delete and I receive the following error message.

Could not convert properly DisabledEmailAddressTemplates to type ProxyAddressTemplate. Error while converting string "domain" to result type Microsoft.Exchange.Data.ProxyAddress Templates: Email address template "domain" has an empty prefix or an empty address template string"
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

csciarroAuthor Commented:
Ok Simon...can you explain in more detail how remove the entry from the nicknames and what do I enter fresh?
I think he is referring to names cache in outlook. Open a new email and start typing the address, when you see it autocomplete then arrow down to it and delete it. Then try typing the address in full and send.
csciarroAuthor Commented:
I just tried that and it didn't work. I'm going to try to create a new Outlook profile on my computer and see if that works, and will let you know.
csciarroAuthor Commented:
The new Outlook profile on my computer didn't work as well.
Simon Butler (Sembee)ConsultantCommented:
I am curious where you got the instructions you have posted above from, as they don't seem correct. If this is Exchange 2010 then just remove the domains for the list of Accepted Domains, and also remove any email address policy. That forces Exchange to treat the domain as remote.
If the user accounts still exist then the address will have to be removed from there as well.

Remember, as far as Exchange is concerned, example.com and sub.example.com are two completely different domains. They would each require their own MX records for delivery for example.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
csciarroAuthor Commented:
Ok. I will revert back to the settings I changed and try to delete the domain but it didn't allow me to do it when I first tried
csciarroAuthor Commented:
how do I remove the email address policy for those 2 domains?
csciarroAuthor Commented:
Ok. I just reverted back to the settings I changed and deleted the sub domains and it worked! Good job!

Now when I try to send a message I get no error message but it stays in the Exchange queue on the Exchange server...any ideas?
Simon Butler (Sembee)ConsultantCommented:
What does it say when the message is in the queue?
Are you able to do an nslookup on the server for the MX records and get the correct answer back?

csciarroAuthor Commented:
how do I do the nslookup and the mx records are correct since I can send email from my yahoo account to the domain in question
Simon Butler (Sembee)ConsultantCommented:
The fact that you can send from your Yahoo account doesn't mean the records are correct.
You need to see what the records are as seen by your Exchange server, which may well be different because of the internal DNS configuration.

MX record lookup:

csciarroAuthor Commented:
Ok. Should I add the IP  that is pointing to this domain to the internal DNS on the server?
csciarroAuthor Commented:
Ok. These are the results and it looks like there is something wrong so how do I correct?

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

Default Server:  UnKnown

> set type=ms
unknown query type: ms
> set type=mx
> domain.com (email domain having trouble emailing)
Server:  UnKnown

domain.com (email domain having trouble emailing)
        primary name server = pdc-domain.com
        responsible mail addr = hostmaster.domain.com
        serial  = 10
        refresh = 900 (15 mins)
        retry   = 600 (10 mins)
        expire  = 86400 (1 day)
        default TTL = 3600 (1 hour)
Simon Butler (Sembee)ConsultantCommented:
If you have a zone internally for the domain that you are trying to email (remember domain.com and sub.domain.com are not the same), then you need to create an MX record in the DNS to point to the external MX record host of the hosted provider.

csciarroAuthor Commented:
Ok. I have the main domain x.com and the sub domain xx.com. Which domain do I add internal MX record too? Also, I know how to create the MX record but what information do I add to it. Please provide me with the correct steps to do this. Thanks
csciarroAuthor Commented:
Also, do I need to add a CNAME and A records?
Simon Butler (Sembee)ConsultantCommented:
If you already have the zone in your internal DNS, then the records that you need to create will depend on the host names being used.

If the public MX record is something like mail.sub.domain.com , where sub.domain.com is the domain you have a zone for, then you will have to create both the A record and the MX record.
However if the MX record is something like host.exchange.com, which is a host name of the hosted email provider, then you just need to create the MX record.

However I would simply create the same records in your internal DNS that you were told to create in the public DNS.

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.