EdbMails EDB Recovery and Migration software
  • Products
    EdbMails
    All-in-one Recovery and Migration Tool
    • EDB recovery and Migration
    • OST, PST, MBOX, NSF, EML, MSG
    • Office 365, Exchange Migration
    • SharePoint, OneDrive & Teams
    • G Suite Migration
    • IMAP Migration
    • Duplicate Remover
    • EdbMails Data Recovery
    • Backup Solutions
    All Products

    EDB Recovery and Migration

    EdbMails lets you recover corrupted, damaged, and offline Exchange EDB files, convert EDB mailboxes to PST format, and directly migrate mailbox data to Office 365 and live Exchange Server.

    EDB to PST
    Recover corrupted, damaged, offline EDB files and convert Exchange EDB mailboxes to PST file format
    Public Folder to Exchange
    Migrate public folders from an Exchange offline EDB file to live Exchange Server
    EDB to Live Exchange Migration
    Directly migrate offline Exchange database (EDB) files to live Exchange server
    Archive Mailbox to Office 365
    Migrate archive mailboxes from offline EDB files directly to Office 365
    EDB to Office 365 Migration
    Directly migrate offline Exchange database (EDB) files to Office 365
    Public Folder to Office 365
    Migrate public folders from an offline Exchange EDB file to Office 365

    OST, PST, MBOX, NSF, EML, MSG Export and Migration

    EdbMails lets you to recover OST and PST files, export OST, PST, MBOX, NSF, EML, and MSG files to PST files, and directly migrate OST, PST, MBOX, and NSF mailbox data to Office 365 and live Exchange Server.

    OST Recovery and Migration
    Recover offline OST files, convert OST to PST, and migrate OST to Office 365 and Exchange Server
    PST Recovery and Migration
    Recover Outlook PST files , Export PST to PST, migrate PST to Office 365 and Exchange Server
    MBOX Export and Migration
    Export MBOX to PST, migrate MBOX to Office 365 and Exchange Server
    NSF Export and Migration
    Export NSF to PST, migrate NSF to Office 365 and Exchange Server
    EML to PST Export
    Convert EML files to Outlook PST files
    PST to MSG Export
    Convert Outlook PST file to MSG file format
    MSG to PST Export
    Export MSG files to Outlook PST files

    Office 365, Exchange Migration

    EdbMails lets you securely migrate mailboxes across Microsoft 365, Exchange, Google Workspace (G Suite), and IMAP-supported servers such as Outlook, Gmail, Zimbra, Zoho Mail, and cPanel, ensuring zero downtime.

    Office 365 Migration
    Migrate between Office 365 tenants, Office 365 to Exchange, Office 365 to PST, PST files to Office 365.
    Exchange Migration
    Migrate between any Exchange Servers, Exchange to Office 365, Exchange to PST, PST files to Exchange.
    Tenant to Tenant Migration
    Migrate Mailboxes, Public Folders, Archive Mailboxes between Office 365 Tenants.
    Exchange to Office 365
    Migrate Mailboxes, Public Folders, Archive Mailboxes from live Exchange server to Office 365.
    Office 365 to IMAP
    Migrate Office 365 to IMAP, Office 365 to Gmail, Office 365 to Outlook, Office 365 to Zoho etc.
    Exchange to IMAP
    Migrate from live Exchange Server to IMAP servers such as Gmail, Outlook, and Zoho Mail.
    Public Folder to Office 365
    Migrate Public Folders between Office 365 tenants with complete folder hierarchy and mailbox data integrity.
    Exchange to PST
    Export live Exchange Server mailboxes, public folders, and archive mailboxes to Outlook PST files.

    SharePoint, OneDrive & Microsoft Teams Migration

    EdbMails lets you migrate SharePoint sites, OneDrive data, Microsoft Teams, teams, channels, chats, permissions, and documents between Microsoft 365 tenants while maintaining the existing folder structure and data integrity.

    SharePoint Online Migration
    Migrate documents, lists, files and folders from SharePoint sites.
    OneDrive for Business Migration
    Migrate documents, lists, files, folders, private chats from OneDrive.
    Microsoft Teams Migration
    Migrate Teams, chats, channels, documents, files and folders etc.

    Google Workspace / G Suite Migration

    EdbMails G Suite Migration Tool lets you easily migrate emails, calendars, contacts, tasks, and more from G Suite to Office 365, Exchange Server, and IMAP servers using a Google Admin account without requiring individual user credentials.

    G Suite Migration
    Migrate emails, calendars, contacts, tasks from G Suite to Office 365, G Suite to Exchange, G Suite to IMAP Servers
    G Suite to Office 365
    Migrate emails, calendars, contacts, tasks from Google Workspace / G Suite to Office 365
    G Suite to Exchange Server
    Migrate emails, calendars, contacts, tasks from Google Workspace / G Suite to on-Premise Exchange Server
    G Suite to IMAP
    Migrate emails, calendars, contacts, tasks from Google Workspace / G Suite to IMAP, Outlook, Zimbra, Zoho etc.

    IMAP Migration

    EdbMails IMAP Migration tool lets you easily migrate emails from IMAP servers such as Outlook, Gmail, Zoho Mail, Zimbra, cPanel, and more. Supports IMAP to IMAP, Office 365, Exchange Server, PST, and bulk PST to IMAP migration.

    IMAP Email Backup & Migration
    Backup and migrate emails from IMAP servers to PST, Office 365, and On-Premises Exchange Server
    IMAP to Office 365
    Migrate emails, folders, and attachments from IMAP servers to Office 365
    IMAP to Exchange
    Migrate emails, folders, and attachments from IMAP servers to on-premises Exchange Server
    IMAP to PST
    Export emails, folders, and attachments from IMAP servers to Outlook PST files for backup
    PST to IMAP
    Migrate emails, folders, and attachments from bulk PST files to IMAP servers

    Duplicate Remover

    EdbMails Duplicate Remover lets you easily remove duplicate items from Office 365 and Exchange Server, and from IMAP, Outlook, Gmail, Zimbra, Zoho Mail, etc., ensuring a clean and organized mailbox.

    Remove Duplicates
    Easily clean up your Office 365, Exchange, Outlook and IMAP accounts by removing duplicate emails.
    Remove Duplicates from Office 365
    Remove duplicate emails, calendars, contacts, journal tasks, etc. from Office 365.
    Remove Duplicates from Exchange Server
    Remove duplicate emails, calendars, contacts, journal tasks, etc. from live Exchange Server.
    Remove Duplicates from IMAP, Outlook
    Remove duplicate emails, attachments from IMAP, Outlook, Gmail, Zimbra, Zoho Mail etc.

    Exchange, SharePoint, OneDrive, Teams and Office 365 Backup

    EdbMails enables secure, automated backup and recovery for Microsoft 365 services including Exchange Online, SharePoint, OneDrive, Teams, and Live Exchange Server with complete data protection and restore flexibility.

    Office 365 Backup
    Incremental, Granular, Encrypted and Compressed Office 365 Mailboxes Backup
    Exchange Server Backup
    Incremental, Granular, Encrypted and Compressed Exchange Mailboxes Backup
    SharePoint, OneDrive & Teams Backup
    Backup Online site collections, Team sites, Office 365 groups, all documents etc.

    EdbMails Data Recovery

    EdbMails Data Recovery Software lets you recover permanently deleted data, including photos, videos, documents, and archived files, from partitions on hard drives, SSDs, USB drives, SD cards, and external storage devices.

    EdbMails Data Recovery
    Recover and restore permanently deleted data from hard drives, SSDs, USB drives, SD cards, and etc.
    Whitepaper
    Request a Demo
    Sign Up
  • Features
  • FAQ
  • Offers
  • Pricing
  • Download
  • Support
  • Sign in
