Exchange server 2016/2019

Copper Contributor
  1. Hello,

     

    I'm doing a project from my barcherlat degree, and there is a question or a exercise that I need to setup a specific acess to email exchange time, for a specific group on my AD.

     

    So in my AD at my Angola OU, all user's cannot send email or replay to, betwing 7pm to 9am.

     

    I dig deep on internet but dind't find a specific awnser can any one help me to understand if is possible or not? and if it is, how do I do it?

1 Reply

Think of transport rules: Create a rule which denies sending emails from a group (see, which filter fits your needs (sender's address or scope, AD attribute, or even create a separate group for the AD users if necessary)). See https://docs.microsoft.com/en-us/Exchange/security-and-compliance/mail-flow-rules/conditions-and-exc... for more options and details.

Then write 2 short scripts which enable/disable the transport rule.

Finally use the task scheduler to run the one or other script.