---
title: "SMTP error 530 5.7.0: authentication required or STARTTLS first"
description: "SMTP 530 5.7.0 means the outgoing server wants you to sign in or to switch on encryption before it accepts a message. How to set up your mail app correctly."
url: https://onesend.email/fix/smtp-530-5-7-0/
---
# SMTP error 530 5.7.0: authentication required or STARTTLS first

530 5.7.0 means the outgoing server will not take your message yet: it wants you to sign in ("Authentication required", RFC 4954) or to switch on encryption first ("Must issue a STARTTLS command first", RFC 3207). Gmail uses this code for both.

## Fix it in your mail app's outgoing (SMTP) settings

1. Turn on **authentication** for the outgoing server, with the same username and password as for receiving (for Gmail, iCloud, Yahoo and AOL that is an app password).
2. Use port **587 with STARTTLS** or port **465 with SSL/TLS**. Port 25 is for servers talking to each other and is often blocked.
3. Use your full email address as the username unless your provider says otherwise.

## Settings for common providers

| Provider | Outgoing server | Port and security |
|---|---|---|
| Gmail | smtp.gmail.com | 465 SSL or 587 STARTTLS |
| Outlook.com | smtp-mail.outlook.com | 587 STARTTLS |
| iCloud Mail | smtp.mail.me.com | 587 STARTTLS |
| Yahoo Mail | smtp.mail.yahoo.com | 465 SSL or 587 STARTTLS |
