Connection to mailbox: crmmailbox failed

Connection to mailbox: crmmailbox failed

Post by Matt » Fri, 17 Mar 2006 15:36:23


Hi there,

I went through the appropriate steps to set up CRM Exchange Email
Router,
and a queue. however when I send emails to this queue it does not get
forwarded to the queue. There are a heap of errors in the event log of
the
Exchange server that occurred after installing the router:

Microsoft.Crm.Tools.ExchangeConnectorService.ExchangeSinkServiceException:

Connection to mailbox: crmmailbox failed
(System.Runtime.InteropServices.COMException (0x80040E19): Object or
data
matching the name, range, or selection criteria was not found within
the
scope of this operation.
at ADODB.ConnectionClass.Open(String ConnectionString, String
UserID,
String Password, Int32 Options)
at
Microsoft.Crm.Tools.ExchangeConnectorService.ExchangeSinkServiceMessages.GeMailboxConnection(ExchangeSinkServiceLogger

logger, ExchangeSinkServiceMailbox mailbox, Int32 connectionTimeout)).
--->
System.Runtime.InteropServices.COMException (0x80040E19): Object or
data
matching the name, range, or selection criteria was not found within
the
scope of this operation.
at ADODB.ConnectionClass.Open(String ConnectionString, String
UserID,
String Password, Int32 Options)
at
Microsoft.Crm.Tools.ExchangeConnectorService.ExchangeSinkServiceMessages.GeMailboxConnection(ExchangeSinkServiceLogger

logger, ExchangeSinkServiceMailbox mailbox, Int32 connectionTimeout)
--- End of inner exception stack trace ---
at
Microsoft.Crm.Tools.ExchangeConnectorService.ExchangeSinkServiceMessages.GeMailboxConnection(ExchangeSinkServiceLogger

logger, ExchangeSinkServiceMailbox mailbox, Int32 connectionTimeout)
at
Microsoft.Crm.Tools.ExchangeConnectorService.ExchangeSinkServiceCore.ProcesMailbox(ExchangeSinkServiceMailbox
mailbox)
at
Microsoft.Crm.Tools.ExchangeConnectorService.ExchangeSinkServiceCore.ExecutService()


Other information I can give you:

I set up a new user in AD called crmmailbox.

I followed the instructions from the CRM Implementation guide to
install the router and the service runs under the local system account
on the exchange server. I also set up forwarding rules for 2 Microsoft
CRM users as well.

Here is some more information that may give you any clues?

1. If I login to my laptop as the crmmailbox user and open outlook,
emails that are sent to the 2 Microsoft CRM users are successfully
getting sent to this mailbox. However this mail is unsolicited (i.e. it
does not contain a CRM case number) and it is not being removed..

2. I tried to login to the crmmailbox account through Exchange web mail
(OWA) but could not get in as it did not recognise the login (maybe
this is a clue?)

3. I set up a XXXX@XXXXX.COM email account with
CRMEmailEnabled etc so that emails to this address would be sent
straight to the queue however this does not work.

4. I have uninstalled the router several times and tried renaming the
user account from vivid\crmmailbox to vivid.local\crmmailbox to
vivid-prime.vivid.local\crmmailbox but still get the aforementioned
error in event viewer.

5. Tried making the crm router service run under the crmmailbox user
account and added this account to PrivGroup that CRM installs but no
luck

6. The exchange box is 2000 with SP4.

7. Running on the box is GFI security which scans mail...not sure if
this causes any problems. Not sure if I have a proxy server on this box
(dont think so)

Any help or pointers appreciated.
 
 
 

Connection to mailbox: crmmailbox failed

Post by Uw » Mon, 20 Mar 2006 00:37:27

ear Matt,

Normally, the error
you are receiving is caused by a permissions right. If the instructions are
not followed exactly the same error will occur.

To resolve this issue, grant the logon account permissions to access the
Microsoft CRM mailbox. To do this, follow these steps.

Note In this example, CrmEmailUser is the name of the Microsoft CRM mailbox
account.

1. Log on to the Exchange server as a domain administrator.
2. Click Start, point to Programs, point to Administrative Tools, and then
click Active Directory Users and Computers.
3. In the Active Directory Users and Computers snap-in, locate the
CrmEmailUser account.

Note This account was specified during the installation of the Microsoft
CRM-Exchange E-mail Router Service.
4. Right-click the CrmEmailUser account, and then click Properties.
5. On the Exchange Advanced tab, click Mailbox Rights, and then click Add.
6. Type the name of the logon account that is specified in the Log On As
box for the Microsoft CRM-Exchange E-Mail Router Service, and then click
OK.
7. In the Permissions for CrmEmailUser window, click the name of the logon
account that you added in step 6, and then click to select the Full mailbox
access check box.
8. Click OK two times.
9. Close the Active Directory Users and Computers snap-in.

Lastly, something does not look right in the registry at
HKLM\Software\microsoft\mscrm email. Please export the MSCRM Email registry
key and paste the output to this post. Also do the same for HKLM | SYSTEM |
CurrentControlSet | Services | MSCRMExRouterService.

The MSCRM Email entry should have 9 entries within it.

regards
S
"Matt" wrote:


 
 
 

Connection to mailbox: crmmailbox failed

Post by Matt » Tue, 21 Mar 2006 13:29:42

i S,

thank you for your response.

The logon account for the services is LocalSystem. When following step
number 6. above I could not find "LocalSystem" but assumed "System" is
the same account. I then restarted the router service but same error
exists. I then gave the everyone user the rights to full mailbox but
same error exists after restarting router.