User’s Manual
Office 365 Migration

User Manual

User Manual

  • Office 365 Migration Overview
  • Initial setup
  • System Requirements
  • Migration Scenarios
  • Software Setup
    • EdbMails Installation Process
    • Upgrading the Software
    • How to uninstall
    • Reinstallation
  • Understanding the Application
    • Software's Main Components
    • Understanding the Migration
  • FAQ
    • General
    • Migration Free Trial / Demo
    • Migration License
    • Before Migration
    • Migration - Steps
    • After Migration
  • Videos
    • Office 365 to Office 365
    • Office 365 to Exchange
    • Office 365 to IMAP
    • Office 365 to PST
    • Public Folder to Office 365
    • Archive Mailbox to Office 365
    • Public Folder to Exchange
    • Archive Mailbox to Exchange
    • Restore Bulk PST files to Office 365
    • Automatically Create Office 365
    • Export Office 365 user to CSV file
  • Screenshots
    • Office 365 to Office 365
    • Office 365 to Exchange
    • Office 365 to PST
    • Office 365 to IMAP
  • How it works?
    • Office 365 to Office 365
    • Office 365 to Exchange
    • Office 365 to IMAP
    • Office 365 to PST
    • Public Folder to Office 365
    • Public Folder to Exchange
    • Public Folder to Shared Mailbox
    • Archive Mailbox to Office 365
    • Archive Mailbox to Exchange
    • Office 365 to Hosted Exchange
    • Multiple PST to Office 365
    • Office 365 to Gmail Migration
    • Office 365 Shared mailbox to Exchange
    • Office 365 Public folders to PST
    • Office 365 archive mailbox to PST
    • Office 365 Shared mailbox to PST
    • Office 365 shared mailbox to Public folder
    • Office 365 Archive mailbox to Shared mailbox
    • Office 365 Shared mailbox to Archive mailbox
    • Office 365 to Zoho migration
    • Office 365 group mailbox to shared mailbox
    • Shared mailbox to Office 365 Groups mailbox
    • Office 365 Groups mailbox to Regular mailbox
  • Connect to source Office 365
  • Connect to target Office 365
  • Modern Authentication Using OAuth 2.0
    • Microsoft 365 modern authentication
    • Automatic Registration
    • Manual Registration
  • Connect to Exchange server
  • Knowledge Base
    • Migrate between Office 365 tenants
    • Migrate Office 365 mailbox
    • Public folder migration
    • Office 365 to Exchange Migration
    • Office 365 Migration with same Domain
    • Office 365 Group Migration
    • Selective Mailbox Migration
    • Migration to Exchange 2007, 2010, 2013, 2016 and 2019
    • User-Defined Mailbox/Folder Mapping
    • Export Office 365 users to CSV
    • GoDaddy to Microsoft 365 migration
    • Rackspace to Office 365 migration
    • Office 365 migration methods
    • Office 365 migration checklist
    • Migrate Shared mailbox to Office 365
    • Office 365 migration best practices
    • Office 365 migration challenges
    • Convert shared mailbox to regular mailbox
    • Office 365 to Exchange 2019 migration
    • Office 365 multiple mailbox migration
    • Office 365 Server to Server Migration
    • Cross-Tenant Office 365 migration
    • EWS throttling in Exchange Online
    • Office 365 migration common use cases and solutions
    • Language settings on Office 365 Server
    • Office 365 to iCloud migration
    • Office 365 to Yahoo Mail migration
    • Microsoft 365 sign-in issue
    • Batch create Outlook profiles Intune
    • Create an Office 365 Migration Endpoint
    • Validate Office 365 Mailbox Migration
    • Office 365 Migration Network Requirements
    • Microsoft 365 Migration URLs & Endpoints
    • Office 365 Migration Firewall Ports
    • DNS Changes After Office 365 Migration
    • Autodiscover Troubleshooting After Migration
    • Post-Migration MX Record Validation
    • Office 365 Mail Flow Troubleshooting
    • Mailbox Permission Validation
    • EdbMails vs CodeTwo vs MigrationWiz vs Native Tools
    • Calendar Permission Migration Issues
    • Folder Permission Troubleshooting
    • Large Mailbox Migration Best Practices
    • Archive Mailbox Sync Issues
    • Office 365 Migration Coexistence
    • Cross-Tenant Mailbox Permissions
    • Cross-Tenant Calendar Migration
    • Migration Using App-Only Authentication
    • Office 365 Mailbox Mapping Errors
    • Exchange Online Migration Limits
    • Mailbox Integrity After Migration
    • Security Best Practices for Migration
  • Migration Types
    • Cutover Migration
    • Staged Migration
  • Set Exchange Server Impersonation rights
  • Map the Mailboxes
  • Migration Walkthrough
    • Office 365 tenant to tenant migration
    • Office 365 to Exchange migration
    • Office 365 to PST Export
  • Multifactor Authentication
    • Enable MFA in Office 365
    • Create App password for MFA
    • Disable Security Defaults
  1. Home
  2. Office 365 Migration
  3. Firewall Ports Required for Office 365 Migration | EdbMails
