Add spamfilter deployment script
This commit is contained in:
parent
5a8031486b
commit
3801a16828
@ -4,5 +4,6 @@ This repo contains various scripts used for management tasks (and migrations) on
|
||||
|
||||
# Scripts
|
||||
- [**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._
|
||||
- **Search Email Addresses** - _This has been integrated into Alias Toolkit._
|
||||
|
8
deploy-spamfilter-connector.ps1
Normal file
8
deploy-spamfilter-connector.ps1
Normal 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
|
Loading…
Reference in New Issue
Block a user