Hi all!
I have an issue in my on-premises Exchange 2013 environment (CU13). Let me explain the situation before:
we have an automatic incident generation system that, if you send an email to it, open a Support Ticket on behalf of the sender. It happened that for 8 hours this mechanism ignored mails, so for 8 hours users send support mail without having a support case opened. I have these mail in the inbox of the mailbox, and I need to resubmit to the Incident System's recipient.
I tried to convert the .msg into .eml format using MFCMAPI and then place the file into PuckUp folder in the Exchange server, but after some seconds the file is renamed in .bad and then not processed. It seems that the file is not formatted in a good way or something is missing in the SMTP headers, but I'm not able to find what's wrong.
I then tried to use the Search-Mailbox command piped with "Export-Message $_.Identity | AssembleMessage -Path ("c:\temp\jm\mail\"+ $i +".eml")}" but the Search-Mailbox cmdlet needs a destination pst or a destination mailbox, otherwise it fails.
Do you guys have some suggestion on how to:
- convert the unprocessed messages from the mailbox in the EML format that can be processed and sent by Transport service;
or
- export the messages with search-mailbox and then use the AssembleMessage cmdlet;
or
- achieve this goal using another way.
Thanks!