How to change From address for incoming email from Internet

T Crha 341 Reputation points
2023-05-15T14:51:08.81+00:00

Hello everyone,

I am facing a situation that I am not sure I can handle - but lets see if anyone will be able to provide an advice.

I need to somehow modify From address for incoming email from internet, so it looks like it has been sent from one of our internal accounts (account that exists in local Active Directory).

How to do that, is that even possible? Can I modify the header via Transport rule (if so, how exactly do I modify FROM)?

Or is this in scope of Exchange Edge server (we have hybrid environment, so I can also involve Edge server). Edge server has something like Rewrite rule cmdlet for powershell, but this seems to be working only for rewrite for outgoing email, it does not modify senders address in a header.

So...any clues how to achieve this?

Thank you,

Tomas

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.
3,384 questions
Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
6,535 questions
{count} votes

4 answers

Sort by: Most helpful
  1. Victor Ivanidze 21 Reputation points
    2023-05-16T14:49:21.66+00:00

    Alternatively you can create a transport agent on you edge server that will do that.


  2. Konstantinos Passadis 5,346 Reputation points
    2023-05-16T21:48:42.7666667+00:00

    Hello @T Crha!

    Welcome to Microsoft QnA!

    I am sorry to disappoint you but Exchange does not have this ability at hand for inbound

    You can do such a thing with additional 3rd party tools probably , like Email Gateways and Proxies

    My original answer is that, no Exchange cannot do that

    I hope this helps!

    Kindly mark the answer as Accepted and Upvote in case it helped!

    Regards


  3. Konstantinos Passadis 5,346 Reputation points
    2023-05-18T10:07:16.04+00:00

    Hello @T Crha!

    I tried but it fails both for FROM: and FROM

    TUser's image

    I hope this helps!

    Kindly mark the answer as Accepted and Upvote in case it helped!

    Regards


  4. Andy David - MVP 121.3K Reputation points MVP
    2023-05-18T10:45:39.7866667+00:00

    an agent perhaps, but this is old and you would need to write your own:

    https://gsexdev.blogspot.com/2009/01/from-address-rewriting-in-transport.html

    0 comments No comments