Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

shem's avatar
Level 1

Laravel AWS SES

Failed to authenticate on SMTP server with username "AK********************" using 2 possible authenticators. Authenticator LOGIN returned Expected response code 334 but got code "530", with message "530 Must issue a STARTTLS command first ↵". Authenticator PLAIN returned Expected response code 235 but got code "530", with message "530 Must issue a STARTTLS command first ↵".

MAIL_DRIVER=smtp
MAIL_HOST=email-smtp.us-east-2.amazonaws.com
MAIL_PORT=25
MAIL_USERNAME=*****************
MAIL_PASSWORD=*****************
MAIL_ENCRYPTION=null
MAIL_FROM_ADDRESS=null
MAIL_FROM_NAME="${APP_NAME}"
0 likes
5 replies
privilegue's avatar

That sounds like the domain is not properly configured in AWS SES. I am using SES in AWS with almost all Laravel APIs i have written thus far for transactional emails and only ever had that issue when the domain wasn't approved / whitelisted.

Follow instructions on AWS SES for that domain.

shem's avatar
Level 1

My domain is verified DKIM is pending verification

luismabenitez's avatar

That's the problem, you need to add the dkim entries in the dns of the sender domain.

1 like
luismabenitez's avatar

This is a correct configuration for amazon SES:

SES_REGION=eu-west-1  //Your region
MAIL_DRIVER=ses
MAIL_HOST=email-smtp.eu-west-1.amazonaws.com  //Your config host
[email protected]
MAIL_FROM_NAME=yourname
MAIL_PORT=587
MAIL_ENCRYPTION=tls
MAIL_USERNAME=********
MAIL_PASSWORD=********

PS- Don't forget to verify your domain!

2 likes
shem's avatar
Level 1

still getting the same error after making changes on .env and clearing the cache

Please or to participate in this conversation.