Troubleshooting SMTP Authentication
An authentication error means the provider reached the login step and rejected it. The network is working. The credentials, permissions, or login method are not.
First, identify the method
| Method | What counts as the password |
|---|---|
| SMTP | Mailbox password, app password, or generated SMTP password |
| Gmail | Google app password |
| Outlook or Microsoft 365 | Mailbox password or app password, with SMTP AUTH enabled |
| API provider | API key, token, or key pair |
Using the account password where the provider expects an app password is the most common mistake.
SMTP errors
| Error | Meaning | Fix |
|---|---|---|
535 Authentication failed | Username or password rejected | Re-copy both values. Check for spaces. |
530 Authentication required | The server requires a login | Turn on SMTP authentication |
534 5.7.9 Application-specific password required | Google wants an app password | Create one and use it |
550 5.7.8 Username and password not accepted | Gmail rejected the login | Use an app password, not the account password |
5.7.60 Send As denied | Microsoft rejected the From address | Use the mailbox or grant Send As permission |
Relay access denied | The server will not relay for this account | Check the username, domain, or provider plan |
API errors
| Error | Meaning | Fix |
|---|---|---|
401 Unauthorized | Key or token is wrong, revoked, or from another account | Create a new key and paste it again |
403 Forbidden | Key is valid but lacks permission | Add the send scope or verify the domain |
422 Unprocessable Entity | Request rejected, often a sender or recipient problem | Read the message field in the response |
429 Too Many Requests | Rate limit or plan limit | Lower your sending rate and check the plan |
Common causes
- The key was copied with a space or a line break.
- The password was changed at the provider.
- Two-factor authentication is on and the account password no longer works.
- The provider requires an app password.
- An admin disabled SMTP AUTH for the mailbox.
- The API key lacks the send permission.
- The key is restricted to an IP address that does not match the server.
- The provider account is suspended or unpaid.
Test in the right order
- Save the new credential. The text says tests use saved credentials.
- Click Test connection.
- If it passes, click Send test email.
- If that passes, send a test email.
Do not change three fields at once. Change one, save, test.
When the provider uses OAuth
LetterPress sends through mailbox passwords and app passwords, not OAuth. If a plugin was using "Sign in with Google" or "Sign in with Microsoft" to send, there is no password to copy.
Create an app password where the provider allows it, or switch to an API provider. Gmail and Microsoft 365 may block app passwords for some organizations.
Next steps
- Check the exact provider message in Provider error responses.
- Review SMTP settings explained.
- If the login works but mail does not arrive, read Emails not sending.