2021-08-09 12:42:48 +00:00
|
|
|
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
|
2021-08-12 11:49:43 +00:00
|
|
|
New-InboundConnector -Name $using:connector_name -SenderDomains {smtp:*;1} -EFSkipIPs $using:spamfilterips -RestrictDomainsToCertificate $true -RequireTLS $true -TlsSenderCertificateName $using:hostname -CloudServicesMailEnabled $true -ConnectorType OnPremises
|