DearByDear isn’t out yet. Join the waitlist for 50% off your first year when it launches.

DearByDear
GMAIL ERROR · AUTHENTICATION REQUIRED

530 5.7.0: Authentication Required

Gmail’s 530 5.7.0 error, “Authentication Required,” means an app tried to send an email through Gmail’s outgoing server, smtp.gmail.com, without signing in first. Gmail sends nothing for an app that hasn’t signed in, so not one email went. It isn’t saying a password is wrong: the app didn’t give one. The fix is in the app’s settings for the outgoing server.

Returned mail
Gmail

530-5.7.0 Authentication Required. For more information, go to 530 5.7.0 https://support.google.com/mail/?p=WantAuthError

Also seen as
  • MAIL command failed: 530 5.7.0 Authentication Required
  • 530 5.7.0 Authentication required.
In the app or the script, as Gmail’s answer to its first email, before anything is sent.

Why it happens in a mail merge

A mail merge from Gmail goes out through an app: a mail program, a script, a plugin on a website. Before it sends, the app has to sign in to smtp.gmail.com with the Gmail address and a password, and Google’s settings for other mail apps list that server as “Requires Authentication: Yes.” An app whose outgoing server is set not to sign in, or a script given no user name and password, connects and goes straight to sending. Gmail answers 530 5.7.0 to the first email.

The password comes next. Gmail no longer takes your Google password from other apps: they need an app password, a 16-character code Google makes for one app once 2-Step Verification is on, and Google’s steps are in how to make a Gmail app password. The words before the code, such as “MAIL command failed,” come from the app showing Gmail’s reply.

How to fix it

  1. Turn on sign-in for the outgoing server

    In the app’s account settings, find the outgoing (SMTP) server and set it to sign in. Google’s settings for it: smtp.gmail.com, “Requires Authentication: Yes.”

  2. Sign in with an app password

    The user name is your full Gmail address. For the password, create an app password at myaccount.google.com/apppasswords, with 2-Step Verification on: Google no longer accepts your Google password from other apps.

  3. Check the encryption and port

    Google lists the outgoing server with SSL required, TLS where available, and port 587 for TLS/STARTTLS. A connection without encryption gets the same code with other words: “Must issue a STARTTLS command first.”

  4. In a script, pass the login

    Give the SMTP connection the Gmail address and the app password before it sends anything. Where an app or library offers “Sign in with Google,” Google recommends that over an app password.

What DearByDear does

DearByDear always signs in. It sends from Gmail through smtp.gmail.com on port 465 over SSL, with the Gmail address and its app password, and there’s no setting to turn the sign-in off. When you add the Gmail account under Accounts, DearByDear signs in to send and to read, so a refused password shows then, not halfway through a merge. The password window says which password it needs: “Paste the Gmail app password (16 letters, from myaccount.google.com/apppasswords). Not your normal Google password.”

The password is kept in your computer’s credential store. If it’s missing when a merge is due to send, or Gmail refuses the sign-in while a merge is sending, the merge pauses and nobody on the list is marked as failed. Set the password again under Accounts, then resume the Gmail mail merge: it carries on with the people it hasn’t reached yet.

Questions about 530 5.7.0

What does “530 5.7.0 Authentication Required” mean?

That Gmail wants the app to sign in before it sends anything, and the app didn’t. Gmail’s outgoing server sends email only for an account that has signed in with its address and password.

How do I fix “MAIL command failed: 530 5.7.0 Authentication Required”?

Give the app, or the script, a login for the outgoing server: your Gmail address and an app password. “MAIL command failed” means the app went straight to sending an email; the 530 says it should have signed in first.

Is “530 5.7.0 Must issue a STARTTLS command first” the same error?

Same code, different cause: the app connected without encryption. Google’s settings give port 587 with TLS/STARTTLS for the outgoing server. Fix the connection first; the app then needs to sign in as well.

I turned on authentication. Why do I get 535 5.7.8 now?

Because the app now signs in, and Gmail refused the password it gave. Gmail’s Username and Password not accepted error most often means the app was given your Google password: replace it with an app password.

Why doesn’t Google’s link in the error help?

Google’s list of Gmail’s errors sends this one to its “Can’t sign in to your Google Account” troubleshooter, which now ends on “Sorry, this page can’t be found.” And the error isn’t about signing in to your Google Account: it’s the app that didn’t sign in to Gmail’s outgoing server.

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.

  1. Google: Gmail SMTP errors and codes
  2. Google: Read Gmail messages on other email clients using POP
  3. Google: Sign in with app passwords
  4. Google: Add Gmail to another email client

Coming soon, with 50% off your first year.

Join the waitlistNot out yet · Windows & Mac · the waitlist hears first