Download Buy Now

Firewall Ports Required for Office 365 Migration

Configuring firewall rules is a critical prerequisite for a successful Office 365 migration. During mailbox migration, the migration application communicates continuously with Exchange Online and other Microsoft 365 services to authenticate users, discover mailbox settings, transfer mailbox data, and verify migration status. If required network ports or Microsoft service endpoints are blocked, migration requests may fail, experience timeouts, or operate with reduced performance.

The primary communication channel for Office 365 migration is encrypted HTTPS traffic over TCP port 443. Depending on the migration scenario, additional services such as DNS, SMTP, Microsoft Entra ID, Exchange Web Services (EWS), Microsoft Graph, and Autodiscover also require network connectivity. Firewalls, proxy servers, SSL inspection devices, or restrictive outbound filtering policies can interrupt these communications even when Internet access is available.

Before starting a migration using EdbMails Office 365 Migration Software, administrators should verify that all required outbound ports are open, Microsoft 365 endpoints are accessible, DNS resolution is functioning correctly, and security devices do not block encrypted traffic. Performing these checks before migrating production mailboxes helps reduce connection failures and minimises migration interruptions.

Why Firewall Ports Are Required During Office 365 Migration

Office 365 mailbox migration consists of multiple communication stages rather than a single network connection. Each stage relies on specific Microsoft services that exchange information securely over standard Internet protocols.

