Hardware FixRecommendedDevice not working? Your driver may be the problemCheck updates for common hardware issues.Fix DriversHalloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon US: current deals, useful picks and tech finds.Check DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PC×
FREEDOM251

Freedom251 › Blog › 554 5.7.1

How to Fix SMTP Server Error 554 5.7.1 (Relay Access Denied and Policy Rejections)

By Freedom251 Team · · 12 min read

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

SMTP error 554 5.7.1 means the receiving server permanently rejected the message transaction. The number alone does not identify one fault: the server may be refusing an unauthenticated relay, enforcing a recipient policy, rejecting your sender identity or headers, or blocking delivery because of reputation, DNS, or rate-limit conditions. Read the complete non-delivery report (NDR), identify which host issued it and the SMTP stage that failed, then apply the matching fix.

A 5.x.x response is treated as a permanent failure, unlike a 4.x.x temporary response. Retrying the same message without changing the configuration normally produces the same rejection.

As an Amazon Associate I earn from qualifying purchases.

What 554 5.7.1 means

SMTP reply code 554 is defined in RFC 5321 as a failed transaction: “554 Transaction failed (Or, in the case of a connection-opening response, ‘No SMTP service here’).” The enhanced status 5.7.1 supplies a policy or authorization context chosen by the server that rejected the message. It is not a universal diagnosis shared by every provider.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The same code can therefore describe very different situations:

  • Your mail program connected to your own submission server but did not authenticate.
  • Your server authenticated you but is not authorized to relay to the destination domain.
  • The recipient’s gateway rejected the sender, recipient, distribution group, or transport policy.
  • A provider blocked the message because of sender reputation, missing authentication, malformed headers, an IPv6 identity problem, or a sending limit.

The reply text, rejecting hostname, recipient address, and SMTP command stage are more useful than the number by itself.

Read the entire bounce before changing anything

Open the full NDR or delivery-status notification rather than relying on the short error shown by an app. Record these fields:

  1. Replying hostname: note the server named after “Remote server” or “server returned.” It tells you which organization made the decision.
  2. Enhanced status and text: copy the complete line, including any provider-specific reason, policy name, or URL.
  3. Recipient: determine whether every recipient failed or only one domain, address, group, or alias.
  4. SMTP stage: identify whether the rejection occurred after EHLO, MAIL FROM, RCPT TO, or DATA. Some NDRs show a stage label such as CreateMessage.
  5. Original sender and route: note the envelope-from domain, visible From address, sending IP, and the server or connector that submitted the message.

Microsoft documents an example that includes “Remote Server returned ‘<xxxxxxxx> #5.7.1 smtp;550 5.7.1 RESOLVER.RST.AuthRequired; authentication required [Stage: CreateMessage]’.” In that example, AuthRequired and the stage are actionable clues; the generic 5.7.1 suffix is not enough.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Find who owns the rejection

Where the message stopped Likely owner First action
Your submission server during login or MAIL FROM Your mail client, SMTP service, or account administrator Correct SMTP authentication, account permissions, and envelope sender settings.
Your relay while addressing an external domain Your server or connector configuration Authorize the sender and destination, then verify that the relay is intended for that route.
The recipient’s gateway at RCPT TO Recipient administrator or recipient policy Ask the recipient to allow the sender, permit the group member, or adjust the inbound rule.
After DATA or message acceptance Receiving provider’s content, identity, reputation, or rate controls Check headers, SPF/DKIM/DMARC alignment, PTR, reputation, and limits.

If the rejecting host belongs to the recipient, changing your local mail program may not help. External-recipient cases often require the recipient’s administrator or the provider’s support team.

Use this repair sequence

Work from evidence to configuration, changing one variable at a time. Keep the original NDR and the response from each test.

  1. Stop blind retries. A 554 response is a permanent failure in the usual DSN interpretation. Repeated attempts can make a rate or reputation block harder to diagnose.
  2. Capture the complete NDR. Save the hostname, text, recipient, sender, command stage, and any provider error reference.
  3. Send a control message. Use a short plain-text message, one recipient, and no attachment. Test an address at the same domain and, if appropriate, one at a different domain.
  4. Confirm the route. Identify which SMTP host submitted the message and which MX host received it. Compare that route with the service you intended to use.
  5. Verify authentication and relay rights. Check the account, connector, approved sending IP or domain, and destination permissions.
  6. Validate DNS and identity. Check MX records, SPF, DKIM, DMARC alignment where applicable, and PTR for an IPv6 sending address.
  7. Review the message format. Correct the From and Message-ID headers and remove malformed or disallowed header content.
  8. Check policy, reputation, and limits. Read the exact provider guidance named in the NDR and investigate spam classification, IP or domain reputation, and daily or hourly relay limits.
  9. Retest after each change. Record whether the rejection moved to another stage or disappeared. A changed stage is useful evidence even when the message still fails.

Fix authentication and relay authorization failures

Authenticate before submitting mail

A server can require authentication before it accepts a message for submission. Confirm that the client is using the provider’s required SMTP AUTH method or an approved connector, that the account is active, and that the credentials belong to the mailbox or service allowed to send. Re-enter the password only after confirming the account name and server; a valid password for a different account will not grant relay permission.

