web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Emails with blank subject or only containing "Re" or "Fw:" always "Failed" using SMTP - CRM365 onprem

(0) ShareShare
ReportReport
Posted on by

We have an issue on our 8.2.3 CRM365 onprem environment where emails with certain subjects all "fail" when using email profile configured for anonymous SMTP.

information on the email shows: "The message delivery failed. It must be resubmitted for any further processing."

The problematic subjects are:

- blank

- "Re:"

- "Fw:"

- "Re: Fw:"

and some similar combinations of Re and Fw. 

What does work:

  • Sending the same emails form the server using commandline telnet connection to the outgoing SMTP server 
  • Sending the same emails from a custom asp.net page from the CRM server. 
  • Sending these emails using Impersonation via Exchange instead of anonymous SMTP outgoing profile also works fine (highlighted in green in de screenshot below, i switched email profile for this test)

2019_2D00_01_2D00_23-08_5F00_41_5F00_36_2D00_Email-Messages-Al-mijn-e_2D00_mails-_2D00_-Microsoft-Dynamics-365-_2D00_-Internet-Explorer.jpg

*This post is locked for comments

I have the same question (0)
  • DerekH-Australia Profile Picture
    5 on at
    RE: Emails with blank subject or only containing "Re" or "Fw:" always "Failed" using SMTP - CRM365 onprem

    I am experiencing the same issue at a client. Based on the call stack, I think it might be something to do with smart matching/conversation matching that is trying to include the subject in a matching/index, but the subject doesn't exist. We are on 8.2.2.112 currently.

    We are using SMTP but I am not sure we are doing it anonymously.

    It sounds like a bug they might fix sometime in the future, if enough people complain/have an issue.

  • Community Member Profile Picture
    on at
    RE: Emails with blank subject or only containing "Re" or "Fw:" always "Failed" using SMTP - CRM365 onprem

    Something we found in trace logs that could be relevant:

    Trace logs van de CRM server:

    Mailbox checking active status process encounter null value: Exception: Unhandled Exception: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.

      at System.ThrowHelper.ThrowKeyNotFoundException()

      at System.Collections.Generic.Dictionary`2.get_Item(TKey key)

      at Microsoft.Crm.Asynchronous.EmailConnector.MailboxDataAccess.IsInactiveMailbox(Entity mailbox, Boolean isMaxPostponeTime, Boolean isOutgoingMailbox)

    .

    Exception occurred while prepration of outgoing mail item 1bd5e340-401a-e911-80df-005056935251 .

    Exception: Unhandled Exception: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.

      at System.ThrowHelper.ThrowKeyNotFoundException()

      at System.Collections.Generic.Dictionary`2.get_Item(TKey key)

      at Microsoft.Crm.Asynchronous.EmailConnector.SmtpOutgoingEmail.SetFieldsForCorrelation()

      at Microsoft.Crm.Asynchronous.EmailConnector.SmtpOutgoingEmail..ctor(IOutgoingEmailActivity outgoingEmail, EntityCollection attachments, String codePage)

      at Microsoft.Crm.Asynchronous.EmailConnector.SmtpOutgoingEmailProvider.Initialize()

    Mailbox checking active status process encounter null value: Exception: Unhandled Exception: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.

      at System.ThrowHelper.ThrowKeyNotFoundException()

      at System.Collections.Generic.Dictionary`2.get_Item(TKey key)

      at Microsoft.Crm.Asynchronous.EmailConnector.MailboxDataAccess.IsInactiveMailbox(Entity mailbox, Boolean isMaxPostponeTime, Boolean isOutgoingMailbox)

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
HR-09070029-0 Profile Picture

HR-09070029-0 2

#2
ED-30091530-0 Profile Picture

ED-30091530-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans