5.7.1 SMTP bounce: relaying denied
What 5.7.1 means
The server refused to relay the message, because it does not accept mail for that recipient and will not forward mail for an unauthenticated or unlisted sender. Sendmail and similar mail servers report this as Relaying denied.
Message text
550 5.7.1 <recipient@domain>... Relaying denied.
Common causes of 5.7.1
- Recipient domain is not hosted on the server you sent through
- Client or application sends without SMTP authentication
- Sending IP is not in the server's list of allowed relay clients
How to fix 5.7.1
- Authenticate with SMTP AUTH on port 587 instead of sending anonymously to a remote server.
- Run MX lookup on the recipient domain to confirm which server should receive the mail.
- Ask the administrator of the sending server to allow your client or IP to relay.
Check your domain
Check the MX records of the recipient domainRuns in your browser; nothing is uploaded.
Get your domain's deliverability score
Mail sent through a provider needs that provider's own SPF and DKIM records. Compare provider DNS requirements
Have the full bounce message? Paste it into the bounce code lookup and it will match the code and the provider for you. Open the bounce code lookup.
How to read 5.7.1
The second part, 5.7.1, is an enhanced status code (RFC 3463 §2) written class.subject.detail. Class 5 is a Permanent failure (5xx): the command was rejected and the sender should not repeat it unchanged (RFC 5321 §4.2.1; RFC 3463 §2).. Subject 7 is security or policy: authentication, authorization or policy refused the message. The detail number refines the subject, and providers may define details of their own, which is why one code can read differently at Gmail, Microsoft and Yahoo.
Do not keep resending the same message: a permanent failure repeats until the cause is fixed. Correct the cause, then send a new message.
Official source: www.rfc-editor.org. Last verified 2026-10-29.
Related guides
- How to create an SPF record (syntax and examples)
- How DKIM works and how to publish a DKIM record
- How to set up a DMARC record, from p=none to p=reject
Related codes
- 5.7.1 SMTP: delivery not authorized
- 550 5.7.1 Gmail: likely unsolicited
- 550 5.7.1 Microsoft: delivery not authorized
- 550 5.7.1 Microsoft: unable to relay
- 530 5.7.1 Microsoft: not authenticated
- 550 5.7.1 Gmail: direct send not allowed
FAQ
What does 5.7.1 mean?
The server refused to relay the message, because it does not accept mail for that recipient and will not forward mail for an unauthenticated or unlisted sender. Sendmail and similar mail servers report this as Relaying denied. This is a permanent failure.
How do I fix 5.7.1?
Authenticate with SMTP AUTH on port 587 instead of sending anonymously to a remote server. Run MX lookup on the recipient domain to confirm which server should receive the mail. Ask the administrator of the sending server to allow your client or IP to relay.
Is 5.7.1 permanent, and should I retry?
5.7.1 is a permanent failure, so retrying the same message will fail again. Fix the cause first, then send a new message.