"The SMTP address has no mailbox associated with it" error when you access a user's mailbox by using EWS application

We are trying to Connect Dynamics 365 (on-premises) to Exchange Server (on-premises) to do server side sync. I have done these steps https://technet.microsoft.com/en-us/library/mt622062.aspx 

Using CRM 0216.

Every time i "Test and Enable mailboxes" none go out and the alerts shows: "The SMTP address has no mailbox associated with it" error when you access a user's mailbox by using EWS application" (See picture)

I have set up and added the application impersonation as well.

I have verified user credentials are good, and ports are accurate, the machine is updated to Cumulative Update 9 for Exchange Server 2013, I have rebooted, restarted services etc, i tried different users and credentials.
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.

Satish AutiSenior System AdministratorCommented:
Are you trying to configure it with mail-enabled user or it's mailbox. because mail enabled user does not have the mailbox attributes.
Mohammed HamadaSenior IT ConsultantCommented:
I guess it might be SPN issues with user's AD Object. or it could be the EWS is not configured properly the Autodiscover for Exchange might not function as expected.

Try testing impersonation using https://testconnectivity.microsoft.com/
Go to Service Account Access (Developers) under Exchange Server

There make sure you select "Use Exchange Impersonation" and type the user you're impersonating and the user that has impersonation ... you can see the issue there.
westerndisposalAuthor Commented:
connected successfully (snap shot of results). i did not see any options for impersonations on that site.
Ensure Business Longevity with As-A-Service

Using the as-a-service approach for your business model allows you to grow your revenue stream with new practice areas, without forcing you to part ways with existing clients just because they don’t fit the mold of your new service offerings.

Satish AutiSenior System AdministratorCommented:
Good to here that
Mohammed HamadaSenior IT ConsultantCommented:
When you go to the MS test site make sure you Pick this test "Service Account Access (Developers)" not EWS
Under this connectivity you can test the Impersonation.. I guess there might be a problem with impersonation .. I have done for an online app and it worked pretty well for me but I needed to configure new Role for Impersonation not adding it under an existing one.

The command that would assign impersonation to the User which you're using is this
New-ManagementRoleAssignment –Name:"Impersonating" – Role:ApplicationImpersonation –User:"CRM admin User"

You could show us the result of the current user that's assigned impersonation
Get-ManagementRoleAssignment -RoleAssignee "CRM admin" -Role ApplicationImpersonation -RoleAssigneeType user
westerndisposalAuthor Commented:
my apologies Mohammed Hamada i dont see the option for Service Account Access (Developers) not EWS see attached.
westerndisposalAuthor Commented:
The problem was for the credentials we were using Windows Integrated Authentication and not Credentials Specified in Email Profile in addition we were using DOMAIN\user name vs user@westerndisposal.com and password. So we go it working the question can be closed.

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
Mohammed HamadaSenior IT ConsultantCommented:
Great to hear that :) , You can close the question by selecting your own post as the answer.
westerndisposalAuthor Commented:
figured out the problem.
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
Dynamics CRM

From novice to tech pro — start learning today.