Email routing O365 Exchange

We have migrated an email domain xyz.com from an Exchange 2010 server to O365. We have other email domains on this Exchange server. All external email is going fine to mailboxes in O365. Internal email originating from the Exchange server from other domains is not reaching mailboxes in O365 but still reaching their old mailbox on Exchange server.

I have hidden the mailbox of xyz.com's users in Exchange, removed xyz.com as Authorative domain from Exchange server, created a send connector to bypass anti-spam filter and send email destined for xyz.com directly using MX record. But emails from other internal domains are still being recieved only on Exchange server not on  O365

Please advise any steps I can take to troubleshoot further

Thanks
abhijitm00Asked:
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.

Jason CrawfordTransport NinjaCommented:
You need to convert the migrated mailboxes to Mail Enabled Users and populate the targetAddress with the onmicrosoft.com alias of the Office 365 mailbox.
abhijitm00Author Commented:
Thanks Jason. To convert them to mail enabled users do I need to delete their mailboxes on Exchange server to do this?
Jason CrawfordTransport NinjaCommented:
Someone already wrote a script for the entire process:

https://gallery.technet.microsoft.com/office/How-to-convert-mailbox-to-c92c9153

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
Adam BrownSenior Systems AdminCommented:
Change xyz.com from an Authoritative domain to an Internal Relay domain or make sure the users have their .onmicrosoft.com email address as a targetaddress in their AD Attributes (Jason Crawford's script should do this for you). Once users are migrated to O365, they should not have a mailbox on-prem. If the migration was done as a Hybrid Move instead of a cutover or staged migration, this should be done automatically.
abhijitm00Author Commented:
The script worked. Thanks Jason and Adam
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
Exchange

From novice to tech pro — start learning today.