Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Gmail SMTP error on v9 on-premise

Posted on by 3,079

I'm trying to set up a test server, and just created a gmail account to use for outgoing email, to be able to test workflows.  I entered in all the info as per guides I found (bottom answer here as one example:  https://community.dynamics.com/crm/f/117/t/265652).  Any time I try to activate a mailbox I get:

"The email message "Your mailbox is now connected to Dynamics 365" cannot be sent because an error occurred while establishing a secure connection to the email server. Mailbox <name was here> didn't synchronize. The owner of the email server profile Gmail has been notified.

Email Server Error Code: Smtp server returned OutgoingServerSecureChannelError MustIssueStartTlsFirst exception."

However, I tried these same settings on a v8 server with no problems.  So that rules out the two supposed causes for that error - the credentials being wrong, or the allow less secure apps setting being disabled (I triple checked these anyway, to be sure).  I don't see anything in the event viewer of the v9 server.  I tried turning the Windows firewall completely off for the v9 server, just to rule that out.  Anyone have any other suggestions of where I can try to track this down?  To confirm, has anyone successfully configured Gmail SMTP on v9 on-prem yet?

*This post is locked for comments

  • awalters Profile Picture
    awalters 3,079 on at
    RE: Gmail SMTP error on v9 on-premise

    If you're using Gmail (or anything other than Exchange) then SMTP is your option.  If you're using Exchange you would generally use server-side integration.

  • Parashuram  Profile Picture
    Parashuram 381 on at
    RE: Gmail SMTP error on v9 on-premise

    Hi Allison,

       Is this recommended to use SMTP  for email integration with CRM D365 onpremise (v9.x)?

    Let me know if any drawbacks or limitation for this case.

    Thanks,

    Parashuram Jadhav

  • Ben John Profile Picture
    Ben John 559 on at
    RE: Gmail SMTP error on v9 on-premise

    Worked for me, too.

    Thanks you for sharing your insight.

  • Verified answer
    awalters Profile Picture
    awalters 3,079 on at
    RE: Gmail SMTP error on v9 on-premise

    Interesting...  I just set the Gmail account up for two-step authentication, and then generated an app password.  Used this instead, and it now works on v9.  Some sort of change between how it auths between versions?  Anyway, working now.  Gotta love finding all these little changes...

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans