530 5.7.0: Must issue a STARTTLS command first
530 5.7.0 “Must issue a STARTTLS command first” means your program started talking to the outgoing mail server without encrypting the connection, and the server won’t go on until it does. The fix is in the program’s outgoing server settings: turn encryption on, with the setting that goes with the port. Your password and your email aren’t the problem: the server never got as far as reading them.
Gmail and any mail server
530 5.7.0 Must issue a STARTTLS command first.
- 530-5.7.0 Must issue a STARTTLS command first. For more information, go to About SMTP error messages and review RFC 3207 specifications.
- 530 Must issue a STARTTLS command first
Why it happens in a mail merge
A server that wants encryption first refuses every command but a handful until the program asks for it, with the STARTTLS command. The standard behind the error gives this exact reply for it: 530, with 5.7.0. Gmail lists it among its own replies, pointing to that standard, beside a different 530 5.7.0 for a program that didn’t sign in.
There are two ways to encrypt, each with its own port. On port 587, the connection starts plain and the program switches it to encrypted with STARTTLS; on port 465, it’s encrypted from the start. Google’s settings for smtp.gmail.com are 465 for SSL and 587 for TLS. A mail merge meets the error when the program sending it, such as a script or an add-in, connects to 587 or 25 with encryption set to none.
How to fix it
- Turn on encryption
In the program’s outgoing (SMTP) server settings, set the encryption: STARTTLS, which some programs call TLS, with port 587, or SSL/TLS with port 465. A setting of none is what brings this error.
- Match the setting to the port
Port 587 starts plain and upgrades, port 465 is encrypted from the start, so each needs its own setting. For Gmail, Google gives smtp.gmail.com with 465 for SSL or 587 for TLS.
- Then sign in
Once the connection is encrypted, the server expects the program to sign in: for Gmail, your full address and an app password, made as in how to make a Gmail app password. Spamhaus’s advice for any provider is the same pair, encryption and a sign-in, on port 587 or 465, not 25.
What DearByDear does
DearByDear doesn’t sign in or send an email until the connection is encrypted. For Gmail, Yahoo, iCloud, Zoho and GMX it fills in the server, the port and the encryption itself: smtp.gmail.com on port 465, encrypted from the start, for a mail merge from Gmail. For any other server you type them in, and the only choices are TLS and STARTTLS, with no way to send unencrypted. With STARTTLS, it insists: a server that doesn’t offer it gets no password and no email.
It signs in to both servers when you add the mailbox under Accounts, so a port and an encryption setting that don’t go together fail there, and nothing is saved until they work. If a connection can’t be encrypted later, while a merge is sending, DearByDear pauses the merge and says so, with nothing sent. Microsoft 365 and Outlook.com mailboxes don’t use these settings at all: they send through Microsoft after “Sign in with Microsoft.”
Questions about 530 5.7.0
What does 530 5.7.0 “Must issue a STARTTLS command first” mean?
That the server requires an encrypted connection before anything else, and your program sent a command without one. STARTTLS is the command that switches the connection to encrypted; until the program sends it, the server gives this answer to everything else.
How do I fix it with Gmail?
Set the outgoing server to smtp.gmail.com with port 465 and SSL/TLS, or port 587 and STARTTLS (often labeled TLS), and sign in with your full Gmail address and an app password. Those are Google’s settings for apps that send through Gmail.
Should I use port 465 or 587?
Either, where your provider offers both, as Gmail does, as long as the encryption matches: SSL/TLS with 465, STARTTLS with 587. Spamhaus advises 587 or 465 for sending from a program, not 25.
Is “530 5.7.0 Authentication required” the same error?
No, it’s the next step: the program didn’t sign in. Gmail lists both under 530 5.7.0. For that one, turn on authentication for the outgoing server and sign in with your address and password, or an app password where your provider asks for one, as in turning on SMTP authentication.
Sources
Each provider’s own pages, read on November 5, 2026. The error texts and the fixes are the providers’ own: if they change their wording, theirs is right.