What 530 5.7.0 means
The server requires an encrypted connection before it will accept your login or message.
Typical bounce message
The exact wording differs between providers, but the code is what matters. Many providers add a link after the text that explains their specific policy.
Common causes
- TLS turned off in the mail app.
- Wrong port and security combination.
If you sent the email
- Use port 587 with STARTTLS, or 465 with SSL/TLS.
If you manage the mail server or domain
- Enable STARTTLS on your client or relay.
How to read this code
- 530 is the basic SMTP reply code. The first digit, 5, means a permanent failure: retrying the same message will not help.
- 5.7.0 is the enhanced status code from RFC 3463. The class 5 again means permanent, the subject 7 means security or policy, a security, authentication or policy decision, and the detail 0 narrows it down to the exact condition described on this page.
Because this is a permanent failure, your mail server stops trying and returns the message to you with this explanation.
530 5.7.0 from each side of the email
| If you are | What you see | What to do first |
|---|---|---|
| The sender | A bounce message (also called a non-delivery report) in your inbox, usually within seconds or minutes. | Use port 587 with STARTTLS, or 465 with SSL/TLS |
| The recipient | Nothing. The message never reaches the inbox, so the recipient usually does not know it was sent. | Tell the sender through another channel which address works, or ask your IT team to check your mailbox and filters. |
| The mail admin | A rejected delivery in the server logs with status 5.7.0. | Enable STARTTLS on your client or relay |
What the full bounce report looks like
Most mail servers send a delivery status notification in a standard format defined by RFC 3464. The human-readable part comes first, and a machine-readable part follows. For this error, the important lines look like this:
Action: failed
Status: 5.7.0
Remote-MTA: dns; mx.example.com
Diagnostic-Code: smtp; 530 5.7.0 Must issue a STARTTLS command first.
Action tells you whether the server gave up (failed) or is still trying (delayed). Status is the enhanced code. Remote-MTA names the server that refused the message, which tells you whether the problem is at the recipient's provider or somewhere in between. Diagnostic-Code is the exact reply that server gave, and it is the line to copy when you ask for help.
Should you resend?
Not until something has changed. A permanent error means the receiving server looked at the message and decided it will not accept it in its current form. Sending the same message to the same address again will fail the same way, and repeated hard bounces tell mailbox providers that you do not keep your list clean. That can push your future mail into spam folders for everyone, not just for this recipient.
Fix the cause first, using the steps on this page. Then send one test message, ideally to an address you control at the same provider, before you resend to the original recipient. If you send newsletters or app notifications, remove the address from your list after the first hard bounce of this kind.
Diagnose it: 530 5.7.0 usually points to a security or policy decision
- Check your own domain with the SPF checker, DKIM checker and DMARC checker. A missing or broken record is the most common cause.
- Find out whether your sending IP or domain is on a public blocklist. The bounce text often names the list.
- Read the link in the bounce. Gmail, Microsoft and Yahoo publish the exact requirements they enforce, and the link usually goes straight to the relevant one.
- If you send in bulk, review your complaint rate. Google and Yahoo ask bulk senders to keep the spam complaint rate below 0.3 percent.
Stop it from happening again
- Publish SPF, sign every message with DKIM and set up DMARC, starting with p=none and reports so you can see who sends for your domain.
- Since February 2024, Gmail and Yahoo require bulk senders (around 5,000 messages a day to their users) to authenticate with SPF and DKIM, publish DMARC, offer one-click unsubscribe and keep complaints low.
- Warm up new IPs and domains slowly, and only send to people who asked for your mail.
Test your fix without bothering real people
Once you have changed a DNS record, a server setting or a message template, send a test to a free temporary inbox. It accepts mail from anywhere, shows the message within a second of arrival, and the Email X-ray on each message shows whether SPF, DKIM and DMARC passed. That tells you whether your authentication is working before you send to customers, and it keeps test messages out of real inboxes and out of your bounce statistics.
Codes in the same family
| Code | Meaning | Type |
|---|---|---|
| 530 | Authentication or encryption required | Permanent |
| 534 | Authentication mechanism too weak | Permanent |
| 535 | Authentication credentials invalid | Permanent |
| 554 | Transaction failed | Permanent |
| 421 4.7.0 | Temporarily deferred for policy reasons | Temporary |
| 421 4.7.28 | Unusual rate of unsolicited mail (temporary) | Temporary |
| 451 4.7.1 | Temporarily rejected for policy reasons | Temporary |
| 552 5.7.0 | Blocked for security reasons (attachment) | Permanent |
A real-world example
A business moves its email to a new provider but forgets to update SPF. Gmail starts rejecting its messages with a 5.7 policy error that mentions authentication. Adding the new provider to SPF, turning on DKIM signing, and checking the result in a temporary inbox brings delivery back within an hour.
Terms used on this page
- TLS
- Transport Layer Security, the encryption protocol protecting data in transit, used by HTTPS and between mail servers.
- STARTTLS
- A command that upgrades a plain connection between mail programs to an encrypted TLS connection.
- Bounce
- A message returned to the sender because it couldn't be delivered.
- MTA
- Mail Transfer Agent, server software that receives and relays email between servers.
- Spam
- Unsolicited bulk email, usually commercial, sent without the recipient's consent.
- Hard bounce
- A permanent delivery failure, usually because the address does not exist.
Related guides
Related codes
FAQ
What does SMTP error 530 5.7.0 mean?
The server requires an encrypted connection before it will accept your login or message.
Is 530 5.7.0 a permanent error?
Yes. 530 5.7.0 is a permanent failure, so the sending server will not retry. Fix the cause and send the message again.
How do I fix 530 5.7.0?
If you sent the email: Use port 587 with STARTTLS, or 465 with SSL/TLS. If you run the mail server: Enable STARTTLS on your client or relay.
Does 530 5.7.0 mean I am blacklisted?
It can. Codes in the x.7.x family are security or policy decisions, and a blocklist listing is one possible reason. Read the text after the code: if it names a list such as Spamhaus, check your IP there. If it mentions SPF, DKIM or DMARC, the problem is authentication, not a blocklist.
Can the recipient fix it?
Rarely. Most causes of this error are on the sending side or in the receiving server's policy, so the sender or the sender's mail admin has to act.
Will I see 530 5.7.0 in Gmail or Outlook?
Yes, if your message fails this way. Gmail shows it in a message from "Mail Delivery Subsystem", and Outlook shows it in a non-delivery report that starts with "Delivery has failed" or "Undeliverable". The code is printed in the technical details near the bottom.
Codes and meanings follow RFC 5321, RFC 3463 and related standards, plus the published error references of major providers. Provider wording changes over time.