Oct 31 2018 08:08 PM
Hello,
Environment: Exchange Online
Is it possible to Insert Custom value in the Message Header of an email?
Regards,
Dematri
Nov 01 2018 12:02 AM
Yes, via Transport rules: https://docs.microsoft.com/en-us/exchange/security-and-compliance/mail-flow-rules/mail-flow-rule-act...
Nov 04 2018 05:21 PM
Thanks Vasil....
Sorry I should have added earlier -
Is it possible to add the sender address to an existing message header value (type: X-Protective)
Here, sender address will change based on the sender id.
Any suggestion will be of great help.
Nov 04 2018 11:23 PM
In general yes, but depends on the header. Some headers will be stripped/overwritten by the server, you cannot for example "forge" and antispam header, etc.
Nov 05 2018 02:39 PM
Any article that you shared that provides the approach of how to get it tested?
Nov 05 2018 11:17 PM
there are some examples in the article above.
Jun 20 2023 02:18 AM
Hello,
with EWS platform evolving, I find transport rules need more heavy lifting. here is my scenario.
i have 500 mailboxes auto-forward "deliver-to-forward" to few target mailboxes , from which EWS process emails to application.
some scenarios i cannot figure , which mailbox forwarded the email, we need to add Sender/forwarding mailboxes email address to a X-header.
i found a transport rule to achieve this, i cna define any auto-forwarded email set the message header value x-something ...... Value, "here is the problem"
it is not taking variable like %%FROM%%, %%TO%%.... ETC, any way to achive this.
MAnju