During a migration, the migration application typically performs the following operations:

  • Authenticates administrative credentials with Microsoft Entra ID.
  • Connects to Exchange Online services.
  • Resolves mailbox locations through the Autodiscover service.
  • Retrieves mailbox information and folder structure.
  • Transfers mailbox data through encrypted HTTPS sessions.
  • Synchronises incremental mailbox changes.
  • Validates migration status and mailbox availability.

Because these operations communicate with Microsoft cloud services, outbound Internet connectivity is generally sufficient. Inbound firewall ports are not required for standard Office 365 mailbox migrations initiated from within the organisation's network.

Exchange Online communication

Exchange Online is the primary destination for mailbox migration. The migration application establishes secure HTTPS connections to Exchange Online to read mailbox metadata, create migration sessions, transfer mailbox content, and verify migration completion. Reliable connectivity to Exchange Online endpoints is essential throughout the migration lifecycle. Interruptions in connectivity can result in incomplete mailbox synchronisation, retry operations, or migration failures.

Authentication through Microsoft Entra ID

Every migration session begins with user or application authentication. Microsoft Entra ID validates the migration account and issues authentication tokens that authorise access to Exchange Online resources. If communication with Microsoft Entra ID is blocked by the firewall or proxy server, authentication requests fail before mailbox migration can begin.

Secure HTTPS communication

All mailbox migration traffic between the migration application and Microsoft 365 is encrypted using Transport Layer Security (TLS) over HTTPS. Encrypted communication protects mailbox content, authentication tokens, and administrative operations while data is transmitted across public networks. Deep packet inspection, SSL interception, or certificate replacement performed by network security appliances may interfere with TLS negotiation and should be evaluated before large-scale migration projects.

Microsoft service endpoints

