Fix ConnectorType

This commit is contained in:
Jeremy D. Berkleef 2021-08-12 08:39:37 -03:00
parent 0318da6697
commit eaf09b4d23
2 changed files with 2 additions and 2 deletions

View File

@ -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
New-InboundConnector -Name $connector_name -SenderDomains {smtp:*;1} -EFSkipIPs $spamfilterips -RestrictDomainsToCertificate $true -RequireTLS $true -TlsSenderCertificateName $hostname -CloudServicesMailEnabled $true -ConnectorType OnPremises

View File

@ -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'