Hi There - Looking for some guidance on a 3 hour outage we had with the Email Router last night. I have racked my brain and I can't find any reason for the issues. I have CRM 2011 online hooked up through the email router to 4 email addresses for incoming and outgoing mail. The 4 email accounts are all Office 365 accounts, and I know the incoming and outgoing mail profiles are all set up correctly as they were working correctly up to 6.30pm last night - and they are working again fine now. From 6pm any mails they were attempting to send through CRM stuck at either 'Sending' or 'Pending Sending' with repeated attempts to resubmit. This was not a large number of mail - 4 or 5 at most. Around 8pm I noticed the problem and upon investigate assumed that it was a particular email that was causing the issue - so I deleted all the pending mails. However - further newly generated mails, including test mails, suffered the same problems. At the same time any incoming mail was not processed into CRM - yet reached the inboxs of the office 365 account.
In total the problems logs 1616 events in the event viewer on the server where the email router resides. Here are a few of them:
"#26090 - An error occurred while opening mailbox support@**********.net. Microsoft.Crm.Tools.Email.Providers.EmailException: An error occurred while executing POP3 command "<Command removed for security reasons>". The server response was: "-ERR Connection is closed. 12"."
"#26090 - An error occurred while opening mailbox support@**********.net. Microsoft.Crm.Tools.Email.Providers.EmailException: An error occurred while executing POP3 command "<Command removed for security reasons>". The server response was: "-ERR Logon failure: unknown user name or bad password."."
"#61042 - An error occurred while processing the outgoing e-mail message with subject "Case Reference CSF-03685-H1V0J8 assigned to Support" for SMTP: disco.crm4.dynamics.com******** for delivery through smtp.office365.com. System.Net.Mail.SmtpException: The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.1 Client was not authenticated"
"#26234 - The E-mail Router service could not process a provider work item using assembly: Microsoft.Crm.Tools.EmailProviders.dll and class: Microsoft.Crm.Tools.Email.Providers.Pop3PollingMailboxProvider. Microsoft.Crm.Tools.Email.Providers.EmailException: An error occurred while executing POP3 command "QUIT". The server response was: ""."
"#14494 - A provider work item using assembly: Microsoft.Crm.Tools.EmailProviders.dll and class: Microsoft.Crm.Tools.Email.Providers.SmtpPollingSendEmailProvider has been aborted because it has been running for longer than the allowed execution time. This behavior may occur when there is a problem with the network or because the e-mail server is busy. Verify that you can log on to the e-mail server by using an e-mail application that uses the account specified for the E-mail Router."
"#61042 - An error occurred while processing the outgoing e-mail message with subject "Case Reference CSF-03685-H1V0J8 assigned to Support" for SMTP: disco.crm4.dynamics.com******** for delivery through smtp.office365.com. System.Net.Mail.SmtpException: Failure sending mail. ---> System.IO.IOException: The read operation failed, see inner exception. ---> System.Threading.ThreadAbortException: Thread was being aborted."
"#26234 - The E-mail Router service could not process a provider work item using assembly: Microsoft.Crm.Tools.EmailProviders.dll and class: Microsoft.Crm.Tools.Email.Providers.SmtpPollingSendEmailProvider. System.Threading.ThreadAbortException: Thread was being aborted.
at Microsoft.Crm.Tools.Email.Providers.CrmPollingSendEmailProvider.Run()
at Microsoft.Crm.Tools.Email.Agent.ServiceCore.ExecuteProviderWork(Object providerQueueRequestObject)"
So - I was flumoxed. Given the number of errors regarding authentication/usernames and passwords I retyped the email addresses and passwords into the profiles, having confirmed that the same details got me into the individual inboxes. But this didn't resolve the issue.
Then - at around 9.30 it all kicked in and began working again. Any emails that were in the inboxes arrived in CRM and all outgoing traffic was processed as expected. It is still functioning as it should now nearly 12 hours later.
Given that CRM, Email Router and the Office 365 account are all Microsoft products how do I find out if there was an outage somewhere between the 3? And how can I guard against it happening again. At 6.30pm in the evening it had minimal impact - however if the same thing was to happen during business hours (9-5) then it would be a big big problem.
Regards
Noel Burns