8 lines
423 B
PowerShell
8 lines
423 B
PowerShell
|
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
|