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!