If Exchange Online mail fails on port 25, first verify outbound TCP 25 from your network: if it is blocked, fix the firewall or ISP path; if it is open, check Exchange Online connection limits, connectors, and SMTP auth settings. If you pick the wrong layer, mail stays queued, relays fail, and devices cannot send. This article shows how to separate network blocks from Exchange Online policy blocks and how to fix each fast for a user mailbox, relay app, or device.
Distinguishing upstream blocks from Exchange Online limits
A true upstream port 25 block stops the connection before Exchange Online can accept mail. An Exchange Online limit or policy block usually appears after authentication or after the service accepts the message, and the failure often shows up as an NDR, a trace failure, or a policy notice rather than a simple connection timeout.
What a true upstream port 25 block looks like
When an ISP or firewall blocks outbound port 25, the source system cannot establish an SMTP session to the target. Devices and apps often show a timeout, connection refused, or no response from the remote host. Exchange Online may never see the attempt, so message trace can be empty for that message.
Picture a printer configured for direct SMTP to the tenant MX endpoint. If TCP 25 is blocked on the office firewall, the printer retries and then fails locally, but Exchange Online never receives a message to trace.
What Exchange Online quota and policy blocks look like
Exchange Online applies outbound sending limits to all cloud mailboxes. The per-user recipient rate limit is 10,000 recipients per day, the per-user message rate limit is 30 messages per minute, and the default recipient limit per message is 500, which can be customized from 1 to 1000.
Tenant External Recipient Rate Limit, or TERRL, scales automatically with the number of licenses. Trial organizations have a default external recipient limit of 5,000 per day. When TERRL is exceeded, Exchange Online returns error 550 5.7.233. (Microsoft Learn)
Which error patterns point to each path?
- Connection timeout or refusal. This usually points to a network block on port 25, especially when the source is a device or legacy app that tries to connect directly to the SMTP endpoint.
- The message was accepted far enough for Exchange Online to reject it on policy grounds.
- Rate or submission limits. If authenticated sending trips per-user sending limits, look at SMTP AUTH, not port 25 reachability.
- Delivery failure after acceptance. This can point to outbound spam policy limits, connector misconfiguration, or recipient-limit settings.
📊 When TERRL is exceeded, Exchange Online returns error 550 5.7.233. Source: Microsoft.
Exchange Online outbound limits
Exchange Online can block or throttle outbound mail even when port 25 is open and the mailbox is healthy. The main checks are per-user sending limits, TERRL, outbound spam policy limits, and the recipient limit per message.
Mailbox sending limits
Client SMTP submission, also called SMTP AUTH, uses authenticated user credentials and is subject to per-user limits. The current limits are 10,000 recipients per day and 30 messages per minute. If a user mailbox sends automated mail at volume, those limits can stop mail before any network issue appears.
Tenant external recipient rate limit
TERRL applies to external recipients per day and scales automatically with license count. In trial organizations, the default external recipient limit is 5,000 per day.
Outbound spam policy limits
Outbound spam policy can also stop mail. The external message limit, internal message limit, and daily message limit can each be set from 0 up to 10,000 per hour or per day, and 0 is commonly used to mean the service default. These settings matter when a mailbox, app, or relay floods mail in a short period.
Recipient limit per message
That limit applies to all cloud mailboxes. If a single message exceeds the configured cap, the send can fail even when authentication and network reachability are both fine.
Monitoring and alerts
Message trace tracks individual outbound messages and identifies delivery failures. Built-in alert policies are enabled by default and send notifications to TenantAdmins, including Email sending limit exceeded. Use both tools together, because trace shows message handling while alerts show that a limit was hit.
| Symptom | Likely cause | Verification step | Fix path |
|---|---|---|---|
| Timeout before any SMTP banner | ISP-blocked port 25 | Test outbound TCP 25 from the same network and source host | Move the device to a permitted network path or relay through another server |
| Connection refused on port 25 | Firewall egress block | Check local firewall, security appliance, and upstream edge rules | Allow outbound TCP 25 to the required destination |
| Auth works, then send is rejected after repeated volume | SMTP AUTH throttling or per-user limit | Review the sending user’s recent recipient and message volume | Reduce send rate, split workload, or move the app to relay |
| NDR 550 5.7.233 | TERRL exceeded | Check the tenant’s external recipient count and recent sends | Wait for the daily window to reset or reduce external recipient volume |
| Mail sent, then blocked by policy notice | Outbound spam policy limit hit | Review outbound spam policy settings and TenantAdmin alerts | Lower send burst rate or adjust policy values within the allowed range |
| Single message with too many recipients fails | Recipient limit per message exceeded | Count recipients on the message | Split the message so each copy stays within the configured limit |
| Device can connect, but relay rejects or never forwards | Relay connector misconfiguration | Inspect the outbound connector, source identity, and accepted domains | Correct the connector and retest with one known-good message |
| Printer tries to send to outside recipients | Direct Send used for the wrong purpose | Confirm the destination is external, not internal | Use SMTP relay or an external mail service for outside recipients |
How do you test the failure point?
Start with the simplest split: can the source network reach TCP 25, and did Exchange Online ever accept the message? If port 25 is blocked, fix the network path first. If Exchange Online accepted the message, move to trace, NDRs, and policy checks.
- Test port 25 reachability.From the same source network, test outbound TCP 25 to the destination SMTP host used by the device, app, or relay path. A timeout or refusal points to a network issue, while a successful connection moves the problem into Exchange Online or configuration.
- Check message trace.Search for the sender, recipient, and time window in message trace. It tracks individual outbound messages and identifies delivery failures, but no result does not prove a device completed SMTP submission. If the network blocked the connection, trace may show nothing at all.
- Review NDRs and alerts.Look for 550 5.7.233, policy notices, or TenantAdmin alerts such as Email sending limit exceeded. These indicate that Exchange Online handled the message and then blocked it on limit or policy grounds.
Suppose a multifunction printer sends 400 internal messages through a relay connector and then stops. If TCP 25 is open, message trace shows accepted traffic until the connector or policy limit is hit. If TCP 25 is blocked, the printer fails before trace can confirm anything.
Which path should you use?
Choose the path by source type. Use SMTP AUTH for a user mailbox that sends normal mailbox mail. Use SMTP relay for applications and devices that need connector-based outbound mail. Use Direct Send only for internal recipients. For larger or bursty external volume, use a relay or an external bulk mail service.
User mailbox with SMTP AUTH
SMTP AUTH is the right fit when a mailbox needs to send as a user and authenticate with user credentials. It still follows Exchange Online per-user limits, including 10,000 recipients per day and 30 messages per minute. It is not a bypass for mailbox sending limits.
Application or device with SMTP relay
SMTP relay through a connector fits printers, scanners, and legacy line-of-business apps when port 25 is blocked upstream. It uses a configured outbound connector, and the relay path is limited to 10,000 recipients per day per mailbox used for relay. That makes it a better fit than client submission for shared or device-driven mail.
Internal-only device with Direct Send
Direct Send is unauthenticated and internal-only. It is not subject to per-user sending limits, but it is only for internal recipients. Use it when a device must deliver messages inside the tenant and no authentication-based path is needed.
When to use an external smart host or bulk mail service
If the workload is large, bursty, or internet-facing, use an external smart host or a bulk mail service rather than forcing everything through Exchange Online. That keeps internal mail separate from high-volume application mail and reduces the chance that user mailboxes hit sending limits.
How do I set up a relay path when my ISP blocks outbound port 25?
When an ISP blocks outbound port 25, the fastest valid fix is usually relay through another server or service that can reach the destination on port 25. For Microsoft 365 scenarios, that means validating the outbound connector, confirming the MX-targeted relay path, and testing with one known-good message.
- Confirm the destination path.Identify whether the app or device must send to internal recipients only or to external recipients too. That determines whether Direct Send, SMTP relay, or an external smart host is appropriate.
- Validate the outbound connector.Check the connector used for relay, the source host or IP that is allowed to use it, and the accepted sender domain. Misalignment here can look like a port block even when the network is fine.
- Verify MX-targeted relay.For Microsoft 365 relay scenarios, confirm that the device or app is sending to the correct tenant MX path and that the source network can reach it. Do not treat a general smart host fix as the default answer.
- Retest one message.Send a single known-good message with a small recipient list. This isolates the connector and shows whether the relay path works before you put the device back into production volume.
A common first-timer mistake is to switch a scanner from SMTP AUTH to Direct Send and then address an external recipient. The scan may leave the device, but Direct Send is internal-only, so the message fails later for the wrong reason.
How can I monitor outbound mail after the fix?
After the fix, watch message trace, sender volume, and alert notifications together. Message trace confirms whether Exchange Online accepted and delivered the message. Alert policies tell TenantAdmins when a limit is hit. Volume checks help you stay inside per-user, TERRL, and outbound spam policy limits.
Track message trace results
Run trace on a known-good send, then confirm the message appears with the expected status. Use it to verify acceptance and delivery, and keep in mind that a missing result can still mean a network block before submission.
Watch sending volume against limits
Track recipients per day, messages per minute, and recipients per message for each mailbox or relay source.
Review alert notifications in TenantAdmins
Built-in alert policies are enabled by default and notify TenantAdmins about issues such as Email sending limit exceeded. Use those alerts as an early warning, especially when the sending pattern is automated and the failure repeats on a schedule.
Frequently asked questions
Why is Exchange Online outbound mail blocked on port 25?
Usually because the block is not Exchange Online at all. An ISP, firewall, or local security policy may block outbound TCP 25 before the message leaves the source host. Exchange Online can also block mail later through quotas or policy, but that is a different failure point.
How do I tell whether the failure is port 25, SMTP AUTH, or an Exchange Online sending limit?
Check the source network first, then message trace, then NDRs or alerts. A timeout before SMTP starts points to port 25. Authenticated sending that stops after volume rises points to SMTP AUTH limits.
What error codes or NDRs indicate an Exchange Online outbound block?
The clearest one here is 550 5.7.233, which indicates TERRL was exceeded. Policy notices and TenantAdmin alerts can also point to outbound spam limits or other sending restrictions. A pure network block often has no NDR because the message never reaches Exchange Online.
Should I use SMTP AUTH, SMTP relay, or Direct Send for a blocked port 25 environment?
Use SMTP AUTH for a user mailbox, SMTP relay for apps and devices that need authenticated connector-based outbound mail, and Direct Send only for internal recipients. If port 25 is blocked upstream, relay through another server is the usual workaround for device mail.
How do I test whether my device or app can reach Exchange Online over the required SMTP port?
Test outbound TCP 25 from the same source network and host, then try one small message and check message trace. If the connection fails, fix the network path first. If the connection succeeds, move to connector settings, authentication, or sending limits.
How can I monitor outbound sending in Exchange Online after the fix?
Use message trace to confirm individual sends, check volume against the 10,000 recipients per day and 30 messages per minute limits, and review TenantAdmin alerts. That combination shows whether the fix held and whether the workload is starting to approach another limit.