530 5.7.0 Must issue a STARTTLS command first (TLS required before AUTH or sending)
The server refuses AUTH or mail until the connection is upgraded with STARTTLS.
530 5.7.0 Must issue a STARTTLS command first530 Must issue a STARTTLS command first530 5.7.0 Must issue a STARTTLS command first.Must issue a STARTTLS command first gsmtp530 5.7.11 Encryption required for requested authentication mechanism Meaning
Use port 587 with STARTTLS enabled in the client (secure: false + requireTLS in Nodemailer, starttls() in Python, "STARTTLS/TLS" in mail clients) or implicit TLS on port 465. Port 25 submission without TLS is refused by many providers.
Common causes
- STARTTLS not enabled in the client
- Port 587 with encryption "none"
- Using port 25 without TLS
- Library skipping STARTTLS
- Misconfigured proxy removing STARTTLS
⚡ Quick fix
- Enable STARTTLS on 587 or use SSL/TLS on 465
- Set the encryption option in the app
- Test with
openssl s_client -starttls smtp
Detailed fix by platform
Python
- python
s = smtplib.SMTP("smtp.example.com", 587) s.ehlo(); s.starttls(); s.ehlo(); s.login(user, pw)
How to diagnose
- STARTTLS — Enabled?
- Port — 587/465?
- Proxy — Strips it?
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
Most viewed in Email / SMTP
- 550 5.7.1 550 5.7.1 Relaying denied / Message rejected as spam / Unauthenticated email not accepted
- Laravel: Connection could not be established with host Laravel: Symfony\Component\Mailer\Exception\TransportException: Connection could not be established with host "smtp.mailtrap.io:2525": stream_socket_client(): Unable to connect
- 550 5.1.1 550 5.1.1 The email account that you tried to reach does not exist (User unknown)
Other ways to find it
Where this error sits
Origin: Network. Errors that are often confused with or caused by this one (click to open):
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
💬 What worked for others
No tips yet — did something else fix this for you?
Share what worked for you
Tips are checked by an editor before they appear. Links are removed.
Report a correction or suggest an improvement
Last updated 18 Nov 2026