Forum Discussion

thanhtien19's avatar
thanhtien19
Iron Contributor
Nov 21, 2023
Solved

How to deny specific domain by rule exchange 2019

We have try create rule with sender is @gmail.co but when email send to gmail.com then matching this rule and block email . How to deny exactly domain end and begin not like 

  • LeonPavesic I try with this rule (and using test regex https://regex101.com/r/yN4tJ6/1)

    result if sent email have @test2.com then will can sent another email @test2.co then deny . this is result ok with me

    Thanks your support 

     

6 Replies

  • LeonPavesic's avatar
    LeonPavesic
    Silver Contributor

    Hi thanhtien19,

    To block emails from a specific domain in Exchange 2019, you can utilize the Exchange Admin Center (EAC) and create a mail flow rule.

    You can follow these steps:

    1. Open the EAC (Exchange Admin Center) and navigate to the mail flow section.
    2. Create a new rule (+).
    3. Add the condition “The sender -> is this person or domain” and specify the exact domain you want to block (for example, @gmail.com).
    4. If you want to block all external emails, select the option “The sender is located… -> Outside the organization”.
    5. Click “More options”.

    This rule will block all emails sent from the specified domain.

    Mail flow rule conditions and exceptions (predicates) in Exchange Server | Microsoft Learn
    practical365.com

    Please click Mark as Best Response & Like if my post helped you to solve your issue.
    This will help others to find the correct solution easily. It also closes the item.


    If the post was useful in other ways, please consider giving it Like.


    Kindest regards,


    Leon Pavesic
    (LinkedIn)

    • thanhtien19's avatar
      thanhtien19
      Iron Contributor
      I try block as you with domain @gmail.co but it will also block @gmail.com . i want block exactly and matching these in rule not like *
      • LeonPavesic's avatar
        LeonPavesic
        Silver Contributor

        Hi thanhtien19,

        To block emails from a specific domain, you can follow these steps:

        - Open the Exchange Admin Center (EAC) and navigate to the mail flow section.
        - Create a new rule (+).

        - Choose Limit messages by sender or recipient
        - Add the condition “The adress from the sender correspodents...” and specify the exact domain you want to block (for example, @gmail.co).

        This rule will block all emails sent from the specified domain.

         

        Please click Mark as Best Response & Like if my post helped you to solve your issue.
        This will help others to find the correct solution easily. It also closes the item.


        If the post was useful in other ways, please consider giving it Like.


        Kindest regards,


        Leon Pavesic
        (LinkedIn)

Resources