How to change From address for incoming email from Internet

T Crha 381 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.
4,177 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.
7,350 questions
{count} votes

5 answers

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.

    2 deleted comments

    Comments have been turned off. Learn more

  2. Victor Ivanidze 101 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.


  3. Konstantinos Passadis 17,286 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


  4. Konstantinos Passadis 17,286 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


  5. Andy David - MVP 141.6K 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