How to Troubleshoot Microsoft 365 Relay Connection Timeouts on Port 25
Question details
Users operating a Debian-based Postfix mail relay are experiencing intermittent delays and connection timeouts when routing mail to Microsoft 365 endpoints.

- Product
- Microsoft 365 / Exchange Online
- Device & OS
- Debian
- Scenario
- Routing outbound email traffic from an on-premises Postfix server to Microsoft 365.
- Observed behavior
- SMTP connections time out on port 25, resulting in delayed mail delivery and intermittent drops before the connection reaches the Microsoft 365 mail protection endpoint.
Verify that your local firewall, ISP network policies, or DNS configurations haven't undergone recent changes that might suddenly block or throttle outbound traffic on port 25.
Verify Tenant SMTP Authentication Settings
Check if Microsoft 365 tenant policies have automatically disabled SMTP client authentication, which can block mail relays.
Microsoft frequently updates security policies to combat SMTP attacks, occasionally disabling SMTP Client Authentication tenant-wide. If your Postfix relay depends on authenticated SMTP, this will lead to dropped connections and timeouts.
Open PowerShell as an administrator and connect to Exchange Online using your Microsoft 365 tenant admin credentials.
Execute the command 'Get-TransportConfig | Format-List SmtpClientAuthenticationDisabled' to verify your global tenant settings.
If the command returns 'True' and your relay setup requires it, it is highly recommended to selectively enable SMTP client authentication only for the specific mailboxes used by your relay, rather than enabling it globally.

Test Alternate Mail Submission Ports
Bypass potential port 25 throttling or restrictions by routing your outbound SMTP traffic over port 587.
Submit a Service Request in Microsoft 365 Admin Center
Engage Microsoft support to investigate tenant-specific routing issues, backend blocks, or unlisted IP throttling.
Looking for a Lightweight and Free Office Suite?
While troubleshooting complex Microsoft 365 server connections, you might need a reliable local office suite to draft your emails, reports, or IT documentation without relying on cloud availability. WPS Office offers a completely free, highly compatible alternative to Microsoft Office.
- 1. Download the Installer: Visit the official WPS Office website and download the free installer for your operating system.
- 2. Install the Application: Run the installer and follow the quick on-screen instructions to set up the software.
- 3. Start Working Offline: Open WPS Office and instantly begin drafting documents, spreadsheets, or presentations with native Microsoft format support.

Frequently Asked Questions
Why is port 25 suddenly timing out on my Postfix relay?
Port 25 timeouts are commonly caused by newly implemented ISP throttling, dynamic IP blocking by Exchange Online's spam filters, or recent Microsoft 365 tenant security policy updates that disable legacy SMTP authentication.
Can disabling SMTP client authentication cause delivery delays?
Yes. If your mail routing configuration relies on SMTP client authentication and it gets disabled globally by Microsoft's security defaults, your server's connection attempts will be rejected or time out.
How can I check if SMTP client authentication is disabled for my Microsoft 365 tenant?
You can connect to Exchange Online via PowerShell and run the command 'Get-TransportConfig | Format-List SmtpClientAuthenticationDisabled' to check the global setting for your tenant.




