From eaf09b4d236de7631abaa3d7bc63f3dddb9e2d3e Mon Sep 17 00:00:00 2001 From: "Jeremy D. Berkleef" Date: Thu, 12 Aug 2021 08:39:37 -0300 Subject: [PATCH] Fix ConnectorType --- deploy-spamfilter-connector.ps1 | 2 +- mass-deploy-spamfilter-connector.ps1 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy-spamfilter-connector.ps1 b/deploy-spamfilter-connector.ps1 index 1a0bbb8..460a5ac 100644 --- a/deploy-spamfilter-connector.ps1 +++ b/deploy-spamfilter-connector.ps1 @@ -5,4 +5,4 @@ $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 \ No newline at end of file +New-InboundConnector -Name $connector_name -SenderDomains {smtp:*;1} -EFSkipIPs $spamfilterips -RestrictDomainsToCertificate $true -RequireTLS $true -TlsSenderCertificateName $hostname -CloudServicesMailEnabled $true -ConnectorType OnPremises \ No newline at end of file diff --git a/mass-deploy-spamfilter-connector.ps1 b/mass-deploy-spamfilter-connector.ps1 index 1ea8bba..61b8b2e 100644 --- a/mass-deploy-spamfilter-connector.ps1 +++ b/mass-deploy-spamfilter-connector.ps1 @@ -1,5 +1,5 @@ # Set up command to run and vars for that command -$ScriptBlock = {New-InboundConnector -Name $connector_name -SenderDomains {smtp:*;1} -EFSkipIPs $spamfilterips -RestrictDomainsToCertificate $true -RequireTLS $true -TlsSenderCertificateName $hostname -CloudServicesMailEnabled $true} +$ScriptBlock = {New-InboundConnector -Name $connector_name -SenderDomains {smtp:*;1} -EFSkipIPs $spamfilterips -RestrictDomainsToCertificate $true -RequireTLS $true -TlsSenderCertificateName $hostname -CloudServicesMailEnabled $true -ConnectorType OnPremises} $connector_name = 'Spamfilter Connector' $hostname = 'spamgateway.aperturect.com'