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 :
Customer experience | Sales, Customer Insights,...
Answered

On-Prem 9.1 - Simple SMTP config not working (anonymous + port 25)

(0) ShareShare
ReportReport
Posted on by 508

Testing out Dynamics 365 9.1 On-Premise and configurating a simple SMTP server (no authentication needed / anonymous + port 25) for sending out emails. Done exactly the same as I've done on version 9.0 so I am starting to think there might be something new to version 9.1 that I don't know of? There is nothing wrong with the SMTP server or firewalls, tested SMTP send via Telnet directly from the CRM-server and it works fine.

I activated Tracing in registry on the server to see if I could get any more error messages relating to this, and there is a few weird once:

----------

>Crm Exception: Message: Credentials must implement ICredentialsByHost for mailbox 00000000-0000-0000-0000-000000000000 in organization 02d92d4b-c0cd-eb11-bcec-005056a85101, ErrorCode: -2147220970
[Process:CrmAsyncService |Organization:02d92d4b-c0cd-eb11-bcec-005056a85101 |Thread: 31 |Category: EmailConnector |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 00000000-0000-0000-0000-000000000000 |ActivityId: fcb40a4b-6128-46dd-9eef-136a04f17b04 | EmailConnectorLogger.EmailConnectorTraceFormat ilOffset = 0x0
>MailkitSmtpOutgoingEmailProvider.Authenticate(SmtpClient): Error occurred trying to authenticate. Error Details: Unhandled exception:
Exception type: Microsoft.Crm.CrmException
Message: Credentials must implement ICredentialsByHost for mailbox 00000000-0000-0000-0000-000000000000 in organization 02d92d4b-c0cd-eb11-bcec-005056a85101
> at Microsoft.Crm.Asynchronous.EmailConnector.MailKitSaslMechanismProvider.GetSaslMechanism(AuthenticationProtocol authenticationProtocol, ISet`1 authenticationMechanisms, IMailboxDataProvider mailboxDataProvider, IEmailAccessConfiguration emailAccessConfiguration, ITraceHandler traceHandler, IFCBRetriever fcbRetriever, IFeatureControl featureControl, IOAuthTokenManagerFactory tokenManagerFactory, IOrganizationService organizationService)
> at Microsoft.Crm.Asynchronous.EmailConnector.MailkitSmtpOutgoingEmailProvider.Authenticate(IMailTransport client, IMailboxDataProvider mailboxDataProvider, IEmailAccessConfiguration emailAccessConfiguration, ITraceHandler traceHandler, IOrganizationService organizationService)
>-- End stack trace --

----------

I have the same question (0)
  • MLarsen Profile Picture
    508 on at

    This is the configuration I am using (screenshots):

    pastedimage1629698777993v1.png

    pastedimage1629698784390v2.png

    pastedimage1629698792344v3.png

  • MLarsen Profile Picture
    508 on at

    I have tried to use our internal Exchange server with credentials, and that works, but I want to also be able to use a simple SMTP server without authentication and port 25. That has been working on version 9.0 and earlier.

  • MLarsen Profile Picture
    508 on at

    Anyone? For now we can only use SMTP-server with authentication for version 9.1 it seems.

  • Prashnat Verma Profile Picture
    287 on at

    Hi Morten,

    The configurations looked okay and same is what I've done as well for configuring Email profile and mailbox. However I am also receiving the same error. I believe this needs to be raised with Microsoft to check and resolve.

  • Verified answer
    Alex-Pinkis Profile Picture
    on at

    Hi Morten,

    We're mentioning that this is not a supported way in our documentation. Probably, this was enforced with 9.1:

    https://docs.microsoft.com/en-us/previous-versions/dynamicscrm-2016/administering-dynamics-365/mt622063(v=crm.8)#create-an-email-server-profile

    pastedimage1640184926950v1.png

  • MLarsen Profile Picture
    508 on at

    Then that must be something new, because I have been using Anonymous SMTP authentication for a long time now. Thank you for clearing that up Alex.

  • bdeleval Profile Picture
    148 on at

    Hello,

    Did you find any workaround about this issue? From our side it's not possible to rollback and we have to server which support ssl or other authentication:-(

  • MLarsen Profile Picture
    508 on at

    The only solution is to use authentication or integrate directly with your exchange-environment. I guess they did this because of security, anonymous authentication against a mail-server is not the best practice when it comes to security.

  • bdeleval Profile Picture
    148 on at

    Hello. Thanks for our answer. We use the ip trust to securise our flow. I created a Microsoft case to get help but they probably will answer that's writted in the documentation.

    we developed a quick interface which get all emails with "pending" status. we get also the attachments and send the emails with c# by calling the smtp server. After sending the email, we update the status to "sent".

  • Sabih Khan Profile Picture
    140 on at

    H2016_2D00_11_2D00_29-15_5F00_30_5F00_28_2D00_Mail-server-profile.png"_blank" href="/api/data/v9.1/msdyn_richtextfiles(C4F26471-4699-473E-981A-6D3AFC60B823)/msdyn_imageblob/$value?size=full">community.dynamics.com/.../2016_2D00_11_2D00_29-15_5F00_30_5F00_28_2D00_Mail-server-profile.png

    the image use the similar setting. Kindly advise for connecting with 9.1 SMTP Relay

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 > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 170 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 70

#3
Jimmy Passeti Profile Picture

Jimmy Passeti 50 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans