Amazon SES SMTP: 535 Authentication Credentials Invalid (IAM user vs SMTP credentials, region)
The SMTP login to SES fails because you used the wrong kind of credentials or the wrong regional endpoint.
535 Authentication Credentials InvalidSES SMTP 535 Authentication Credentials Invalidsmtplib.SMTPAuthenticationError: (535, b'Authentication Credentials Invalid')email-smtp.us-east-1.amazonaws.com 535Authentication Credentials Invalid Amazon SES Meaning
SES SMTP needs SMTP credentials derived from an IAM access key (not the access key ID/secret directly, and not the console password), generated for the same region as the endpoint (email-smtp.eu-west-1.amazonaws.com). Create them in SES → SMTP settings, or convert the secret with AWS's algorithm.
Common causes
- Using the raw IAM secret instead of the SMTP password
- Credentials created for another region
- Wrong endpoint hostname
- Special characters mangled in config
- Deleted/disabled IAM user
⚡ Quick fix
- Generate SMTP credentials in the SES console for that region
- Use the matching
email-smtp.REGION.amazonaws.comendpoint - Paste credentials without whitespace
Detailed fix by platform
Shell
- bash
# SES console > SMTP settings > Create SMTP credentials openssl s_client -starttls smtp -connect email-smtp.eu-west-1.amazonaws.com:587
How to diagnose
- Credentials — SMTP type?
- Region — Same?
- Endpoint — Correct?
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
- 454 454 4.7.0 Temporary authentication failure (SMTP AUTH backend unavailable)
- 530 5.7.0 Authentication Required SMTP: 530 5.7.0 Must issue a STARTTLS command first / 530 5.7.1 Authentication required
- 534 5.7.9 Application-specific password required SMTP: 534-5.7.9 Application-specific password required. Learn more at https://support.google.com/accounts/answer/185833
Most viewed in Email / SMTP
- 550 5.7.1 550 5.7.1 Relaying denied / Message rejected as spam / Unauthenticated email not accepted
- Laravel: Connection could not be established with host Laravel: Symfony\Component\Mailer\Exception\TransportException: Connection could not be established with host "smtp.mailtrap.io:2525": stream_socket_client(): Unable to connect
- self-signed certificate (SMTP TLS) Nodemailer: Error: self signed certificate in certificate chain (code: 'ESOCKET') / unable to verify the first certificate
Other ways to find it
Where this error sits
Origin: Network. Errors that are often confused with or caused by this one (click to open):
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
💬 What worked for others
No tips yet — did something else fix this for you?
Share what worked for you
Tips are checked by an editor before they appear. Links are removed.
Report a correction or suggest an improvement
Last updated 18 Nov 2026