Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Answered

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

(0) ShareShare
ReportReport
Posted on by 473

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

----------

  • MLarsen Profile Picture
    MLarsen 473 on at
    RE: On-Prem 9.1 - Simple SMTP config not working (anonymous + port 25)

    You have to have a SMTP-server with authentication. Either authenticate using the mail-profile or authenticate in each mailbox in Dynamics 365. Other solution is to integrate Exchange Online with your Dynamics 365 environment.

  • Sabih Khan Profile Picture
    Sabih Khan 140 on at
    RE: On-Prem 9.1 - Simple SMTP config not working (anonymous + port 25)

    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

  • bdeleval Profile Picture
    bdeleval 148 on at
    RE: On-Prem 9.1 - Simple SMTP config not working (anonymous + port 25)

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

  • MLarsen Profile Picture
    MLarsen 473 on at
    RE: On-Prem 9.1 - Simple SMTP config not working (anonymous + port 25)

    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
    bdeleval 148 on at
    RE: On-Prem 9.1 - Simple SMTP config not working (anonymous + port 25)

    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
    MLarsen 473 on at
    RE: On-Prem 9.1 - Simple SMTP config not working (anonymous + port 25)

    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.

  • Verified answer
    Alex-Pinkis Profile Picture
    Alex-Pinkis on at
    RE: On-Prem 9.1 - Simple SMTP config not working (anonymous + port 25)

    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

  • Prashnat Verma Profile Picture
    Prashnat Verma 287 on at
    RE: On-Prem 9.1 - Simple SMTP config not working (anonymous + port 25)

    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.

  • MLarsen Profile Picture
    MLarsen 473 on at
    RE: On-Prem 9.1 - Simple SMTP config not working (anonymous + port 25)

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

  • MLarsen Profile Picture
    MLarsen 473 on at
    RE: On-Prem 9.1 - Simple SMTP config not working (anonymous + port 25)

    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.

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,458 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans