Skip to main content

Notifications

Announcements

No record found.

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

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

  • 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
    Community Member Microsoft Employee 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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,494 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,305 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans