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 SMTP error on v9 on-premise

(0) ShareShare
ReportReport
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

I have the same question (0)
  • Verified answer
    awalters Profile Picture
    3,079 on at

    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...

  • Ben John Profile Picture
    559 on at

    Worked for me, too.

    Thanks you for sharing your insight.

  • Parashuram  Profile Picture
    381 on at

    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

  • awalters Profile Picture
    3,079 on at

    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.

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