Hi Rubiat,
Did you mean you would like to only let emails which contain this pattern 123456(any 4 digit) to be sent to recipients directly, and the other ones would be quarantined and waiting for review/approval?
If I misunderstood it, please feel free to correct me.
If this is the case, I suppose you may create a mail flow rule and use regular expression to match this pattern.
It would be like:
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.
Hello @Kael Yao-MSFT ,
Thanks for your response and extremely sorry for my late acknowledgement. I just want to do the following:
If anyone send me a mail which header or body contains 123456******3221 where 1st 6 digit is always fixed (123456), middle 6 digit can be any number which will be masked by '*' and the last 4 digit could be any number. If this policy doesn't match then the mail goes to quarantine or need to approval from my administrator or someone. If this policy match then the mail can deliver. But one question is if I apply this to all message then other normal mail would be faced any problem or not?
Hi,
Thanks for your update!
But one question is if I apply this to all message then other normal mail would be faced any problem or not?
Yes.
If the condition in the mail flow rule is configured to apply to all messages like in the screenshot, the other normal messages would also be affected.
To avoid this, you may need to configure the appropriate conditions.
I am a little confused with the scenario.
Do you mean the rule should only apply to a message which contains this pattern in header or body:
123456(six digit fixed) + (random six digit which is supposed to be masked by ", however actually it wasn't masked) + (random 4 digit which doesn't need to be masked)
For example, original text is 123456 654321 1111.
The expected text should be 123456 """""" 1111.
So the message would be quarantined and waiting for approval.
Other normal messages, which don't have this pattern, should not be quarantined and should be sent and received normally.
If I misunderstood it, please feel free to correct me.
Hi @Kael Yao-MSFT ,
Thanks for your update. Yes, you understood properly. I want to send all normal mail but only except this type digit. So, how can I do this? Can you suggest me the full procedure?
Hi,
Please access Exchange Admin Center>mail flow>rules and create a new rule.
I suppose the rule would be like:
Please replace the detailed pattern in conditions and exceptions and test if it can work for you.
You may also refer to this link for more information on mail flow rules: Mail flow rules in Exchange Server
Below are some screenshots in my lab:
Subject: 1234569999991234 quarantined
Subject 123456""""""1111 received directly
Sign in to comment