Here is the registry file:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSCRM Email]
"CRM_Exchange_InstallDir"="C:\\Program Files\\Microsoft CRM Email\\"
"CRM_Exchange_Version"="3.0.5300.0"
"LanguageID"="1033"
"ServerUrl"="http://vivid-crm"
"SmtpDomainName"="vividgroup.com.au"
"MailboxAccount"="vivid.local\\crmmailbox"
"MailboxNickname"="crmmailbox"
"ServerOrVMName"="VIVID-MAILSRVR"


and the other one:




Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSCRMExRouterService]
"Type"=dword:00000010
"Start"=dword:00000002
"ErrorControl"=dword:00000001
"ImagePath"=hex(2):63,00,3a,00,5c,00,70,00,72,00,6f,00,67,00,72,00,61,00,6d,00,\

20,00,66,00,69,00,6c,00,65,00,73,00,5c,00,6d,00,69,00,63,00,72,00,6f,00,73,\

00,6f,00,66,00,74,00,20,00,63,00,72,00,6d,00,20,00,65,00,6d,00,61,00,69,00,\

6c,00,5c,00,73,00,65,00,72,00,76,00,69,00,63,00,65,00,5c,00,6d,00,69,00,63,\

00,72,00,6f,00,73,00,6f,00,66,00,74,00,2e,00,63,00,72,00,6d,00,2e,00,74,00,\

6f,00,6f,00,6c,00,73,00,2e,00,65,00,78,00,63,00,68,00,61,00,6e,00,67,00,65,\

00,63,00,6f,00,6e,00,6e,00,65,00,63,00,74,00,6f,00,72,00,73,00,65,00,72,00,\
76,00,69,00,63,00,65,00,2e,00,65,00,78,00,65,00,00,00
"DisplayName"="Microsoft CRM-Exchange E-Mail Router Service"
"DependOnService"=hex(7):4d,00,53,00,45,00,78,00,63,00,68,00,61,00,6e,00,67,00,\
65,00,49,00,53,00,00,00,00,00
"DependOnGroup"=hex(7):00,00
"ObjectName"="LocalSystem"
"Description"="Creates Microsoft CRM activities from e-mail."
"LogLevel"=dword:00000001
"CacheCapacity"=dword:00000400
"MailboxesInfo"=hex(7):68,00,74,00,74,00,70,00,3a,00,2f,00,2f,00,76,00,69,00,\

76,00,69,00,64,00,2d,00,63,00,72,00,6d,00,3b,00,56,00,49,00,56,00,49,00,44,\

00,2d,00,4d,00,41,00,49,00,4c,00,53,00,52,00,56,00,52,00,3b,00,76,00,69,00,\

76,00,69,00,64,00,67,00,72,00,6f,00,75,00,70,00,2e,00,63,00,6f,00,6d,00,2e,\

00,61,00,75,00,3b,00,63,00,72,00,6d,00,6d,00,61,00,69,00,6c,00,62,00,6f,00,\
78,00,00,00,00,00
"PollingPeriod"=dword:0000003c
"ConnectionTimeout"=dword:0000003c
"MaxMessageCount"=dword:000003e8
"MessageExpiry"=dword:00000258

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSCRMExRouterService\Linkage]
"Export"=hex(7):4d,00,53,00,43,00,52,00,4d,00,45,00,78,00,52,00,6f,00,75,00,74,\
00,65,00,72,00,53,00,65,00,72,00,76,00,69,00,63,00,65,00,00,00,00,00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSCRMExRouterService\Performance]
"Open"="OpenPerformanceData"
"Collect"="CollectPerformanceData"
"Close"="ClosePerformanceData"
"Library"="netfxperf.dll"
"Counter
Types"=hex(7):36,00,35,00,35,00,33,00,36,00,00,00,36,00,35,00,35,00,\

33,00,36,00,00,00,36,00,35,00,35,00,33,00,36,00,00,00,36,00,35,00,35,00,33,\

00,36,00,00,00,32,00,37,00,32,00,36,00,39,00,36,00,33,00,32,00,30,00,00,00,\

36,00,35,00,35,00,33,00,36,00,00,00,36,00,35,00,35,00,33,00,36,00,00,00,00,\
00
"Counter
Names"=hex(7):4d,00,65,00,73,00,73,00,61,00,67,00,65,00,73,00,20,00,\

70,00,72,00,6f,00,63,00,65,00,73,00,73,00,65,00,64,00,00,00,4d,00,65,00,7
 
 
 

Connection to mailbox: crmmailbox failed

Post by Uw » Wed, 22 Mar 2006 00:00:39

ear Matt,

Looks like the user logged on to the Exchange Server is not a valid CRM user
and CRM administrator.
All that you need to do is to add this user as a CRM user and apply the CRM
system administrator role to the user. I hope this will resolve the issue.

regards
S

"Matt" wrote:

 
 
 

Connection to mailbox: crmmailbox failed

Post by Matt » Wed, 22 Mar 2006 10:04:23

Hi S,

Is that the user that runs the Exchange Router Server? i.e.
LocalSystem? I didnt see any instructions to add LocalSystem user to
CRM.
Should I change LocalSystem to a different user which I can then add to
CRM?
 
 
 

Connection to mailbox: crmmailbox failed

Post by Uw » Wed, 22 Mar 2006 14:48:26

The exchange router has to be installed by a user who is a valid CRM user
with CRM system admininstrator role assigned to him.
The exchange router also has to be installed by a user who has local
administrator privileges on both CRM server and exchange server. This means
that a Domain administrator will be the best choice.
So all that you need to do is identify a Domain admin user account, this
account should have local admin rights on both Exchange and CRM, add that
user as a CRM user, assign CRM admin role and then launch the router wizard.

regards
Sree