13 July 2008

CRM 4.0 E-Mail Router for hosted Exchange

I have a client who uses a hosted Exchange for their email system (also hosted AD) and my client uses CRM 4.0 On-Premise edition. So the CRM E-Mail Router solution is:
  • Outgoing: local SMTP service, use local system account
  • Incoming: hosted Exchange, use a service account which can access the remote Exchange mailbox
  • Both Outgoing and Incoming are configured to use Email Router

When test the connection, the outgoing STMP works fine, however, the incoming Exchange get the following error:
"Incoming Status: Failure - The remote Microsoft Exchange e-mail server returned the error "(404) Not Found". This user or queue does not have a mailbox. Create a mailbox and try again. The remote server returned an error: (404) Not Found. "

It is strange because I'm sure the user has mailbox! Thanks for Tony Iadarola who is a senior engineer works for the hosting company , after analyzing the Exchange server logs, he pointed out that the CRM E-Mail router service try to query the mailbox by using the 'half' SMTP address!( which is not recommend, MS recommend either SamAccount or Legacy DN, or mailbox GUID is used)

e.g.: In our case, we have a test user in CRM, the user's SamAccount name is: TU341-NBG125, SMTP mailbox: TUser@domain.com which is the user's primary email address in CRM. The CRM E-Mail Router service should be making a request to Exchange mail server for the Test users mailbox using http://ExchangeMailServer/Exchange/TU341-NBG125 instead it is using http://ExchangeMailServer/Exchange/TUser

If I change the user's primary email address to TU341-NBG125@domain.com, the problem will disappear! However the email address doesn't mean anything to customers, so I can't change the email address.

Finally I found a workaround: edit ..\Microsoft CRM Email\Service\Microsoft.Crm.Tools.EmailAgent.xml
Search the test user section(within the tag: <ProviderConfiguration>), edit it's <EmailAddress> tag, change the email address from TUser@domain.com to TU341-NBG125@domain.com, then save the xml file, modify it's property to Read-Only, restart the CRM E-mail Router Service.(You have to make the file read-only first, otherwise the service will re-write the <EmailAddress> tag by using the user's primary email address)

The problem is solved, all users still use their normal email address, and the CRM E-Mail Router is able to create an Email activity for incoming emails with correct email address. However I think the CRM E-mail Router should be improved by query mailbox via SAM, instead of using SMTP address which may not unique for a hosted environment.



16/07/2008, add to my post: the service account needs to have permission to access 'Root' and 'Inbox' folder of user's mailbox. e.g. if the service account has such permission, it can find user's mailbox by using the 'half' SMTP address (http://ExchangeMailServer/Exchange/TUser ). However it's might be a problem for a hosted company who doesn't want to grand the permission for the service account.

12 comments:

Hans-Petter Lund said...

Very valuable information!
Just two questions:
1) Is the CRM servers defined in the same domain as the Exchange server?
2) Is webdav (http-dav) the only supported protocol for communication between the e-mail router and Exchange?

Thank you

Anonymous said...

2) Router is communicating with Exchange via HTTP-DAV commands and there is not way to change this.

Anonymous said...

Hi Jim,

I'm hoping you can provide a quick answer...

I'm trying to configure an inbound connection profile in the CRM email router that points to an individual hosted Exchange mailbox in a different data center.

Is it possible to connect to a remote mailbox like this using an HTTPS connection to the OWA front-end server (much like one would do when configuring a Windows Mobile phone for ActiveSync)?

Thanks!

Alan Osborne

Anonymous said...

This error will also occur when you type in the CRM server (http://crm/) in the server field on the incoming rule.

Mehmet Şirin ÇELİK said...

Hi Jim,


Customer does not want to give him/her email password and they are absolutly right.

Can be configure Hosted CRM Email router on an custom web page?

Anonymous said...

酒店經紀PRETTY GIRL 台北酒店經紀人 ,禮服店 酒店兼差PRETTY GIRL酒店公關 酒店小姐 彩色爆米花酒店兼職,酒店工作 彩色爆米花酒店經紀, 酒店上班,酒店工作 PRETTY GIRL酒店喝酒酒店上班 彩色爆米花台北酒店酒店小姐 PRETTY GIRL酒店上班酒店打工PRETTY GIRL酒店打工酒店經紀 彩色爆米花

Alex said...

In similar condition I don't know what to do and once myself helped-recover exchange password mail.Tool helped me fortunately and it is free as far as I know.Moreover utiltiy program can unlock password protected files with *.pst extension.

CLIP-ART said...

CCNA Networking Terms

ARP (Address Resolution Protocol) RARP

PDU (Protocol Data Units)

Cisco Catalyst 1900 – 2900XL – 2950 - (Configuration and IOS) Commands

Cisco Router / Basic Router Operation / Commands

madywatson said...

I really like your post, this will helps for hosted exchange.

Hosted Exchange Email

Steve Fu said...

Hi,

May I know is it possible to install the MSCRM Email Router and connect to Lotus mail server?

It is because my client do not use Microsoft Outlook & Exchange. They are using Lotus Notes.

Thanks.

Unknown said...

With hosted exchange, you can easily access your email, calendars and contacts from anywhere. You can also sync your contacts, calendars and notes with hosted exchange.

Hosted Exchange

Quân Đào said...

học kế toán thực hành cấp tốc
học kế toán thực hành cấp tốc
học kế toán thực hành tại cầu giấy
học kế toán thực hành tại thanh xuân
]học kế toán thực hành tại hà đông
học kế toán thực hành tại long biên
học kế toán thực hành tại long biên
học kế toán thực hành tại hải phòng
học kế toán thực hành tại bắc ninh
học kế toán thực hành tại tphcm
học kế toán thực hành tại quận 3
học kế toán thực hành tại hải phòng
học kế toán thực hành tại bắc ninh
học kế toán thực hành tại bình dương
học kế toán thực hành tại biên hòa
học kế toán thực hành tại vinh
học kế toán thực hành tại vinh
học kế toán thực hành tại huế
học kế toán thực hành tại đà nẵng
học kế toán thực hành tại đà nẵng
học kế toán thực hành tại đà nẵng
học kế toán thực hành tại hải dương
học kế toán thực hành tại hưng yên
học chứng chỉ kế toán
học kế toán ở đâu tốt