Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

Configure On Premises Email Server on D365 Online

Posted on by 2,116

Hi,

I'm trying to configure an On Premises SMTP email server inside D365 CRM Online to send emails. I have also added the range of IP addresses provided by MS on email server so that these are not blocked. But even after doing all that I keep on receiving below error when i test the email server configuration.

Email Server Error Code: UnknownOutgoingEmailIntegrationError

ActivityId: 6db640a1-9ee9-4a72-8159-eca13177a052
>Error : System.IO.IOException: The operation is not allowed on non-connected sockets.
at System.Net.Sockets.NetworkStream.InitNetworkStream(Socket socket, FileAccess Access)
at System.Net.Sockets.NetworkStream..ctor(Socket socket, Boolean ownsSocket)
at MailKit.Net.Smtp.SmtpClient.<ConnectAsync>d__70.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at MailKit.Net.Smtp.SmtpClient.Connect(String host, Int32 port, SecureSocketOptions options, CancellationToken cancellationToken)
at Microsoft.Crm.Asynchronous.EmailConnector.MailkitSmtpOutgoingEmailProvider.Connect(IMailTransport client, IEmailServerProfile profile)

Not sure if i'm missing any configuration or any changes are required on EMail server.

Thank You!

  • Suggested answer
    abpanick Profile Picture
    abpanick on at
    RE: Configure On Premises Email Server on D365 Online

    Hi Mandar,

    What is the port number configured in your Email Server Profile. Request you to kindly ensure that it is Port 25. If you happen to use Port 465 for your usage then it can cause such issues. You can read into more details about SMTP ports here: www.mailgun.com/.../

    If found helpful, please mark the answer as verified.

    Thanks,

    Abhilash

  • Suggested answer
    Charles Abi Khirs Profile Picture
    Charles Abi Khirs 3,569 on at
    RE: Configure On Premises Email Server on D365 Online

    Hello,

    Did you apply all the steps and check the prerequisites for the Hybrid connection?

    You can find all the details in this link: docs.microsoft.com/.../mt622059(v=crm.8)

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,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans