Use IPdeny to create Mail flow rules (transport rules) in Exchange Online

This PowerShell script will help an Office 365 administrator or Exchange Online administrator block incoming email messages originating from specific countries using data from IPdeny. About IPdeny country block downloads IPdeny compiles raw data from regional internet registries and offers free of charge country IP address block downloads. Their country IP zone files can be …