530 5.7.0 Gmail bounce: STARTTLS required
What 530 5.7.0 means
Gmail requires the connection to switch to TLS with STARTTLS before it accepts mail commands. Your server sent commands before the TLS handshake, so Gmail refused the message.
Message text
530 5.7.0 Must issue a STARTTLS command first.
Common causes of 530 5.7.0
- Sending server does not use STARTTLS or does not offer it
- Client sends EHLO and MAIL FROM before the STARTTLS handshake completes
How to fix 530 5.7.0
- Turn on STARTTLS in the sending server or client (submission on port 587 with STARTTLS is the usual setup).
- Let the TLS handshake finish, then send EHLO again before MAIL FROM.
- Gmail cites RFC 3207 (SMTP over TLS); check that the client library supports STARTTLS and has it turned on.
Check your domain
Read the headers of a bounced messageRuns in your browser; nothing is uploaded.
Get your domain's deliverability score
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 530 5.7.0
The first part, 530, is the SMTP reply code. Authentication required: the server wants the client to authenticate first (RFC 4954). Replies that start with 4 are temporary and replies that start with 5 are permanent (RFC 5321 §4.2.1).
The second part, 5.7.0, 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: knowledge.workspace.google.com. 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.0 SMTP: security status
- 552 5.7.0 Gmail: content blocked as a risk
- 530 5.7.0 Gmail: authentication required
- 550 5.7.0 Gmail: relay denied
- 550 5.7.1 Gmail: likely unsolicited
- 550 5.7.30 Gmail: DKIM not passed
FAQ
What does 530 5.7.0 mean?
Gmail requires the connection to switch to TLS with STARTTLS before it accepts mail commands. Your server sent commands before the TLS handshake, so Gmail refused the message. This is a permanent failure.
How do I fix 530 5.7.0?
Turn on STARTTLS in the sending server or client (submission on port 587 with STARTTLS is the usual setup). Let the TLS handshake finish, then send EHLO again before MAIL FROM. Gmail cites RFC 3207 (SMTP over TLS); check that the client library supports STARTTLS and has it turned on.
Is 530 5.7.0 permanent, and should I retry?
530 5.7.0 is a permanent failure, so retrying the same message will fail again. Fix the cause first, then send a new message.