Exchange6 min read

Fix Exchange Error 550 5.7.1 Without Opening Your Relay

Anjali Rawat
Published: | Updated:

Exchange error 550 5.7.1 means the server refused to accept a message for an outside recipient because the sender was not allowed to relay. Find out who sent it first. An internal app or printer needs a dedicated receive connector limited to its IP address. A person using a mail client needs to authenticate on port 587. Run a Telnet test to confirm: a 250 reply to RCPT TO means relay works.

Which Case Are You In?

The same code covers different failures, so start with the sender. Match your situation in this table before you change anything.

Who sent the messageWhat you usually seeWhere the fix lives
An app, scanner or printer relaying through Exchange550 5.7.1 Unable to relay in the app logA dedicated receive connector (Fix 1)
A user in a mail client, sending outside the companyA bounce right after Send, only for external recipientsClient authentication on port 587 (Fix 2)
A sender writing to an Exchange Online recipientAn NDR that names RESOLVER, a group or a blocklistRecipient, group or connector settings

Exchange error 550 5.7.1 appears in the bounce the sender receives, in the log of the app that sends the mail and in the SMTP protocol log of the receive connector. Read the line that follows the code, because it names the cause.

Newer Exchange versions often word the same relay denial as 550 5.7.54 Unable to relay recipient in non-accepted domain, as this relay walkthrough notes. Search your logs for both codes, because a guide for one may describe the other.

Confirm the Block With a Telnet Test

Run the test from the machine that gets the error, not from the Exchange server. Open a session to the server on port 25, then type these commands one at a time:

EHLO test.local
MAIL FROM:<app@yourdomain.com>
RCPT TO:<someone@external-example.com>

A 250 2.1.5 Recipient OK reply means that host may relay. A 550 5.7.1 Unable to relay reply means the connector refused it, and the table above picks your fix. If relay works for a while and then fails, check the throttling limits on the receive connector.

Before You Change Anything

Write down the sending IP address, because every fix below depends on it. Turn on protocol logging for the receive connector that handles port 25 and send one test message. Then open the receive protocol log and find the session for your test message. The connector-id field names the connector that handled it, and the 550 5.7.1 response in that session shows that this connector refused the relay. Save the current settings with Get-ReceiveConnector | Format-List so you can compare after the change.

Fix 1: Allow One Internal Host to Relay

To clear Exchange error 550 5.7.1 for an app or device, leave the default connectors alone. The official anonymous relay guide says to create a dedicated receive connector in the Front End Transport service and limit it to specific hosts.

An app with an allowed IP passes a gate to Exchange while an unlisted host is stoppedScanner app192.168.5.10Unlisted host192.168.9.77Relay connector Exchange250 Recipient OKOutsiderecipient550 5.7.1

Step 1. Create the connector. Replace the two addresses with the IPs of your own apps or devices, nothing wider:

New-ReceiveConnector -Name "Anonymous Relay" -TransportRole FrontendTransport -Custom -Bindings 0.0.0.0:25 -RemoteIpRanges 192.168.5.10,192.168.5.11

Step 2. Pick one permission method, never both. The anonymous method keeps antispam and size checks in place:

Set-ReceiveConnector "Anonymous Relay" -PermissionGroups AnonymousUsers
Get-ReceiveConnector "Anonymous Relay" | Add-ADPermission -User "NT AUTHORITY\ANONYMOUS LOGON" -ExtendedRights "Ms-Exch-SMTP-Accept-Any-Recipient"

Step 3. The other method trusts the host fully:

Set-ReceiveConnector "Anonymous Relay" -AuthMechanism ExternalAuthoritative -PermissionGroups ExchangeServers

This route skips antispam and size checks, so a compromised host could send unrestricted mail. Use it only for hosts you fully control.

Step 4. Check the settings, then repeat the Telnet test:

Get-ReceiveConnector "Anonymous Relay" | Format-List Enabled,TransportRole,Bindings,RemoteIPRanges

Fix 2: Make a Mail Client Authenticate

A person should not relay anonymously, and Exchange error 550 5.7.1 on a mail client almost always means the client is sending without logging in. The Client Frontend connector listens for authenticated SMTP on port 587, as the default receive connectors page lists. Set the outgoing server of the mail client to port 587 and turn on a username and password for it.

If an old device can only send on port 25 and can authenticate, the authenticated SMTP guide explains how to let Client Frontend use port 25. Prefer 587 whenever the device allows it. Change one mailbox first, send a test message to an outside address, and only then roll the setting out to the rest of the team.

When the 5.7.1 Is Not About Relay

An Exchange Online NDR with 5.7.1 has other causes, and the text of the NDR tells you which one. The official NDR fix page lists them:

  • The sender has no permission to write to the recipient, or the recipient is a restricted group.
  • A group with more than 5,000 members needs moderator approval.
  • A public folder requires authentication. The NDR shows RESOLVER.RST.AuthRequired, and the fix is to clear "Require that all senders are authenticated".
  • The sending IP is on a blocklist. The NDR names it, and the fix is a delisting request.
  • The domain is not Healthy, the MX record is stale, the SPF record is incomplete or the hybrid connector has the wrong Delivery and Scope.

One more case looks like relay but is not. When the same IP sits in both an incoming connector and the IP Allow list, the NDR reads Unable To Relay: Blocked by Customer Allow list. Remove the IP from the IP Allow list, resend and read the new NDR.

Keep the Server From Becoming an Open Relay

Fixing Exchange error 550 5.7.1 by opening the server to everyone trades one problem for a worse one. An open relay lets anyone on the internet send mail through your server, and your IP lands on blocklists fast. After Fix 1, test from an outside network with an external sender and an external recipient. The server must refuse that message. Keep RemoteIpRanges to exact addresses and review the list when apps move.

For a wider view of delivery problems, see troubleshooting Exchange mail flow issues. If the problem is mail not arriving instead, read why Exchange is not receiving external email.

FAQs

What does Exchange error 550 5.7.1 mean?

It means the server refused the message because the sender lacked permission for that action. In relay cases, the sender tried to deliver to an outside recipient without being allowed to relay.

Is 550 5.7.1 the same as 550 5.7.54?

Not exactly. Newer Exchange versions often return 5.7.54 for a relay denial to a non-accepted domain. 5.7.1 is the broader permission refusal and also appears in Exchange Online NDRs.

Which port should an app use to send through Exchange?

An app on a trusted IP uses port 25 on the dedicated relay connector. An app or user with credentials uses port 587 on Client Frontend.

Can I edit the Default Frontend connector instead?

Do not. Adding relay rights there risks an open relay, and the official guide says to use a dedicated connector.

Why does relay work at times and fail at others?

Check the throttling limits on the receive connector. A connector that hits its limits can refuse sessions that worked a minute earlier.

Why do only some recipients bounce in Exchange Online?

Those recipients are probably restricted groups, large groups needing approval or public folders that require authentication. Compare the NDR text for each one.

How do I check that my server is not an open relay?

Run the Telnet test from an outside network with an outside sender and recipient. A 550 reply means the server refuses it, which is the result you want.

Last reviewed: December 2026.