Command failed: 535 Incorrect authentication data (Thunderbird)
The error "Command failed: 535 Incorrect authentication data" means the outgoing (SMTP) server refused the username, password or login method Thunderbird sent. Re-enter the SMTP password, use the full address as the username, match the authentication method to the server, and use an app password or OAuth2 if the provider requires one.
Sohail Hussain10 min readShort answer
- The outgoing (SMTP) server refused the login Thunderbird sent. Open Account Settings, then Outgoing Server (SMTP), and re-enter the password, use the full email address as the user name, and match the authentication method to your provider.
- Outlook.com and Hotmail accounts need OAuth2 instead of Normal password. Gmail accounts need Sign in with Google or an app password, and a mailbox with SMTP switched off fails whatever you set in Thunderbird.
You try to send a message in Thunderbird and get this:
Command failed: 535 Incorrect authentication data
Receiving mail probably still works. Only sending fails, and Thunderbird may add a line telling you to check the password and the authentication method.
Why Thunderbird shows this error
535 is an SMTP reply code for failed authentication. The first digit, 5, marks a permanent failure for that attempt. The server received your credentials or login attempt and refused it. The text after the code is the server's own wording, so you may see 535 5.7.8 Authentication credentials invalid or 535 5.7.139 Authentication unsuccessful on other providers. They point to the same stage of the conversation.
Two facts narrow it down:
- The message comes from the outgoing server. IMAP or POP can work while SMTP fails, because the two servers check credentials separately and Thunderbird stores the passwords separately.
- Nothing was delivered or bounced. The message never left your computer, so this is a client and account problem, not a recipient problem.
The Mozilla support thread this article started from shows the error in Thunderbird but, as far as I can tell, doesn't confirm a single fix. The causes below come from how SMTP authentication works and from provider documentation.
| Cause | Typical symptom | Fix |
|---|---|---|
| Stale or wrong saved SMTP password | Started after a password change | Clear the saved entry, re-enter the password |
| Wrong user name format | New manual setup | Use the full email address |
| Authentication method mismatch | Server rejects Thunderbird's method | Pick the method your provider documents |
| Outlook.com or Hotmail on Normal password | Receiving works, sending fails | Switch to OAuth2 |
| Gmail with a normal password | "Password incorrect" style errors | Sign in with Google or use an app password |
| SMTP disabled on the mailbox | Correct settings still fail | Enable SMTP AUTH (admin) or contact the provider |
Step-by-step fixes
1. Clear the saved SMTP password and enter it again
If you changed the mailbox password, the one Thunderbird saved for sending is out of date.
- Open Settings > Privacy & Security and click Saved Passwords.
- Search for your mail server name and your address, then remove the entries for the outgoing server.
- Restart Thunderbird and send a test message.
- When the password prompt appears, type the password by hand and tick the option to remember it.
Typing it avoids a trailing space picked up from a password manager. People who fixed this error for Hotmail accounts report that deleting every saved password for the account, then signing in again when prompted, brought sending back.
2. Use the full email address as the SMTP user name
- Open Account Settings and select Outgoing Server (SMTP).
- Select the server your account uses and click Edit.
- Set User Name to the full address, for example
you@example.com. - Click OK and send again.
Some hosts want only the part before the @. If the full address fails, use the exact login format your provider documents.
3. Match port, connection security and authentication method
In the same Edit window, check these values:
| Port | Connection security | Notes |
|---|---|---|
| 587 | STARTTLS | Usual choice for mail clients |
| 465 | SSL/TLS | Implicit TLS, widely supported |
| 25 | Varies | Server-to-server; many providers block it for clients |
Then set Authentication method. Normal password is fine over an encrypted connection. Encrypted password works only if the server offers it, and a mismatch is a classic source of this error. OAuth2 works only where the provider supports it. Don't pick No authentication or No encryption as a test; most servers refuse to relay without a login.
Don't keep retrying
Repeated failed logins can trigger a temporary lockout at the provider. After two or three tries, stop and check the account in webmail before you change anything else.
4. Outlook.com, Hotmail and Microsoft accounts: switch to OAuth2
Microsoft's known-issue page on Basic authentication tells Thunderbird users to use OAuth2 instead of Normal password. The path is the menu, then Account Settings, then Outgoing Server (SMTP). Select your Microsoft account, choose Edit, set Authentication method to OAuth2, and select OK. Do the same under Server Settings for the incoming side. If that doesn't work, removing the account and adding it again lets Thunderbird detect the proper settings, and you then just sign in. Details are in Microsoft's page on Outlook.com and Basic authentication.
For a personal Outlook.com address, volunteers on Microsoft's forum give these values: server smtp-mail.outlook.com, port 587, STARTTLS, OAuth2, and the complete address as user name. Also make sure each Outlook account uses its own SMTP entry rather than one borrowed from another account.
5. Gmail and Google Workspace: use Sign in with Google or an app password
Google says Gmail no longer supports third-party apps or devices that require you to share your Google username and password. Remove the Gmail account from Thunderbird and add it again, then choose the Google sign-in option when it appears.
If that isn't possible, an app password can be used when your Google Account has 2-Step Verification on and you can't use "Sign in with Google". Google also notes that app passwords are revoked when you change your Google Account password, so a password change can bring this error back. The option may be missing if you're logged into a work, school, or another organization account; in that case your admin controls it. See Google's app password help page.
For Yahoo and other providers with two-step verification, generate an app-specific password in the account security settings and paste it into Thunderbird.
Check which account type you have
The right fix depends on the account type, not on Thunderbird. A personal Gmail address, a Workspace address, an Outlook.com address and a Microsoft 365 mailbox each behave differently, so confirm yours before switching settings.
6. Check whether SMTP is switched off for the mailbox
Sometimes every setting is correct and the server still refuses. One user with a personal Outlook.com account reported IMAP working but SMTP failing with 535 5.7.139 Authentication unsuccessful, SmtpClientAuthentication is disabled for the Mailbox. Another thread shows the same text paired with an XOAUTH2 error. No client setting fixes this. On Microsoft 365, a tenant admin has to enable SMTP AUTH for the mailbox. On a personal account, you can only confirm it fails in webmail too and then contact the provider.
7. Sign in to webmail to find which side is broken
Log in to the provider's webmail with the same credentials.
- Webmail rejects the password: it was changed or is wrong. Reset it, then update Thunderbird.
- Webmail works, Thunderbird fails: the problem is client settings, an app password or OAuth2 requirement, or SMTP being disabled.
- Security alert or CAPTCHA: the provider may have locked the login. Resolve that first.
8. Rule out other causes
- Separate SMTP credentials. ISPs and hosts often issue SMTP logins that differ from the mailbox login.
- A guessed server name. Use the outgoing server name your host publishes, not one guessed from your domain.
- Multiple SMTP entries. Under Account Settings, open your account's main page and check the Outgoing Server (SMTP) dropdown points at the entry you edited.
- Antivirus mail scanning. Some suites intercept SMTP and re-wrap the connection. Turn that feature off briefly to test.
- An old Thunderbird version. Google's help says an out-of-date app can fail to connect, so update first.
9. Read the connection log
If the cause is still unclear, set the environment variables MOZ_LOG=SMTP:5 and MOZ_LOG_FILE=smtp.log, then launch Thunderbird and reproduce the error. In the file, look at the AUTH mechanisms the server lists, such as AUTH PLAIN LOGIN, and compare them with the method you selected. If the server doesn't offer it, that's your mismatch. Strip passwords from the log before sharing it with anyone.
Checklist before you try again
- The SMTP user name is the full email address, or the format your host documents.
- The saved SMTP password was cleared and typed again by hand.
- Port and security are 587 with STARTTLS or 465 with SSL/TLS.
- The authentication method matches the provider (OAuth2 for Outlook.com, Google sign-in or app password for Gmail).
- The account has its own SMTP entry, selected in the account's main settings page.
- Webmail login and sending work with the same account.
- Thunderbird is up to date.
If nothing works
Contact your mail provider, or your IT admin for a managed domain. Ask whether SMTP authentication is enabled for the mailbox and whether an app password or OAuth2 is required. Send them:
- the exact error text and the time it happened, with your time zone
- the outgoing server name, port, connection security and authentication method
- whether webmail login and sending work
- whether two-factor authentication is on
- what you already tried, and a log with passwords removed
Subject: SMTP login rejected from Thunderbird (535)
Hello,
Thunderbird shows "Command failed: 535 Incorrect authentication data"
when I send from {your-address} at {date and time, time zone}.
Outgoing server: {server name}, port {587 or 465}, {STARTTLS or SSL/TLS}
Authentication method: {Normal password / OAuth2}
Webmail login and sending: {works / fails}
Two-factor authentication: {on / off}
Already tried: cleared saved passwords, re-entered the password,
checked the user name format, switched the authentication method.
Is SMTP authentication enabled for this mailbox, and does it
require an app password or OAuth2?
Thank you.
Common questions
Why does receiving work but sending fail?
Incoming and outgoing servers authenticate separately, and Thunderbird saves a separate password for each. Provider policy can also differ: an account can be allowed to read over IMAP while SMTP is disabled or needs a different method.
Is a 535 error a sign my account was hacked?
Not by itself. It means the server rejected the credentials it received, which is usually a stale password, a wrong method or a provider policy. If you also get security alerts or sign-in notices you don't recognize, change your password from webmail.
Does this have anything to do with SPF, DKIM or DMARC?
No. Those authenticate your domain to receiving servers after a message is sent. A 535 happens before sending, at login. For the domain side, see our guide to setting up SPF, DKIM and DMARC, and the SMTP glossary entry for the protocol itself.
Should I use an app password or OAuth2?
Use OAuth2 or Sign in with Google where Thunderbird offers it. Google itself says app passwords are not recommended and are unnecessary in most cases. Use an app password only when your account has 2-Step Verification on and the sign-in route isn't available.
Explore: Email Marketing Strategy
Related Articles
414 Request-URI Too Large in n8n's Amazon SES node: fix
The error 414 Request-URI Too Large in n8n's AWS SES node means a server in the path refused a request whose URL was too long, which a long HTML body can cause when it travels in the URL. Send through the SES v2 API with an HTTP Request node, or use SES SMTP.
Access denied, bad outbound sender: Outlook cold email fix
"Access denied, bad outbound sender" (550 5.1.8) means Microsoft 365 has put your mailbox on its restricted users list for spam-like sending. An admin must unblock it under Restricted entities in the Microsoft Defender portal. Then clean your list, lower your volume and resume gradually.
Acoustic Campaign "Application error" on login: bookmark fix
Acoustic Campaign shows "application error" at login when you open it from a bookmark saved while you were logged in, because the bookmark carries the old session. Log out, type your pod URL (campaign-us-[X].goacoustic.com) into the address bar, log in, then save a fresh bookmark.
ActiveCampaign 502 Bad Gateway and Tags Failed to Load: Fixes
"Bad gateway Error code 502" in ActiveCampaign means Cloudflare, the proxy in front of the app, got no valid response from ActiveCampaign's servers. That is usually their side. Check the status page, retry in a clean browser session, clear cookies, then send support the Ray ID if it persists.
Ready to supercharge your email marketing?
Start sending smarter emails with AI-powered campaigns. No credit card required.
Get Started Free