At a glance
- Type: temporary failure (class 4, RFC 3463 §2). The sending server keeps the message and retries later (RFC 5321 §4.5.4.1); it bounces only if the problem lasts until the message expires.
- Basic code: varies; the enhanced code is the part that identifies the problem.
- Enhanced code 4.4.316: not in the IANA registry; the group is network and routing status (RFC 3463 §3.5).
- Who uses it: Microsoft (Exchange Online): connection refused by the receiving server (socket error 10061).
A 4.4.316 delay notice from Microsoft 365 means your message has not been delivered yet. Microsoft's servers could not open a connection to the recipient's mail server, so the message is still waiting. If the code appears in a non-delivery report instead, it is the last error before the message expired.
What it means
This is Microsoft's own code. The IANA registry ends its X.4 list at X.4.7, and the closest standard code is 4.4.1, no answer from the host. Microsoft's Exchange Online NDR reference gives the text Connection refused [Message=Socket error code 10061]. Microsoft 365 is sending to a server outside Microsoft, and every attempt to connect fails because of a network problem at that server's end.
Microsoft says this error almost always points to the receiving server or its network, not to Microsoft 365. Look for an IP address in the error text. It belongs to the server that refused, and it tells you who has to fix the problem.
Under RFC 5321 §4.5.4.1, a temporary failure is queued and tried again later. Microsoft's entry for 4.4.7 describes how that ends when nothing works: Exchange Online keeps trying for 24 hours, then the message expires in the queue and the sender gets a non-delivery report (Microsoft's 4.4.7 fix page).
Common causes
- The recipient's mail server is down, or its mail service is not running.
- A firewall on the recipient's side blocks connections on the SMTP port.
- The domain's MX record points to a host that no longer runs a mail server, for example after a move to a new provider.
- The receiving server is set to refuse connections from the addresses Microsoft 365 sends from.
How to fix it
If you are the sender:
- If this was a delay notice, wait: the message is still queued, and a later attempt may succeed. If it came in a non-delivery report, the message expired; send it again once the recipient's server accepts connections.
- Find the IP address in the error. Look up the recipient domain with the MX lookup to see whether that address belongs to one of its mail servers.
- If the failures go on, tell the recipient by phone or another channel. Only they or their provider can fix it.
If you run the receiving server:
- Check that the mail service is running and accepts connections on port 25 from the internet.
- Check firewall rules and any blocks on incoming connections.
- Check that your MX record points to the server that should receive mail.
What to do with the address
Hold it. The address may be fine. The server behind it was unreachable. If the message later expires with 4.4.7 and the domain still refuses connections days later, it may no longer receive mail. Check again before you remove the address.
The address on your list is not what failed here. For the bounces your list does cause, clean the list before you send.