Summary: This article explains how to ensure that Microsoft 365 will correctly accept mail from DuoCircle email services such as PhishProtection, Email Gateway, Backup MX and Email Forwarding. Creating a Partner Connector, configuring the Enhanced Filtering settings for it, and setting up DuoCircle as a Trusted ARC Sealer are all required for correct evaluation of SPF/DKIM/DMARC by M365.


If you would prefer to create the connector using the Microsoft 365 UI, use this article instead:
https://support.duocircle.com/support/solutions/articles/5000863172-enhanced-filtering-for-connectors-in-365


IMPORTANT: This may take up to 24 hours to fully propagate the Microsoft environment, please plan accordingly.


1.  Connect to Exchange Online PowerShell

Microsoft retired the legacy Basic Authentication remote PowerShell method in 2023. The current method uses the Exchange Online PowerShell V3 module, which uses modern authentication (OAuth).


NOTE: The account used must have Exchange Administrator role or higher in the tenant.


One-time: module installation if not already installed (run as Administrator, only needed once per machine):

Install-Module -Name ExchangeOnlineManagement -Force

If the module is already installed but outdated, update it with:

Update-Module -Name ExchangeOnlineManagement

Connect to your tenant:

Connect-ExchangeOnline -UserPrincipalName admin@yourdomain.com

This opens a browser window for modern authentication (supports MFA). Once authenticated, your session is active and you can run Exchange Online cmdlets directly in the same prompt.

When you're done, disconnect cleanly:

Disconnect-ExchangeOnline -Confirm:$false

2.  Create a Partner Connector

The following command will create the connector with the required settings. Replace the -Name value with a name appropriate to the product you are using — this example uses PhishProtection Inbound:

New-InboundConnector `
    -Name "PhishProtection Inbound" `
    -ConnectorType Partner `
    -SenderDomains * `
    -SenderIPAddresses 54.68.193.51,54.148.30.215,54.148.222.11,54.148.229.97, `
        54.149.36.10,54.149.154.28,54.149.205.143,54.149.206.185, `
        54.186.22.84,54.186.27.61,54.186.60.165,54.186.172.23, `
        54.191.151.194,54.191.158.99,54.191.214.3,54.191.214.36, `
        104.232.45.16/29, `
        52.28.30.98,52.29.118.68,52.29.142.239,52.29.144.204,52.29.162.96, `
        52.58.5.29,52.58.7.81,52.58.7.120, `
        204.27.244.16/29 `
    -RequireTls $true `
    -Enabled $true

Note: The IP list above includes both US and EU ranges and is current as of the publication date of this article. If you are using a US-only or EU-only filtering region, you can omit the other region's IPs. To get the latest list of IPs, see: https://support.duocircle.com/support/solutions/articles/5000524218-ip-addresses-for-firewalls


Confirm the connector was created correctly:

Get-InboundConnector -Identity "PhishProtection Inbound" | Format-List `
    Name,Enabled,ConnectorType, `
    SenderDomains,SenderIPAddresses, `
    RestrictDomainsToIPAddresses, `
    RequireTls, `
    EFSkipIPs,EFSkipLastIP

Expected values: Enabled: True, ConnectorType: Partner, SenderDomains: {smtp:*;1}, RestrictDomainsToIPAddresses: False, RequireTls: True, EFSkipIPs: {} (empty until step 3), EFSkipLastIP: False (same).


3.  Upgrade to Enhanced Connector

Set-InboundConnector -Identity "PhishProtection Inbound" `
    -EFSkipLastIP $true `
    -EFSkipIPs 54.68.193.51,54.148.30.215,54.148.222.11,54.148.229.97, `
        54.149.36.10,54.149.154.28,54.149.205.143,54.149.206.185, `
        54.186.22.84,54.186.27.61,54.186.60.165,54.186.172.23, `
        54.191.151.194,54.191.158.99,54.191.214.3,54.191.214.36, `
        104.232.45.16/29, `
        52.28.30.98,52.29.118.68,52.29.142.239,52.29.144.204,52.29.162.96, `
        52.58.5.29,52.58.7.81,52.58.7.120, `
        204.27.244.16/29

Then verify the update:

Get-InboundConnector -Identity "PhishProtection Inbound" | Format-List EFSkipIPs,EFSkipLastIP

NOTE: -EFSkipLastIP $true tells Microsoft to skip the last hop IP (the DuoCircle delivery server) when evaluating the original sender's reputation — which is the key part of Enhanced Filtering. The -EFSkipIPs list covers the full range so any DuoCircle server in the chain is excluded from SCL evaluation.


4.  Add Trusted ARC Sealer

DuoCircle performs ARC-Sealing on relayed messages using the signing name mailhop.org. This needs to be added to the list of Trusted ARC Sealers in your tenant configuration. Refer to Microsoft's instructions here for details:
https://learn.microsoft.com/en-us/defender-office-365/email-authentication-arc-configure

IMPORTANT: If adding mailhop.org using PowerShell (Set-ArcConfig), be aware that the -ArcTrustedSealers parameter replaces the entire list rather than appending to it. If your tenant already has other trusted ARC sealers configured, include them all in the same command to avoid removing them.


More information about connectors

Microsoft: Enhanced Filtering for Connectors (skip listing)
https://learn.microsoft.com/en-us/Exchange/mail-flow-best-practices/use-connectors-to-configure-mail-flow/enhanced-filtering-for-connectors

Microsoft: Managing mail flow with a third-party cloud service
https://learn.microsoft.com/en-us/exchange/mail-flow-best-practices/manage-mail-flow-using-third-party-cloud