Do not assume that successfully opening an SMTP connection means you are authorized to relay. The server may allow EHLO and still reject MAIL FROM or RCPT TO until authentication is complete.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Check the envelope sender

The envelope sender (the address used in MAIL FROM) can be subject to rules different from the visible From line. Confirm that its domain is registered with the SMTP provider and that the authenticated account or connector is permitted to use it. A provider may reject an unregistered domain even when the mailbox itself is legitimate.

Authorize the destination

Relay permission normally covers specific sender accounts, IP addresses, connectors, or destination domains. Check whether the connector is restricted to internal recipients, a defined list of domains, or a particular source network. If you administer the server, review the relay-allow list and connector scope; do not open an unrestricted relay to make the error disappear.

For a hosted service, the administrator may need to add the sending domain, approve the connector, or enable the account for external recipients. Ask for the exact restriction named in the NDR rather than requesting a generic “whitelist.”

Correct MX and DNS routing

Mail is delivered according to the recipient domain’s MX records. An incorrect, stale, or conflicting MX configuration can send a message to a server that does not accept that domain, producing “unable to relay” or “delivery not authorized” responses.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Check both sides of the route

  1. Query the recipient domain’s MX records and note every returned host and preference.
  2. Confirm that the highest-priority host is the service intended to receive mail for that domain.
  3. Resolve each MX hostname to its current address and verify that it belongs to the expected provider.
  4. Check the sender domain’s MX records as well, especially after a migration, split delivery change, or DNS update.
  5. Compare the result with the SMTP host shown in the NDR. If they differ, investigate forwarding, smart-host, or connector settings.

Microsoft recommends checking sender and recipient MX records, confirming the expected Microsoft 365 MX syntax for the tenant, and testing inbound and outbound SMTP connectivity with its Remote Connectivity Analyzer. For an Exchange Online domain, avoid publishing multiple competing MX records when the design calls for one authoritative destination; an unexpected record can route some messages to a server that refuses the domain.

Allow for DNS propagation and caching

After an MX change, different senders can temporarily see different answers because resolvers cache records for their published time-to-live. Do not conclude that the new route is universally active from one lookup. Keep the old service available until the migration plan says it can be removed, and test from the network or provider that produced the NDR.

Repair sender identity and message headers

Some 5.7.1 responses are caused by a message that fails the receiving provider’s format or identity checks, even when relay authentication is correct.

Use one valid From address

Set a single syntactically valid From address that the sending account or service is allowed to use. Avoid an empty From field, conflicting duplicate From headers, or a visible address from a domain that the service has not approved. Keep the envelope sender and visible identity aligned when the provider expects that relationship.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Include a valid Message-ID

Ensure the message contains one properly formed Message-ID header. A custom script or forwarding appliance that strips or duplicates this header can trigger a policy rejection. Let the mail client or authenticated service generate it unless your system has a documented reason to set it itself.

Keep headers RFC 5322 compliant

Inspect folded lines, character encoding, address syntax, and Unicode in header fields. Remove malformed line breaks, duplicate structural headers, and unsupported or disallowed Unicode content. Test with a plain-text message first; if that succeeds, add HTML, signatures, and attachments one at a time to identify a formatting component that causes the block.

Gmail-specific 554 5.7.1 causes

Gmail uses 5.7.1 for several policy conditions. Its documented examples include invalid SMTP relay credentials, an unregistered sending IP or domain, suspected unsolicited mail, low IP or domain reputation, missing IPv6 PTR or authentication, malformed or non-compliant From and Message-ID headers, rate limiting, unauthorized direct delivery, and exceeded daily relay limits.

Use the wording in Gmail’s bounce to select the check:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  • Relay credentials or registration: confirm the authenticated account, approved sending IP, and registered envelope domain.
  • Direct-delivery or relay wording: route mail through the provider’s authorized submission or relay service instead of connecting directly to recipient MX hosts.
  • IPv6 wording: verify that the sending IPv6 address has a valid PTR record and that the required authentication records are present. If your service cannot meet the provider’s IPv6 identity requirements, use its documented authenticated route rather than an unqualified direct IPv6 path.
  • Header wording: correct the single From address, Message-ID, and RFC 5322 formatting before testing again.
  • Rate or daily-limit wording: stop sending until the stated window or quota permits another test, then reduce bursts and review the provider’s relay allowance.
  • Spam or reputation wording: examine authentication alignment, complaint or bounce patterns, list acquisition, and the reputation of the sending IP and domain. Follow the provider’s error link or support process if the configuration is clean.

These are Gmail-specific examples, not a definition that applies to every server returning 5.7.1.

Microsoft 365 and Exchange interpretations

Microsoft groups 5.7.1 into three common meanings: delivery not authorized, unable to relay, and client was not authenticated.

Delivery not authorized

A restricted distribution group, transport rule, or recipient setting can deny delivery even when the sender is authenticated. The recipient’s administrator must permit the sender or add the sender to the allowed membership or exception. If only one group or address fails, compare it with a normal mailbox at the same domain to isolate the recipient policy.