Microsoft 365 services are hosted across multiple geographically distributed datacenters. Rather than relying on a fixed set of IP addresses, Microsoft recommends allowing access to Microsoft 365 service endpoints and URLs, as these may change over time. Where possible, firewall policies should permit outbound communication to Microsoft 365 endpoints instead of maintaining static IP address allow lists. This approach reduces administrative overhead and aligns with Microsoft's endpoint management recommendations.

  1. Firewall Ports Required for Office 365 Migration

    The following ports are commonly used during Office 365 mailbox migration. The required ports depend on the migration type, source environment, authentication method, and services involved.

    PortProtocolDirectionServicePurposeRequirement
    443TCPOutboundHTTPSSecure communication with Exchange Online, Microsoft Entra ID, Microsoft Graph, EWS, Autodiscover, and Microsoft 365 servicesRequired
    53TCP/UDPOutboundDNSResolves Microsoft 365 service endpoints, Autodiscover records, and Exchange Online hostnamesRequired
    80TCPOutboundHTTPLimited use for HTTP redirects, connectivity checks, and certificate validation. Application data is not migrated over HTTP.Optional
    25TCPOutboundSMTPUsed when validating or testing SMTP mail flow. Not required for mailbox data migration itself.Scenario-dependent
    587TCPOutboundSMTP SubmissionUsed when authenticated SMTP communication is required during specific migration or relay scenarios.Scenario-dependent
    123UDPOutboundNTPSynchronises system time to support accurate TLS certificate validation and authentication.Recommended
    143TCPOutboundIMAPRequired only for IMAP-based mailbox migrations from supported source systems.Migration-specific
    993TCPOutboundIMAPSSecure IMAP communication when migrating mailboxes using IMAP over TLS.Migration-specific
    110TCPOutboundPOP3Required only when migrating from POP3-based mailbox environments.Rarely required
    995TCPOutboundPOP3SSecure POP3 communication over TLS for legacy migration scenarios.Rarely required
  2. Understanding the required ports

    TCP Port 443 (HTTPS)

    TCP port 443 is the primary communication channel for Office 365 migrations. It supports secure authentication, mailbox access, Autodiscover requests, Exchange Web Services (EWS), Microsoft Graph API calls, and Exchange Online data transfer. Blocking this port prevents communication with Microsoft 365 services and typically causes authentication failures, mailbox connection errors, or migration timeouts.

    TCP/UDP Port 53 (DNS)

    DNS resolution is required to locate Microsoft 365 service endpoints, Exchange Online resources, and Autodiscover records. Incorrect DNS configuration or blocked DNS queries can prevent the migration application from resolving service hostnames, resulting in connection failures before mailbox migration begins.

    TCP Port 80 (HTTP)

    Although mailbox data is not transferred over HTTP, port 80 may be used for HTTP redirection, certificate validation, and connectivity checks performed by Windows or Microsoft services. Organisations should not rely on HTTP for mailbox migration traffic.

    SMTP, IMAP, and POP Ports

    Ports such as 25, 587, 143, 993, 110, and 995 are required only for specific migration scenarios. For example, IMAP migrations require ports 143 or 993 depending on whether TLS encryption is used, while SMTP ports may be necessary for mail flow validation or relay configuration. These ports are not mandatory for standard Exchange Online mailbox migrations that use HTTPS over port 443.

  3. Common Office 365 Services That Use These Firewall Ports

    Several Microsoft 365 services participate in an Office 365 migration. Although most communication uses HTTPS over TCP port 443, each service has a distinct role in authentication, mailbox discovery, data transfer, or synchronisation. Understanding these services helps administrators identify connectivity issues more efficiently.

    Exchange Online

    Exchange Online is the primary mailbox service in Microsoft 365 and is responsible for storing mailbox data, calendars, contacts, tasks, archives, and public folders. During migration, the migration application establishes secure HTTPS connections to Exchange Online to:

    • Create mailbox migration sessions.
    • Read and write mailbox data.
    • Synchronize incremental mailbox changes.
    • Verify mailbox availability after migration.
    • Retrieve mailbox properties and folder hierarchy.

    If Exchange Online endpoints are inaccessible, mailbox migration cannot proceed even if authentication succeeds.

    Microsoft Entra ID

    Microsoft Entra ID provides identity and authentication services for Microsoft 365. Before mailbox access is granted, the migration account must authenticate successfully and obtain the required access tokens.

    Communication with Microsoft Entra ID is used for:

    • User authentication.
    • OAuth token issuance.
    • Administrator authorization.
    • Application authentication where supported.

    Firewall restrictions, proxy authentication failures, or Conditional Access policies can interrupt the authentication process before mailbox migration begins.

    Autodiscover

    The Autodiscover service enables migration applications to locate Exchange Online mailbox endpoints automatically.

    During migration, Autodiscover is used to:

    • Locate mailbox service URLs.
    • Identify mailbox configuration settings.
    • Determine available Exchange services.
    • Validate mailbox connectivity.

    If Autodiscover requests fail, the migration application may be unable to locate the destination mailbox even though the mailbox exists.

    Exchange Web Services (EWS)

    Exchange Web Services (EWS) is commonly used by migration tools to access mailbox content in Exchange Online and supported Exchange Server environments.

    EWS provides access to:

    • Email messages.
    • Calendar items.
    • Contacts.
    • Tasks.
    • Folder hierarchy.
    • Mailbox metadata.

    Although Microsoft Graph is increasingly used for Microsoft 365 integrations, EWS continues to support many mailbox migration scenarios. If EWS access is restricted by firewall rules, proxy policies, or Exchange configuration, mailbox data retrieval may fail.

    Microsoft Graph

    Microsoft Graph provides a unified API for accessing Microsoft 365 resources. Depending on the migration scenario, Graph may be used for:

    • User and mailbox discovery.
    • Microsoft Entra ID object validation.
    • Directory lookups.
    • Administrative operations.
    • Application-based authentication.

    Graph communication also uses HTTPS over TCP port 443 and requires successful authentication through Microsoft Entra ID.

    SMTP

    SMTP is not used to transfer mailbox data during a standard Exchange Online migration. However, it may be required for:

    • Mail flow validation after migration.
    • Testing outbound email delivery.
    • SMTP relay configuration.
    • Hybrid Exchange deployments.

    Blocking SMTP traffic does not usually prevent mailbox data migration, but it can affect post-migration mail flow validation.

    IMAP and POP

    IMAP and POP are relevant only when the source environment uses these protocols for mailbox migration.

    • IMAP (143/993): Used for migrating email messages from IMAP-compatible mail systems.
    • POP3 (110/995): Used only in limited legacy migration scenarios. These protocols do not support migration of calendars, contacts, tasks, folder permissions, or mailbox rules. For Exchange-to-Exchange or Microsoft 365 migrations, HTTPS over port 443 remains the primary communication protocol.

    DNS

    DNS resolution is essential throughout the migration process. Before connecting to Microsoft 365 services, the migration application resolves hostnames such as Exchange Online, Autodiscover, Microsoft Entra ID, and Microsoft Graph endpoints.

    Common DNS-related issues include:

    • Incorrect DNS server configuration.
    • Stale DNS cache.
    • Internal DNS forwarding problems.
    • Firewall restrictions affecting DNS queries.

    Reliable DNS resolution is a prerequisite for successful migration.

    Network Time Protocol (NTP)

    Although NTP does not transfer mailbox data, accurate system time is important for secure authentication. Microsoft Entra ID authentication tokens and TLS certificates rely on synchronised system clocks. Significant time differences between the migration server and Microsoft services can result in:

    • Authentication failures.
    • Certificate validation errors.
    • OAuth token rejection.
    • Secure connection failures.

    Synchronizing systems with a trusted NTP source helps prevent these issues.

  4. How Firewall Rules Affect Office 365 Migration

    Firewall configuration directly influences migration performance, reliability, and authentication. Restrictive network policies can interrupt communication with Microsoft 365 services even when Internet connectivity appears to function normally.

    Blocked HTTPS traffic

    Blocking outbound HTTPS traffic on TCP port 443 prevents communication with Exchange Online, Microsoft Entra ID, Microsoft Graph, and other Microsoft 365 services.

    Typical symptoms include:

    • Unable to connect to Exchange Online.
    • Authentication failures.
    • Mailbox discovery errors.
    • Migration session failures.
    • HTTP 403 or HTTP 401 responses.
    • Connection timeout messages.

    Authentication failures

    Authentication requests must reach Microsoft Entra ID without interference.

    Common causes include:

    • Proxy authentication failures.
    • Conditional Access restrictions.
    • SSL interception.
    • Invalid TLS certificates.
    • Blocked Microsoft authentication endpoints.

    Authentication issues usually prevent migration from starting rather than interrupting an active mailbox transfer.

    Mailbox connection failures

    Even after successful authentication, mailbox connections can fail if Exchange Online endpoints are inaccessible.

    Administrators may observe:

    • Mailbox not found errors.
    • Unable to retrieve mailbox information.
    • Folder enumeration failures.
    • Incremental synchronisation errors.

    These issues often indicate endpoint filtering rather than mailbox configuration problems.

    Slow migration performance

    Migration throughput depends on stable, uninterrupted network communication.

    Firewall-related factors that can reduce performance include:

    • Deep packet inspection.
    • Traffic shaping.
    • Bandwidth limitations.
    • High network latency.
    • Proxy server bottlenecks.
    • Frequent connection resets.

    Review firewall logs alongside migration reports to determine whether network devices are delaying HTTPS traffic.

    SSL inspection and TLS interception

    Many enterprise firewalls inspect encrypted HTTPS traffic by decrypting and re-encrypting TLS sessions.

    While this improves security monitoring, SSL inspection can interfere with:

    • Certificate validation.
    • OAuth authentication.
    • Secure Exchange Online communication.
    • Microsoft Graph requests.

    Where organisational security policies permit, exclude Microsoft 365 endpoints from SSL inspection to avoid certificate validation or authentication issues.

    Proxy server configuration

    Organizations that route Internet traffic through proxy servers should verify that migration applications can communicate with Microsoft 365 services without interruption.

    Validate that the proxy:

    • Allows outbound HTTPS traffic.
    • Supports Modern Authentication.
    • Does not modify Microsoft certificates.
    • Has sufficient bandwidth for migration workloads.
    • Does not terminate long-running HTTPS sessions.
  5. How to Validate Firewall Connectivity

    Before starting a production migration, verify that network connectivity to Microsoft 365 services is functioning correctly.

    1. Verify DNS resolution

    Use tools such as nslookup or Resolve-DnsName in PowerShell to confirm that Microsoft 365 service hostnames resolve successfully.

    Verify:

    • Exchange Online hostnames.
    • Autodiscover records.
    • Microsoft Entra ID endpoints.
    • Microsoft Graph endpoints.

    2. Test network connectivity with PowerShell

    The Test-NetConnection PowerShell cmdlet verifies connectivity to specific ports.

    Example:
    Test-NetConnection outlook.office365.com -Port 443
    A successful test confirms that the destination host is reachable and that TCP port 443 is accessible.

    3. Test SMTP connectivity

    Where SMTP validation is required, use Telnet or PowerShell to verify connectivity to the appropriate SMTP endpoint.

    Successful SMTP connectivity confirms that firewall rules permit outbound SMTP communication for the configured scenario.

    4. Use Microsoft Remote Connectivity Analyser

    Microsoft Remote Connectivity Analyser can validate Exchange Online connectivity, Autodiscover functionality, and authentication. It helps identify DNS, certificate, authentication, and network configuration issues before migration.

    5. Run Microsoft 365 network connectivity tests

    Microsoft provides network assessment tools that evaluate connectivity between the client network and Microsoft 365 services. These tests can identify latency, routing issues, DNS problems, and endpoint accessibility that may affect migration performance.

    6. Review firewall and proxy logs

    If connectivity tests fail, examine firewall and proxy logs for:

    • Blocked outbound connections.
    • SSL inspection events.
    • TLS negotiation failures.
    • Proxy authentication errors.
    • Connection timeouts.
    • Microsoft endpoint filtering.

    Reviewing these logs alongside migration reports helps determine whether failures originate from the network infrastructure or the migration configuration.

  6. Common Firewall-Related Migration Issues

    The following table lists common firewall and network issues that can affect Office 365 mailbox migrations, along with their possible causes and recommended resolutions.

    IssuePossible CauseResolution
    Unable to connect to Exchange OnlineTCP port 443 is blocked, Microsoft 365 endpoints are inaccessible, or outbound HTTPS traffic is restrictedVerify outbound firewall rules, confirm access to Microsoft 365 service endpoints, and test connectivity using Test-NetConnection.
    Authentication fails before migration startsMicrosoft Entra ID endpoints are blocked, Conditional Access policies restrict the migration account, or SSL inspection interrupts OAuth authenticationValidate Microsoft Entra ID connectivity, review Conditional Access policies, and exclude Microsoft authentication endpoints from SSL inspection where appropriate.
    Autodiscover cannot locate mailboxesDNS resolution failure, incorrect Autodiscover records, or firewall restrictions prevent access to the Autodiscover serviceVerify DNS configuration, confirm external name resolution, and test Autodiscover connectivity using Microsoft's Remote Connectivity Analyzer.
    Slow mailbox migrationDeep packet inspection, bandwidth limitations, proxy bottlenecks, high network latency, or excessive concurrent migration jobsReview firewall performance, monitor available bandwidth, reduce concurrent migrations if necessary, and validate network latency to Microsoft 365 endpoints.
    Migration stops with timeout errorsFirewall session timeout, proxy timeout, unstable Internet connection, or interrupted HTTPS sessionsIncrease session timeout values where appropriate, verify proxy configuration, and ensure persistent HTTPS connectivity throughout the migration.
    DNS lookup failuresInternal DNS configuration issues, blocked DNS traffic, or stale DNS cacheVerify DNS server configuration, clear the DNS cache if required, and confirm successful resolution of Microsoft 365 service endpoints.
    SMTP connectivity tests failPort 25 or 587 is blocked or restricted by firewall policies or the Internet service providerConfirm whether SMTP connectivity is required for the migration scenario and update outbound firewall rules accordingly.

