Critical ErrorSMTP Error · Permanent (5.x.x)
535 5.7.8

Authentication failed (bad SMTP credentials)

A 535 5.7.8 happens when your own mail client or application fails to authenticate to your outbound SMTP server. This is about logging in to send — not about the recipient.

Updated June 13, 2026

SMTP Exchange / Mail Log
> MAIL FROM:<you@yourdomain.com>> RCPT TO:<recipient@example.com>✕ 535 5.7.8 Authentication failed (bad SMTP credentials)
All guides

Is your domain affected?

Run a free check — we'll show you exactly what's misconfigured.

535 5.7.8 is a permanent SMTP reply meaning authentication failed (bad smtp credentials). 5.7.8 is "authentication credentials invalid." The SMTP server rejected your username/password (or app password/API key) when you tried to connect and send.

What 535 5.7.8 means

5.7.8 is "authentication credentials invalid." The SMTP server rejected your username/password (or app password/API key) when you tried to connect and send.

⚠️
This is a 5.x.x permanent failure — the message will keep bouncing until you fix the cause. Retrying the same message unchanged won't help.

Common causes

📨
#1

Wrong username or password

Most common

The SMTP credentials in your app or device are incorrect or out of date. The most common cause.

🔁
#2

You need an app password, not your account password

Common

Gmail, Microsoft 365, and others require an app-specific password or OAuth when 2FA is on — your normal password is rejected.

⚙️
#3

The account is disabled or SMTP auth is turned off

Common

Some providers disable basic SMTP auth by default (notably Microsoft 365), so it must be explicitly enabled.

How to fix 535 5.7.8

  1. 1

    Re-enter the correct credentials

    Double-check the SMTP username (usually the full email address) and password in your application settings.

  2. 2

    Generate an app password

    If your account uses 2FA, create an app-specific password (Gmail: App Passwords; Microsoft: app password or modern auth) and use that instead.

  3. 3

    Enable SMTP AUTH on the mailbox

    For Microsoft 365, ensure authenticated SMTP is enabled for the mailbox (it's off by default for security).

Confirm your domain is set up correctly

Most delivery failures — permanent or temporary — trace back to authentication or reputation. Run a free EmailHealth check to confirm SPF, DKIM, DMARC, blacklist status, and TLS are all healthy for your sending domain. If you send in volume, free daily monitoring will alert you before a small issue becomes a flood of bounces.

Stop this error from coming back

Most delivery problems start when a DNS record changes, a key is removed or a domain lands on a blocklist. EmailHealth checks your sending domains every day and sends one alert, by email, Slack or webhook, with the exact fix.

1 domain free. Sending from many domains (cold email, agencies, MSPs)? Early access covers 10.

Frequently asked questions

Check your domain for free

SPF, DKIM, DMARC, MX, blocklists and TLS in about 2 seconds. No account needed.

Run the check