Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6072853
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T10:12:21+00:00 2026-05-23T10:12:21+00:00

I have two servers: S1 is Exchange2010 S2 is Exchange 2007 Both servers are

  • 0

I have two servers:
S1 is Exchange2010
S2 is Exchange 2007

Both servers are in the same domain in ActiveDirectory.

Idea is to have “service account” on S1 with enabled impersonation of users from both servers. My app is using credentials of “service account” and then starts to iterate through a list of smtp addresses. It impersonates each smtp address and does some processing on content of mailbox of that account.

That is a theory, now time for problems.

I can connect as a service account and can access its mailbox but when I try to access mailbox of impersonated user I get exception saying that “SMTP address has no mailbox associated with it”. And exception happens for both servers.

I started to debug and google about possible reasons and out of nothing I changed this:

svc.ImpersonatedUserId = new ImpersonatedUserId(ConnectingIdType.SmtpAddress, smtpAddress);

into this:

svc.ImpersonatedUserId = new ImpersonatedUserId(ConnectingIdType.PrincipalName, smtpAddress);

and it worked which is very strange because month ago I had different setup only with one server and using SmtpAddress enum worked and my admin swears that config of impersonation is exactly the same.

Now, if anyone could provide me with some hints on why I cannot use ConnectingIdType.SmtpAddress and what I should do to make it possible to work?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T10:12:21+00:00Added an answer on May 23, 2026 at 10:12 am

    Of course it turned out that admin did something different way for my current configuration. New environment has a policy that account name is different than smtp address for an account and smtp has a dot between name and surname of a user. So, for example on old config I could impersonate User100@example.com no matter what ConnectingIdType I chose but on new environment I have to set proper id type depending if I’m using smtp or account name as impersonated id.

    Hope it will help in case somebody else’s admin “didn’t changed anything” too 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two ftp servers with fxp enabled on both, I'm just wondering how
I have two load balanced servers each running exactly the same copy of various
We have two servers, both are containing a local application connecting to local web
I have two tomcat servers running at the same time. I have reports which
I have two servers, same Database. If I add a new row/column in DB1(Server1)
I have two servers with TFS installed, one that runs the build service, and
We have two servers in the same network. One of them is the server
I have two servers, both running phpmyadmin, and I exported a mysql dump on
I have two servers that are running (almost) identical installs. Both servers are VMs
In the display server view I have two servers listed. Both used to show

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.