Firewall Best Practices Before Office 365 Migration

Preparing the network infrastructure before migrating mailboxes helps reduce connectivity issues and improves migration reliability.

Allow outbound HTTPS traffic

Ensure that TCP port 443 is open for outbound communication. Exchange Online, Microsoft Entra ID, Microsoft Graph, Exchange Web Services (EWS), and Autodiscover all rely on encrypted HTTPS connections.

Allow Microsoft 365 service endpoints

Microsoft recommends allowing traffic to Microsoft 365 service URLs and endpoints instead of creating static IP address allow lists. Service endpoints are updated periodically, whereas IP addresses may change over time.Review Microsoft endpoint publications regularly and update firewall policies as required.

Verify DNS resolution

Confirm that internal DNS servers can resolve Microsoft 365 service hostnames correctly.

Verify:

  • Exchange Online endpoints
  • Autodiscover records
  • Microsoft Entra ID authentication endpoints
  • Microsoft Graph endpoints

Reliable DNS resolution is essential before starting mailbox migration.

Review proxy configuration

If Internet traffic passes through a proxy server, verify that the migration application can establish uninterrupted HTTPS connections.

Confirm that the proxy:

  • Supports Modern Authentication.
  • Does not modify Microsoft TLS certificates.
  • Allows long-running HTTPS sessions.
  • Has sufficient bandwidth for migration traffic.

