Changing "From" info on Message Headers in Transport Rules of M365 environment

Melih ÇINAR 0 Reputation points
2023-03-30T15:09:20.24+00:00

Hi,

I need help about a scenario in M365 Mail settings. There is a mailbox named sc@test.com and this is configured in one of the applications' Outgoing Mail Settings. This application uses this e-amil address to send emails to the clients for specific conditions. Our goal is to change the "From": Email Address (sc@test.com) section on message headers before reaching these emails to the client. So, let's say there is another mailbox named sc2@test.com. The scenario;

When sc@test.com sends an email to clients with specific keywords in their subjects, this mail should be sent by sc2@test.com as checking two conditions in the Rules on M365;

1- Mail sent from sc@test.com

2- Subject contains specific word like "test-1"

(there is no problem till here)

If these conditions are met, the rule should set a message header that this mail is sent from sc2@test.com (as removing sc@test.com value).

Can this modification be done in Transport Rules in the M365? I couldn't understand how to setup message header (if it's possible to do so).

Regards,

Exchange Server
Exchange Server
A family of Microsoft client/server messaging and collaboration software.
1,197 questions
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,386 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,503 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Vasil Michev 100.2K Reputation points MVP
    2023-03-30T15:44:13.8033333+00:00

    What you are asking for is effectively address rewriting, and it's not supported in Exchange Online. Though you should be able to address the scenario above by simply using Send As permissions/Send on behalf of.


  2. Aholic Liang-MSFT 13,826 Reputation points Microsoft Vendor
    2023-03-31T08:13:38.2466667+00:00

    Hi @ Melih ÇINAR

    Yes, Exchange Online doesn't support rewriting email addresses during message transfer.

    You could refer to the following link to assign the send as /send on behalf permission. When you need to, you can choose to send notification emails on behalf of this mailbox:

     

     Manage permissions for recipients in Exchange Online | Microsoft Learn


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    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