question

RogerRoger-2394 avatar image
0 Votes"
RogerRoger-2394 asked ZhengqiLou-MSFT commented

Transport Rule

Hi All

I am using exchange 2016 hybrid environment, i have a remote shared mailbox. I have a requirement, i.e. i have a shared mailbox and any email coming to this shared mailbox with an attachment containing pdf file or jpg file should be forwarded to external email address. i.e abc@contoso.com
I created a external contact lets say abc@mydomain.com in exchange onprem.

if i perform the below steps will it work for me. is there a way which will work without creating transport rule. I am adding message header in transport rule, i am not sure is it right way.

  1. Create a transport rule in exchange 2016.

Apply this if--The recipient is 'mysharedmailbox@mydomain.com'
and
Any attachment's file name matches--'.pdf' or '.jpg'
Do the following:
Set the message header to this value-->Set the message header 'APPTEST' to the value '1'

  1. Outlook Rule in the shared mailbox
    Add a condition
    Message header includes: APPTEST
    Has attachment

Add an action
Move to--Folder01
Forward to-->mysharedmailbox@contoso.com

office-exchange-server-administrationoffice-exchange-online-itprooffice-exchange-server-itpro
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

LucasLiu-MSFT avatar image
0 Votes"
LucasLiu-MSFT answered ZhengqiLou-MSFT commented

Hi @RogerRoger-2394 ,
1.If we want to check the attachments contained in the mail, and according to your needs. Creating transport rules will be a good choice.

2.You have a remote shared mailbox, so we should create a transport rule in Exchange online Admin center.

3.According to the inbox rules you created, you want to keep the email in the shared mailbox and forward to external recipients, right? If so, you can create a transport rule as shown in the screenshot below. The rule is that if an email is sent to the shared mailbox "SharedRe" and the attachment contains files in the format of ".jpg" and ".pdf", the address of the contact you created will be added to the email "Bcc", and the email will also be sent to the contact.
100407-inkedcapture3-li.jpg

The transport rule created above will directly redirect the mail during the mail transmission process without modifying any attributes of the mail itself. However, in emails received by external recipients, the sender will be shown as the sender sent to your shared mailbox instead of the shared mailbox. For forwarded mail, do you need to satisfy the sender to be displayed as "Shared mailbox"? If necessary, because Inbox rule cannot recognize the attachment, you need to follow your way. Make some parameter changes to the mail through the transport rule, and then forward the mail through the parameters in the inbox rule. But it should be noted that the object of "Forward to" in the example you provided should be an external contact.





If the response 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.



inkedcapture1-li.jpg (618.8 KiB)
inkedcapture3-li.jpg (605.4 KiB)
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I have created transport rule in exchange 2016, will it be synchronized to Exchange online? i cannot see this rule in Exchange Online Admin Center. Do i need to create the same rule in exchange online as well?

0 Votes 0 ·

Hi @RogerRoger-2394 ,
According to my test, if you create a transport rule in on-premises Exchange server, it will not sync to Exchange online. You just need create this transport rule in Exchange online.



If the response 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 Votes 0 ·

Hi @RogerRoger-2394 ,

Do the suggestions above help? If the issue has been resolved, please click “Accept as answer” to mark helpful reply as an answer, this will make answer searching in the forum easier and be beneficial to other community members as well.

Regards,
Lou


If the response 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 Votes 0 ·