Unable to relay

This usually means the selected server does not accept mail for the destination domain or the sender lacks permission to use it as a relay. Recheck MX routing, connector scope, authenticated identity, and the domain list accepted by the server. Do not change the recipient’s address until you have verified that the domain itself is correct.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Client was not authenticated

Enable the authentication method required by the submission service, use the correct account, and confirm that the service has not disabled or restricted SMTP AUTH for that mailbox or connector. The NDR may identify the failure stage; use it to distinguish a login problem from a later recipient-policy rejection.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

When the recipient must make the change

If the rejecting hostname is the recipient’s gateway and your test message fails only for that organization, send the recipient administrator the complete NDR, your sending domain, the sending IP, and the approximate time of the attempt. Ask whether they can:

  • allow your sender address, domain, or authenticated service;
  • permit delivery to the named distribution group or member;
  • remove or adjust an inbound transport rule;
  • confirm that their MX record points to the intended mail system; or
  • provide the provider-specific remediation or support path named in the bounce.

A recipient-side block cannot be repaired solely by editing your desktop mail client. Do not ask for a blanket allow rule when a narrowly scoped exception is sufficient.

Check reputation, authentication, and sending limits

After relay and routing are correct, review the controls that evaluate the sender over time:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  • SPF: make sure the systems that send for your domain are represented in the SPF policy and that the message is leaving through an authorized service.
  • DKIM: confirm that the service signs messages and that the signature validates after forwarding or gateway processing.
  • DMARC: check alignment between the authenticated domain and the visible From domain when your policy requires it.
  • PTR: verify reverse DNS for a sending IPv6 address when the provider calls it out; also confirm that the forward and reverse identities are coherent for the service you operate.
  • IP and domain reputation: investigate sudden volume changes, high bounce rates, spam complaints, compromised accounts, or a newly used sending address.
  • Provider limits: check daily relay quotas, recipient caps, and rate windows. A message can be rejected after a previously successful run has exhausted an allowance.

Authentication records do not guarantee acceptance. They establish identity; the recipient can still apply content, reputation, recipient, or rate policy.

Use a controlled retest to prove the fix

After making one change, send a new message with:

  • one recipient;
  • a short plain-text body;
  • a single, valid From address;
  • no attachment, tracking element, or unusual header;
  • the same route and account that produced the original failure.

Compare the new SMTP response with the original. If the message now reaches DATA but fails afterward, you have moved past authentication or relay and should focus on content, identity, reputation, or recipient policy. If it fails at the same stage with identical text, the corresponding configuration change did not apply or the wrong server is being tested.

Common message patterns and the matching response

NDR wording or clue Most probable issue What to verify
“Relay access denied” or “unable to relay” Destination is outside the server’s relay scope or the sender is not authorized. SMTP AUTH, connector scope, envelope domain, destination domain, and MX route.
“Authentication required” The client submitted without the required authentication or used a disallowed method. Account, password, SMTP AUTH setting, connector policy, and the stage shown in the NDR.
“Delivery not authorized” Recipient, group, alias, or transport rule blocks the sender. Recipient permissions and inbound policy with the recipient administrator.
“Unauthenticated,” “IP not registered,” or “direct delivery not permitted” The provider does not recognize the sending route. Approved relay, registered IP/domain, SPF/DKIM/DMARC, and direct-delivery settings.
“Message-ID,” “From,” or malformed-header wording Message structure fails provider validation. One valid From, one Message-ID, RFC 5322 syntax, encoding, and line folding.
“Rate limit,” “daily limit,” or reputation wording Volume, quota, spam classification, or sender reputation control. Provider limits, recent volume, bounce and complaint signals, authentication, and IP/domain reputation.

Prevent another 554 5.7.1 rejection

  • Document which service submits mail, which domains it may use in the envelope sender, and which destinations it may relay to.
  • Keep MX records, connector routes, and forwarding rules synchronized during migrations.
  • Monitor SPF, DKIM, DMARC, and reverse-DNS changes before increasing message volume.
  • Have scripts and appliances generate standards-compliant From and Message-ID headers.
  • Set a plain-text test recipient and a procedure for saving complete NDRs, including the rejecting hostname and SMTP stage.
  • Review provider quotas and rate windows before a campaign, bulk import, or automated notification run.
  • Use the recipient’s administrator or provider support when the NDR clearly identifies a remote policy that you cannot change.

After you have completed the manual checks, Outbyte PC Repair is an optional shortcut for Windows 11, 10, 8, and 7. It can look for more than 100 common Windows issues where possible, clean temporary and cache files, and adjust settings that affect CPU, RAM, and disk load; it also includes privacy and vulnerability checks, a real-time boost, file shredder, and app-crash log. A free trial is available by category for at least two days, followed by a paid subscription. It complements antivirus software and does not replace it, and results vary.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

554 5.7.1email authenticationemail troubleshootingExchangeGmailMicrosoft 365MX recordsrelay access deniedSMTP

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Crashes, No Sound, or Screen Glitches?Free driver scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.