locked
CRM 2015 Email Router - Occasional Error 61042 "net_io_connectionclosed" RRS feed

  • Question

  • We are using the CRM 2015 Email Router to send emails via SMTP to an internal SMTP server.

    We have had complaints that people sometimes aren't receiving emails.  Initially we denied all because the MSCRM stated the item was sent, but upon investigation we saw in the eventlog 61042 errors.  I'm now not fully confident that the system is correctly sending all the emails.  Has anyone had this error and successfully configured the system to stop them from occurring?

    We have enabled level 4 debugging and below is what we see in the Application Event Log :-

    18/08/2015 10:00:06 AM - #62269 - Checking for outgoing email messages to process for SMTP: http://<URL>/<Org>.

    18/08/2015 10:00:06 AM - #15393 - Validating the outgoing email message with subject "<email subject>" from <from_smtp_emailaddress> to <to_smtp_emailaddress> for SMTP: http://<URL>/<Org>.

    18/08/2015 10:00:06 AM - #1866 - Checking the email message with subject "<email subject>" in mailbox SMTP:

    18/08/2015 10:00:06 AM - #61042 - An error occurred while processing the outgoing email message with subject "<email subject>" for SMTP: http://<URL>/<Org> for delivery through <smtpserver>. System.Net.Mail.SmtpException: Failure sending mail. ---> System.IO.IOException: Unable to read data from the transport connection: net_io_connectionclosed.

    18/08/2015 10:00:06 AM - #47100 - The Email Router service configuration parameter "MaximumDeliveryAttempts" was read with the value "10".

    18/08/2015 10:00:06 AM - #60687 - The thread that is processing mailbox SMTP:

    18/08/2015 10:00:06 AM - #31826 - Refreshing configuration settings.

    ... few event log messages later

    18/08/2015 10:00:18 AM - #29426 - There are no email messages to process in mailbox SMTP:

    ... around 5 minutes later the email is attempted and is successfully sent.

    Below is the full error message :-

    #61042 - An error occurred while processing the outgoing email message with subject "<email subject>" for SMTP: http://<URL>/<Org> for delivery through <smtpserver>. System.Net.Mail.SmtpException: Failure sending mail. ---> System.IO.IOException: Unable to read data from the transport connection: net_io_connectionclosed.

       at System.Net.Mail.SmtpReplyReaderFactory.ProcessRead(Byte[] buffer, Int32 offset, Int32 read, Boolean readLine)

       at System.Net.Mail.SmtpReplyReaderFactory.ReadLines(SmtpReplyReader caller, Boolean oneLine)

       at System.Net.Mail.SmtpReplyReaderFactory.ReadLine(SmtpReplyReader caller)

       at System.Net.Mail.CheckCommand.Send(SmtpConnection conn, String& response)

       at System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, MailAddressCollection recipients, String deliveryNotify, Boolean allowUnicode, SmtpFailedRecipientException& exception)

       at System.Net.Mail.SmtpClient.Send(MailMessage message)

       --- End of inner exception stack trace ---

       at System.Net.Mail.SmtpClient.Send(MailMessage message)

       at Microsoft.Crm.Tools.Email.Providers.CrmPollingSendEmailProvider.Run()



    Tuesday, August 18, 2015 1:11 AM