What 550 5.4.316 means
Microsoft documents the temporary form, 4.4.316 'Connection refused [Message=Socket error code 10061]': Microsoft 365 is trying to deliver to a server outside Microsoft 365, but every connection attempt fails because of a network problem at the external server's location. Socket error 10061 means the remote machine actively refused the connection, typically because nothing listens on port 25 or a firewall rejects it.
Microsoft keeps retrying while the message sits in the queue. When the retries run out, the final bounce reports 550 5.4.316. Microsoft notes the error 'almost always indicates an issue that affects the receiving server or network outside of Microsoft 365', and the NDR should include the IP address that refused, which tells you whose server it is.
What the bounce looks like
The wording providers document for this code. Your bounce may add an IP address, a session ID or a help link after it.
450 4.4.316 Connection refused [Message=Socket error code 10061] The temporary form while Microsoft 365 keeps retrying. Microsoft documents the 4.4.316 code and text; the 450 prefix is how it appears in logs.
Why cold emailers see 550 5.4.316
- The recipient domain's mail server is down, decommissioned or misconfigured, and its MX record still points at it.
- A firewall on the receiving side that only accepts mail from a specific filtering service, so direct connections from Microsoft 365 are refused.
- A hybrid setup where the recipient's on-premises Exchange server was switched off but mail still routes to it.
- A company that has gone out of business or moved its email elsewhere without updating DNS.
How to fix 550 5.4.316
- Look up the recipient domain's MX records. If they point at a host that refuses connections or doesn't exist, the domain can't receive mail right now.
- Check the refused IP address in the bounce. If it belongs to the recipient's own server, only they can fix it.
- Don't resend in a loop. A few later attempts over several days are enough to see whether the problem was temporary.
- If the domain keeps refusing connections, stop emailing every contact at that domain and verify the company still exists before using the data again.
Retry or suppress?
It depends on how long it lasts. A one-off refusal can be an outage, so keep the contact and try once more in a few days. A domain that refuses connections for a week is effectively dead: suppress its contacts.
Reading the code
The basic code 550
means "Mailbox unavailable or message refused (permanent)" under RFC 5321. In 5.4.316, the 5 is the class (permanent failure) and the 4 is the subject (network and routing). The detail number 316 isn't in the RFC 3463 / IANA registry; it's specific to the provider, so the text after the code carries the meaning.
- Class 5
- Permanent failure
- Resending the same message won't work. Something about the message, the recipient or the sender has to change first.
- Subject 4
- Network and routing
- A problem with networking, DNS or routing between servers.
- Detail 5.4.316
- Provider-specific
Check the rest of your setup
Paste the headers of a message that did get through into the email header analyzer to confirm SPF, DKIM and DMARC pass, and check your domain with the SPF, DKIM & DMARC checker. The deliverability checklist covers the rest of a healthy sending setup.
Got a different bounce? Paste it into the SMTP error code lookup to decode it.