web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Gmail incoming connection error

(0) ShareShare
ReportReport
Posted on by

CRM 2016 cannot access user GMAIL inbox but can send out emails

Email router tests show success

Email router and CRM are on the same server

GMail pop and smtp used

Problem: There is no incoming mail to all user mailboxes. Event log display the following consistent error for all users.

Microsoft.Crm.Tools.Email.Providers.EmailException: An error occurred while executing POP3 command "<Command removed for security reasons>". The server response was: "-ERR [SYS/TEMP] Temporary system problem. Please try again later. a21mb199169172edd".
at Microsoft.Crm.Tools.Email.Providers.Pop3Client.ValidateLine(String receivedLine, String command, Boolean hideCommand)
at Microsoft.Crm.Tools.Email.Providers.Pop3Client.ReadDataWithEncoding(StreamReader streamReader, String command, Boolean singleCommand, Boolean skipValidation, Boolean hideCommand)
at Microsoft.Crm.Tools.Email.Providers.Pop3Client.ReceiveData(String command, Boolean singleCommand, Boolean skipValidation, Boolean hideCommand, String& encodingCharset)
at Microsoft.Crm.Tools.Email.Providers.Pop3Client.SendPasswordCommand(String password)
at Microsoft.Crm.Tools.Email.Providers.Pop3Client.AuthenticateClearText(String userName, String password)
at Microsoft.Crm.Tools.Email.Providers.Pop3PollingMailboxProvider.OpenMailbox()
at Microsoft.Crm.Tools.Email.Providers.CrmPollingMailboxProvider.Run()

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Faizal Profile Picture
    545 on at

    Hi Samuel,

    Kindly note below link for your reference(Below setup fro Hotmail):

    https://community.dynamics.com/crm/b/crminogic/archive/2014/02/17/server-side-synchronization-for-dynamics-crm-with-pop3-enabled-mail-server

    For Gmail Pop & SMTP details:

    https://www.hesk.com/knowledgebase/?article=72

  • Community Member Profile Picture
    on at

    Hi Anees,

    Thank you for those useful link.

    I have followed the tips and made changes to the CRM 2016 configuration. Within CRM Email Profile, all mailbox tests are successful (Incoming and outgoing).

    The problem now is that from a user account, there are now incoming emails. This is the event log from the CRM Server and is occurring for all user mailboxes.

    #26090 - An error occurred while opening mailbox user@domain.com. Microsoft.Crm.Tools.Email.Providers.EmailException: An error occurred while executing POP3 command "<Command removed for security reasons>". The server response was: "-ERR [SYS/TEMP] Temporary system problem.  Please try again later. o63mb128921910eda".

      at Microsoft.Crm.Tools.Email.Providers.Pop3Client.ValidateLine(String receivedLine, String command, Boolean hideCommand)

      at Microsoft.Crm.Tools.Email.Providers.Pop3Client.ReadDataWithEncoding(StreamReader streamReader, String command, Boolean singleCommand, Boolean skipValidation, Boolean hideCommand)

      at Microsoft.Crm.Tools.Email.Providers.Pop3Client.ReceiveData(String command, Boolean singleCommand, Boolean skipValidation, Boolean hideCommand, String& encodingCharset)

      at Microsoft.Crm.Tools.Email.Providers.Pop3Client.SendPasswordCommand(String password)

      at Microsoft.Crm.Tools.Email.Providers.Pop3Client.AuthenticateClearText(String userName, String password)

      at Microsoft.Crm.Tools.Email.Providers.Pop3PollingMailboxProvider.OpenMailbox()

      at Microsoft.Crm.Tools.Email.Providers.CrmPollingMailboxProvider.Run()

  • Community Member Profile Picture
    on at

    This is additional error message: CRM and Email Router are on the same machine.

    Monitoring test failed: Test Title: Help Content Server Tests.: Machine: WIn2012: ServerRole: HelpServer

    Test Log:

    Unable to connect to the remote server

      at System.Net.HttpWebRequest.GetResponse()

      at Microsoft.Crm.Monitoring.WebHelpers.GetWebResponse(String webpage, Boolean setCrmAuth, Boolean useProxy, Byte[] postData, Boolean setUserAgent, Int64 dmzPort)

      at Microsoft.Crm.Monitoring.Tests.HelpContent.VerifyHelpContent.TestDefaultHelp(TestResult result)

      at Microsoft.Crm.Monitoring.Tests.HelpContent.VerifyHelpContent.Execute()

      at Microsoft.Crm.Monitoring.Engine.MonitoringRuntime.ExecuteMonitoringTest(MonitoringTestBase test, Int32 attempts)

    InnerException Type:System.Net.WebException

    No connection could be made because the target machine actively refused it 127.0.0.1:80

      at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)

      at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)

    InnerException Type:System.Net.Sockets.SocketException

  • Suggested answer
    Faizal Profile Picture
    545 on at

    Hi Samuel.

    Are you using Email Router??

    Is your MS CRM 2016 is online or On-premise?

    I would suggest you to use inbuild Email Server Profiles and test again.

    1. Create an email server profile
    2. Configure default email processing and synchronization

    https://technet.microsoft.com/en-us/library/mt622063.aspx

  • Community Member Profile Picture
    on at

    Hi Anees,

    I am using Server side synchronization. But CRM does not seem to dynamically contact GMAIL to retrieve emails.

    How do I enable CRM to dynamically contact GMAIL and retrieve email for a configured user mailbox?

    I have just created a new installation of CRM 2016, I have created email Server profile, configured default email processing and synchronization.

    Test revealed successful incoming and outgoing mails.

    From a user account while logged into the web interface, I can successfully send email to others, but no email are received in CRM.

    These are the only related logs in Event Viewer

    Log Name:      Application

    Source:        MSCRMMonitoringTest

    Date:          6.12.2016 15:06:37

    Event ID:      18732

    Task Category: None

    Level:         Error

    Keywords:      Classic

    User:          N/A

    Computer:      K-CRM16-01.KVIKNA.local

    Description:

    Monitoring test failed: Test Title: Help Content Server Tests.: Machine: K-CRM16-01: ServerRole: HelpServer

    Test Log:

    The remote server returned an error: (404) Not Found.

      at System.Net.HttpWebRequest.GetResponse()

      at Microsoft.Crm.Monitoring.WebHelpers.GetWebResponse(String webpage, Boolean setCrmAuth, Boolean useProxy, Byte[] postData, Boolean setUserAgent, Int64 dmzPort)

      at Microsoft.Crm.Monitoring.Tests.HelpContent.VerifyHelpContent.TestDefaultHelp(TestResult result)

      at Microsoft.Crm.Monitoring.Tests.HelpContent.VerifyHelpContent.Execute()

      at Microsoft.Crm.Monitoring.Engine.MonitoringRuntime.ExecuteMonitoringTest(MonitoringTestBase test, Int32 attempts)

    InnerException Type:System.Net.WebException

    .

    Event Xml:

    <Event xmlns="schemas.microsoft.com/.../event&quot;>

     <System>

       <Provider Name="MSCRMMonitoringTest" />

       <EventID Qualifiers="49152">18732</EventID>

       <Level>2</Level>

       <Task>0</Task>

       <Keywords>0x80000000000000</Keywords>

       <TimeCreated SystemTime="2016-12-06T15:06:37.201292900Z" />

       <EventRecordID>930</EventRecordID>

       <Channel>Application</Channel>

       <Computer>K-CRM16-01.KVIKNA.local</Computer>

       <Security />

     </System>

     <EventData>

       <Data>Help Content Server Tests.</Data>

       <Data>K-CRM16-01</Data>

       <Data>HelpServer</Data>

       <Data>The remote server returned an error: (404) Not Found.

      at System.Net.HttpWebRequest.GetResponse()

      at Microsoft.Crm.Monitoring.WebHelpers.GetWebResponse(String webpage, Boolean setCrmAuth, Boolean useProxy, Byte[] postData, Boolean setUserAgent, Int64 dmzPort)

      at Microsoft.Crm.Monitoring.Tests.HelpContent.VerifyHelpContent.TestDefaultHelp(TestResult result)

      at Microsoft.Crm.Monitoring.Tests.HelpContent.VerifyHelpContent.Execute()

      at Microsoft.Crm.Monitoring.Engine.MonitoringRuntime.ExecuteMonitoringTest(MonitoringTestBase test, Int32 attempts)

    InnerException Type:System.Net.WebException

    </Data>

     </EventData>

    </Event>

    Second Log

    WebHost failed to process a request.

    Sender Information: System.ServiceModel.Activation.HostedHttpRequestAsyncResult/43134736

    Exception: System.Web.HttpException (0x80004005): The service '/......./XRMServices/2011/Organization.svc' does not exist. ---> System.ServiceModel.EndpointNotFoundException: The service '/........./XRMServices/2011/Organization.svc' does not exist.

      at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath, EventTraceActivity eventTraceActivity)

      at System.ServiceModel.ServiceHostingEnvironment.EnsureServiceAvailableFast(String relativeVirtualPath, EventTraceActivity eventTraceActivity)

      at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.HandleRequest()

      at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.BeginRequest()

      at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult result)

      at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result)

    Process Name: w3wp

    Process ID: 6552

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans