Add spamfilter deployment script

This commit is contained in:
Jeremy D. Berkleef 2021-08-09 09:42:48 -03:00
parent 5a8031486b
commit 3801a16828
2 changed files with 9 additions and 0 deletions

View File

@ -4,5 +4,6 @@ This repo contains various scripts used for management tasks (and migrations) on
# Scripts # Scripts
- [**Alias Toolkit**](Docs/alias-toolkit.md) - Easy to use, menu-based script for searching for, exporting and importing aliases from/to Exchange (Online). - [**Alias Toolkit**](Docs/alias-toolkit.md) - Easy to use, menu-based script for searching for, exporting and importing aliases from/to Exchange (Online).
- **Spam Filter Deployment Script** - Script to create the Connector and Enhanced Filtering rule for a spam gateway.
- **List alias .csv contents** - _This has been integrated into Alias Toolkit._ - **List alias .csv contents** - _This has been integrated into Alias Toolkit._
- **Search Email Addresses** - _This has been integrated into Alias Toolkit._ - **Search Email Addresses** - _This has been integrated into Alias Toolkit._

View File

@ -0,0 +1,8 @@
Connect-ExchangeOnline
# Options
$connector_name = 'Spamfilter Connector'
$hostname = 'spamgateway.aperturect.com'
$spamfilterips = {127.0.0.1}, {127.0.0.2}
# Create connector for spam filter and enable EF
New-InboundConnector -Name $connector_name -SenderDomains {smtp:*;1} -EFSkipIPs $spamfilterips -RestrictDomainsToCertificate $true -RequireTLS $true -TlsSenderCertificateName $hostname -CloudServicesMailEnabled $true