Jump to content
EduGeek EdSec 2026 is Go! 27th Oct in Derby! Join us for a day of EdTech security focused talks, networking, and an evening social ×

Office365 / Exchange Mail Blocking (generic times)?


Recommended Posts

Posted

Hi all,

 

Looking for some guidance as how to block external emails within a specified time frame, on a regular basis - to be achieved for Office 365 through Exchange. I am able to setup mail flow rules which I can setup but have to complete this week to week as there is no generic time frame, for example Wednesday 5pm to Thursday 9am, but as you have to select an exact date I cannot set this up as a reoccurring event.

 

Any ideas as to how this could be achieved? Would also like to have an auto-responder setup for when the block is in place.

 

Thanks!

Posted
You could do it with Powershell and a scheduled task to run on an Exchange server or via the AAD Module for Powershell, as the commands in the management centre just translate to Powershell anyway. https://docs.microsoft.com/en-us/powershell/module/exchange/policy-and-compliance/enable-transportrule?view=exchange-ps You can form the Rule in ECP then enable/disable it with the task. As always, I would advise against interfering with mail transport beyond filtering - it's easy to interfere with potential CP, H&S and just plain old out of hours enquiries.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...