Email

Error 550 5.7.1: "Unable to relay" (relaying denied)

In short. The server that received your message will not keep it: it would have to pass it on to another domain, and it refuses because you are not allowed to use it as a relay. Depending on the case, you have to authenticate with your sending server, or correct a domain's MX record.

Microsoft describes 5.7.1 Unable to relay like this: the sending email system isn't allowed to send a message to an email system that isn't the final destination of the message. RFC 5321 provides that a server declining to relay for policy reasons replies with a 550 code.

Last verified: November 27, 2026, against Microsoft's official list of Exchange Online SMTP errors, Google Workspace's list and RFC 5321.

How to fix it

  1. Authenticate. In your mail program, application or device, turn on SMTP authentication with the mailbox's username and password, and send through your provider's outgoing server. For "Invalid credentials for relay", Google says to configure your server to use SMTP AUTH or to present a registered domain in HELO/EHLO.
  2. With Google Workspace SMTP relay, if the message is "Email relay denied", check that your sending IP address is registered in the Workspace SMTP relay settings.
  3. If you are writing to your own domain, check the MX record. Microsoft cites this case: an MX that points to a server where the domain isn't accepted. The domain's administrator must correct the MX record, or configure the receiving server to accept that domain, or both.
  4. If you have a connector or an intermediate server, check that the sending system really has permission to relay to that recipient: Microsoft lists missing relay permissions among the most common causes.
  5. Do not work around the refusal by opening a relay to everyone: Microsoft points out that a third party may try to use a server to send spam, and the refusal is precisely the protection.

Not to be confused with 550 5.4.1

5.4.1 Relay Access Denied is another line in Microsoft's list: the server does not accept mail for the recipient's domain, usually because of a DNS or configuration error. See 550 5.4.1.

Free tool. DMARC checker

Check your domain for free. AttackScout reads your public SPF, DKIM and DMARC records and tells you what to change. Run the free check

Frequently asked questions

Is my domain blocked?

No. This is about sending authorization or mail routing, not reputation.

Can the error come from a spammer who forged my address?

Yes. Microsoft explains that a spammer's sender address can be forged and that the error message can land with someone who sent nothing. In that case, check your domain's SPF, DKIM and DMARC.

Sources

Accessed on 11/27/2026.

Get the free alerts