Security Considerations

Firewall configuration should balance connectivity requirements with organizational security policies.

Administrators should follow these security practices:

  • Apply the principle of least privilege by permitting only the outbound traffic required for Microsoft 365 services.
  • Avoid opening unnecessary inbound firewall ports for Office 365 mailbox migrations.
  • Restrict administrative access to authorized migration accounts.
  • Monitor firewall logs for blocked Microsoft 365 connections and unusual network activity.
  • Enable logging on firewall and proxy devices to assist with troubleshooting.
  • Keep firewall firmware and security policies up to date.
  • Review Microsoft 365 endpoint updates periodically to ensure firewall policies remain current.
  • Remove temporary firewall exceptions after migration if they are no longer required.

Maintaining secure outbound connectivity while minimising unnecessary exposure helps protect the environment without affecting migration operations.

Conclusion

Proper firewall configuration is a fundamental prerequisite for a successful Office 365 migration. Most migration activities rely on secure outbound HTTPS communication over TCP port 443, supported by services such as Microsoft Entra ID, Exchange Online, Autodiscover, Exchange Web Services, Microsoft Graph, and DNS. Incorrect firewall rules, restrictive proxy configurations, SSL inspection, or DNS resolution issues can lead to authentication failures, connection errors, reduced migration performance, or incomplete mailbox synchronisation.

