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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Few Emails from ForwardMailboxes are not processed by Email Router and they moved to Undeliverable folder

(0) ShareShare
ReportReport
Posted on by 450

Hi,

       We are on Dynamcis CRM 2013 with UR2 for SP1.

       Recently we migrated our Exchange from Exchange On-Premise to Exchange Online. I configured Email Router to point exchange online.

After moving we see that there are few Emails that are being moved to Undeliverables. In the application event logs we found the following error

 

#17174 - An error occurred while validating the email message with subject "subject" in mailbox Forwardmailbox . Microsoft.Crm.Tools.Email.Providers.EmailException: The email message with the details [Sender: sender@example.com; Subject: Subject Sent: Datetimestamp] could not be delivered because it does not contain a valid attachment. The message was moved to the Undeliverable folder. ---> Microsoft.Crm.CrmException: Invalid mail. Expected header items not found - possibly draft item or other type of item forwarded to this mailbox

at Microsoft.Crm.Tools.Email.Providers.ExchangeWSConnector.RetrieveMessageFromAttachment(Object attachment, ServiceLogger serviceLogger)
at Microsoft.Crm.Tools.Email.Providers.ExchangeEmailMessage.ValidateMessage(Boolean isForwardMailbox)
--- End of inner exception stack trace ---
at Microsoft.Crm.Tools.Email.Providers.ExchangeEmailMessage.ValidateMessage(Boolean isForwardMailbox)
at Microsoft.Crm.Tools.Email.Providers.ExchangePollingMailboxProvider.ValidateMessageInternal(EmailMessage emailMessage)
at Microsoft.Crm.Tools.Email.Providers.CrmPollingMailboxProvider.Run()\r\nMicrosoft.Crm.CrmException: Invalid mail. Expected header items not found - possibly draft item or other type of item forwarded to this mailbox
at Microsoft.Crm.Tools.Email.Providers.ExchangeWSConnector.RetrieveMessageFromAttachment(Object attachment, ServiceLogger serviceLogger)
at Microsoft.Crm.Tools.Email.Providers.ExchangeEmailMessage.ValidateMessage(Boolean isForwardMailbox)

Raised a ticket with Microsoft and they confirmed that this is the fixed in Update Rollup 4 for Service Pack 1 for CRM 2013. And they pointed me to the information that says

https://support.microsoft.com/en-us/kb/3122951 

  • Messages that are relayed to Exchange and are processed with the forward mailbox will fail and be moved to the undeliverable folder if they are DKIM verified.

I haven't installed UR4 for SP1 in our environment yet. Thought I will share this with the forum in case you will come across this issue in your environment. 

 

But if you have had this issue in your environment and fixed by installing UR4 for SP1 please share your experience.

Regards,

Daniel.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Manoj Batchu Profile Picture
    1,691 on at

    Hello Daniel,

    We didn't observe this issue with CRM 2013, but yes with CRM 2011 which is eventually fixed after deploying the COD provided by Microsoft.

    community.dynamics.com/.../170963

    This is a known issue where DKIM verified messages are not promoted to CRM and this issue is fixed in UR 19 for CRM 2011.

  • Verified answer
    indlad Profile Picture
    450 on at

    Hi Manoj,

         Thank you for your response. This is the also issue with CRM 2013. We installed UR4 for SP1 and the issue is solved now.

    For the benefit of the community.

    If you have Forward Mailbox User Or Queue using Office 365, Emails will come to Users/Queue Mailbox but they will fail to make it to CRM and these emails will be moved to 'Undeliverable Folder' on the Forward Mailbox. You will see the following Error on the Email Router Server

    #17174 - An error occurred while validating the email message with subject "subject" in mailbox Forwardmailbox . Microsoft.Crm.Tools.Email.Providers.EmailException: The email message with the details [Sender: sender@example.com; Subject: Subject Sent: Datetimestamp] could not be delivered because it does not contain a valid attachment. The message was moved to the Undeliverable folder. ---> Microsoft.Crm.CrmException: Invalid mail. Expected header items not found - possibly draft item or other type of item forwarded to this mailbox

    at Microsoft.Crm.Tools.Email.Providers.ExchangeWSConnector.RetrieveMessageFromAttachment(Object attachment, ServiceLogger serviceLogger)

    at Microsoft.Crm.Tools.Email.Providers.ExchangeEmailMessage.ValidateMessage(Boolean isForwardMailbox)

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

    at Microsoft.Crm.Tools.Email.Providers.ExchangeEmailMessage.ValidateMessage(Boolean isForwardMailbox)

    at Microsoft.Crm.Tools.Email.Providers.ExchangePollingMailboxProvider.ValidateMessageInternal(EmailMessage emailMessage)

    at Microsoft.Crm.Tools.Email.Providers.CrmPollingMailboxProvider.Run()\r\nMicrosoft.Crm.CrmException: Invalid mail. Expected header items not found - possibly draft item or other type of item forwarded to this mailbox

    at Microsoft.Crm.Tools.Email.Providers.ExchangeWSConnector.RetrieveMessageFromAttachment(Object attachment, ServiceLogger serviceLogger)

    at Microsoft.Crm.Tools.Email.Providers.ExchangeEmailMessage.ValidateMessage(Boolean isForwardMailbox)

  • Community Member Profile Picture
    on at

    We continue to face this issue on MSCRM 2015 on premise , has anyone else faced this issue on mscrm 2015.If anyone aware of a possible resolution in mscrm 2015

    #17174 - An error occurred while validating the email message with subject "Fw: XXXXX 1234 XXX" in mailbox issue@ab.com. Microsoft.Crm.Tools.Email.Providers.EmailException: The email message with the details [Sender: ; Subject: : ] could not be delivered because it does not contain a valid attachment. The message was moved to the Undeliverable folder. ---> Microsoft.Crm.CrmException: Invalid mail. Expected header items not found - possibly draft item or other type of item forwarded to this mailbox

      at Microsoft.Crm.Tools.Email.Providers.ExchangeWSConnector.RetrieveMessageFromAttachment(Object attachment, ServiceLogger serviceLogger)

      at Microsoft.Crm.Tools.Email.Providers.ExchangeEmailMessage.ValidateMessage(Boolean isForwardMailbox)

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

      at Microsoft.Crm.Tools.Email.Providers.ExchangeEmailMessage.ValidateMessage(Boolean isForwardMailbox)

      at Microsoft.Crm.Tools.Email.Providers.ExchangePollingMailboxProvider.ValidateMessageInternal(EmailMessage emailMessage)

      at Microsoft.Crm.Tools.Email.Providers.CrmPollingMailboxProvider.Run()\r\nMicrosoft.Crm.CrmException: Invalid mail. Expected header items not found - possibly draft item or other type of item forwarded to this mailbox

      at Microsoft.Crm.Tools.Email.Providers.ExchangeWSConnector.RetrieveMessageFromAttachment(Object attachment, ServiceLogger serviceLogger)

      at Microsoft.Crm.Tools.Email.Providers.ExchangeEmailMessage.ValidateMessage(Boolean isForwardMailbox)

  • Community Member Profile Picture
    on at

    Saurabh,

    Were you able to fix the issue?

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans