Replace header from:

Stepulenok Anton 1 Reputation point
2021-03-31T08:21:47.117+00:00

Hello, there is a possibility at the level of logical headers from: you need to make one name for several boxes. %companyname% but only for sending to external recipients.

When I try to enable the rule, I get:

error
You can't set header 'From' with value '"asdfasdfas" <info@hosting.com>'

Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,165 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Andy David - MVP 141K Reputation points MVP
    2021-03-31T11:54:46.89+00:00

    You can't change a header like that in a message with a transport rule.

    You address re-writing if this is on-prem with the Edge role if you want to change that field

    https://techcommunity.microsoft.com/t5/exchange-team-blog/why-is-my-address-rewriting-not-working-as-expected/ba-p/607458

    0 comments No comments

  2. Joyce Shen - MSFT 16,641 Reputation points
    2021-04-01T02:55:34.097+00:00

    Hi @Stepulenok Anton

    What's your Exchange server version or are you using Exchange online?

    Yes, agree with Andy's reply above, we can't rewrite a system generated message header by transport rules. The only allowed rewriting is on the Edge server role or use a custom transport agent (Transport agents are available in versions of Exchange starting with Exchange 2007. Transport agents are not supported in Office 365 or Exchange Online).

    Address rewriting on Edge Transport servers
    Microsoft Exchange Edge Address Rewrite with Exchange Online

    And more related information about transport agent:
    Creating transport agents for Exchange 2013
    From Address Rewriting in a Transport Agent for a Exchange 2007 Hub Server


    If an Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
     

    0 comments No comments