Administrators should verify firewall rules, allow Microsoft 365 service endpoints, validate DNS resolution, test network connectivity, and review proxy settings before starting production migrations. Performing these checks reduces migration risks and simplifies troubleshooting if connectivity issues occur. This Knowledge Base article from EdbMails provides technical guidance to help administrators configure the required firewall ports before starting an Office 365 migration.

Frequently Asked Questions

  1. Which firewall port is mandatory for Office 365 migration?

    TCP port 443 is the primary required port. It enables secure HTTPS communication with Exchange Online, Microsoft Entra ID, Microsoft Graph, Exchange Web Services, and other Microsoft 365 services.

  2. Does Office 365 migration require port 443?

    Yes. Exchange Online mailbox migrations depend on encrypted HTTPS communication over TCP port 443. Blocking this port prevents authentication, mailbox discovery, and mailbox data transfer.

  3. Is port 25 required for Office 365 mailbox migration?

    Not for standard mailbox migration. Port 25 is used for SMTP mail flow and relay scenarios, but mailbox data migration itself typically uses HTTPS over port 443.

  4. Which outbound firewall ports should be opened?

    For most Exchange Online migration scenarios, outbound TCP port 443 and DNS (TCP/UDP port 53) are essential. Additional ports such as 587, 993, or 143 may be required depending on the migration source and protocol.

  5. How can I test firewall connectivity before migration?

    You can validate connectivity using PowerShell Test-NetConnection, Microsoft's Remote Connectivity Analyzer, Microsoft 365 network connectivity tests, DNS resolution tools such as Resolve-DnsName or nslookup, and by reviewing firewall or proxy logs.

  6. What happens if HTTPS traffic is blocked?

    If HTTPS communication is blocked, the migration application cannot authenticate with Microsoft Entra ID, connect to Exchange Online, or transfer mailbox data. This typically results in connection failures, authentication errors, or migration timeouts.


Additional resources:

  • Office 365 Migration Tool
  • Office 365 Migration Checklist
  • Office 365 Migration Best Practices
  • Incremental Office 365 Migration
  • Office 365 to Exchange Migration
lady image

 

 In this manual

IntroductionRequired Firewall PortsValidate Firewall ConnectivityCommon Firewall-IssuesFirewall Best PracticesSecurity ConsiderationsFAQ's

Office 365 Migration

100 Mailboxes $299 Only

Buy Now

Need help?

24/7 Customer support

Contact us on Live chat

Personalized Demo

Book a personalized demo

Still need help?

Email us / Call us

© 2026 Shifttocloud Inc. Privacy Policy | Terms of Use | GDPR | Security | Press Releases

hidden msg
Live Chat

Hi, May I help you?

Hide Chat Now