How to fix 554 5.7.1 relay access denied

Paste the error to learn how to fix 554 5.7.1 relay access denied: which server refused it and the setting to change.

Try:

Runs in your browser. Nothing is sent or stored.

6 meanings of 554 5.7.1 relay access deniedPaste your bounce above to see which one you got.
  • 554 5.7.1 Any server: Relay access deniedSign in to the outgoing server (SMTP AUTH) in your mail app or sending tool, or send through your own provider's server. Server admins: allow your clients (authenticated users or trusted networks) to relay.
    Why

    The server you handed the message to is not the destination for the recipient's domain, and it does not know you as a client that may pass mail on. Postfix servers answer this with 554 by default.

    You are sending through a server that has not authenticated you (no SMTP sign-in) and does not trust your network, or the recipient domain's MX points at a server that does not accept that domain.

    Source: postfix.org (opens in a new tab), postfix.org (opens in a new tab). Checked Nov 9, 2026.

  • 550 5.7.1 Microsoft 365: Unable to relayThe recipient's admin fixes the MX record or accepted domains; a client that should relay gets permission.
    Why

    The server you sent to is not the final destination for that recipient and will not pass the message on for you.

    An MX record points at a server that does not accept that domain, or the sending client lacks permission to relay.

    Source: learn.microsoft.com (opens in a new tab), learn.microsoft.com (opens in a new tab). Checked Nov 9, 2026.

  • 550 5.4.1 Microsoft 365: Relay access deniedThe recipient's admin checks the domain's MX record and accepted domains.
    Why

    The server that answered does not accept mail for the recipient's domain.

    A mail server or DNS (MX) misconfiguration on the recipient's side.

    Source: learn.microsoft.com (opens in a new tab). Checked Nov 9, 2026.

Browse all 213 codes

6 of 213 codes

  • 554 5.7.1Relay access deniedAny server
    What it means
    The server you handed the message to is not the destination for the recipient's domain, and it does not know you as a client that may pass mail on. Postfix servers answer this with 554 by default.
    Why it happens
    You are sending through a server that has not authenticated you (no SMTP sign-in) and does not trust your network, or the recipient domain's MX points at a server that does not accept that domain.
    The fix
    Sign in to the outgoing server (SMTP AUTH) in your mail app or sending tool, or send through your own provider's server. Server admins: allow your clients (authenticated users or trusted networks) to relay.
    Bounce
    Hard bounce. No automatic retry

    Source: postfix.org (opens in a new tab), postfix.org (opens in a new tab). Checked Nov 9, 2026.

  • 550 5.7.1Unable to relayMicrosoft 365
    What it means
    The server you sent to is not the final destination for that recipient and will not pass the message on for you.
    Why it happens
    An MX record points at a server that does not accept that domain, or the sending client lacks permission to relay.
    The fix
    The recipient's admin fixes the MX record or accepted domains; a client that should relay gets permission.
    Bounce
    Hard bounce. No automatic retry

    Source: learn.microsoft.com (opens in a new tab), learn.microsoft.com (opens in a new tab). Checked Nov 9, 2026.

  • 550 5.4.1Relay access deniedMicrosoft 365
    What it means
    The server that answered does not accept mail for the recipient's domain.
    Why it happens
    A mail server or DNS (MX) misconfiguration on the recipient's side.
    The fix
    The recipient's admin checks the domain's MX record and accepted domains.
    Bounce
    Hard bounce. No automatic retry

    Source: learn.microsoft.com (opens in a new tab). Checked Nov 9, 2026.

  • 550 5.7.0Workspace SMTP relay deniedGmail
    What it means
    Google Workspace's SMTP relay refused the message: the sending IP or domain is not registered in the Workspace relay settings, or the account is suspended.
    Why it happens
    A device or app is relaying through Google from an IP or domain the Workspace admin has not allowed.
    The fix
    In the Admin console, add the device's IP address to the SMTP relay settings. Google points to 'SMTP relay service error messages'.
    Bounce
    Hard bounce. No automatic retry

    Source: knowledge.workspace.google.com (opens in a new tab). Checked Nov 9, 2026.

  • 550 5.7.1Invalid credentials for Workspace relayGmail
    What it means
    The IP address registered in the Workspace SMTP relay does not match the domain the mail is sent from.
    Why it happens
    The relay setting expects another domain, or the envelope sender is empty.
    The fix
    Use SMTP AUTH on the sending server, or present one of your domains in HELO or EHLO. Google points to 'SMTP relay service error messages'.
    Bounce
    Hard bounce. No automatic retry

    Source: knowledge.workspace.google.com (opens in a new tab). Checked Nov 9, 2026.

  • 550 5.7.64TenantAttribution; relay access deniedMicrosoft 365
    What it means
    Mail from the on-premises environment no longer matches the inbound connector's settings.
    Why it happens
    Something changed on premises after the connector was set up.
    The fix
    The admin updates the inbound connector.
    Bounce
    Hard bounce. No automatic retry

    Source: learn.microsoft.com (opens in a new tab). Checked Nov 9, 2026.

Photo of Utku Zihnioglu

By

ยท CEO & co-founder

Updated Nov 11, 2026

Shorter page: the tool first, the answer in a few lines.

How to fix 554 5.7.1 relay access denied starts with which server said it. A server was asked to pass your message to a domain it does not handle, did not know who was asking, and refused. Usually it is your own outgoing server, because your mail app or device did not sign in; less often the recipient's MX record points at a server that does not accept their domain.

How to read the result

Paste the error your mail app showed, or the whole bounce. The decoder reads the words: "Relay access denied" is the standard reply, "Unable to relay" is Microsoft 365's, and "Email relay denied" is Google Workspace's.

Then note where it appeared. An error the moment you send means your own server refused, and the fix is yours. A bounce email that names a remote server means the recipient's side refused, and the fix is their admin's. If Microsoft's 5.7.367 sits before an arrow, read the 550 5.7.367 page instead.

How to fix it, side by side

  • Your mail app. Turn on sign-in for the outgoing server (SMTP AUTH) with your mailbox's username and password.

  • A website form, printer, or app. Give the device its own sign-in, or have your admin trust its network. On Google Workspace, the admin adds the device's IP address in the SMTP relay settings.

  • Your own Postfix server. The refusal comes from reject_unauth_destination. Postfix's default smtpd_relay_restrictions let signed-in users and trusted networks through, so look for the reject rule someone added.

  • Outside senders writing to your domain. Make the server your MX record points at accept your domain, or point the MX at the server that does.

  • A Microsoft 365 "Unable to relay". The admin checks the MX record and the accepted domains.

What to do next

Send one test to an outside address from the same app or device. If it goes through, resend what bounced: the recipients were never refused, only the path.

Sequences sent from Oneprofile skip this setup. A mailbox connects through Google's own sign-in and sends through Gmail, with no outgoing server or SMTP password to set.

How to fix 554 5.7.1 relay access denied: questions

Is 554 5.7.1 relay access denied a hard bounce?

Yes. It starts with 5, so it is permanent and nothing retries it. The address can still be fine: the refusal is about the path the message took, and the same message goes through once the server setting is fixed.

Why do I get 554 5.7.1 relay access denied when sending to Gmail?

Probably another server wrote it. Google's list of Gmail SMTP errors files its relay refusals under 550 codes, for a Workspace relay that does not know the sending device. A 554 usually comes from the outgoing server your mail app is set to use.

Will verifying email addresses prevent relay access denied?

No. Verification checks whether an address can take mail, and this bounce is about the server path, not the address. Fix the relay first. Verification still keeps addresses that do not exist off your list, so those bounces stop too.

About this article

Photo of Utku Zihnioglu

Utku Zihnioglu

CEO & co-founder

Serial entrepreneur who built infrastructure companies handling billions of requests. Now leads engineering at Oneprofile, which finds the people worth talking to, researches each one, and follows up until they reply.

Drafted with AI from our product docs and code. Utku Zihnioglu answers for what it says.

Verify every address before the next send

Oneprofile can verify each address on your list before a sequence sends, and you can start free.

Free plan: 200 credits a month, 3 integrations, no card

Verify every address before the next send

Oneprofile can verify each address on your list before a sequence sends, and you can start free.

Free plan: 200 credits a month, 3 integrations, no card