I’m struggling to get SMTP to work via AWS SES. I have tested and know my credentials are good.
I get this error: Failed to authenticate on SMTP server with username “AKIATEZRKFPFQNO2GJ6P” using the following authenticators: “LOGIN”, “PLAIN”. Authenticator “LOGIN” returned “Expected response code “235” but got code “535”, with message “535 Authentication Credentials Invalid”.”. Authenticator “PLAIN” returned “Expected response code “235” but got code “535”, with message “535 Authentication Credentials Invalid”.”.
This is my DSN: Using currently saved DSN: smtp://AKIATEZRKOPFQNO2GJ6P:SECRET@email-smtp.us-east-1.amazonaws.com:587?encryption=tls&auth_mode=login
“Failed to authenticate on SMTP server with” or a 535 SMTP code means exactly what it’s saying: You’re using wrong username and password.
This could be that you’re authenticating using bad credentials, wrong end-point or protocol.
In any cases, that’s not a “Mautic” problem. But a configuration one since the error is thrown by the remote server (and reported by the web app**).
I would suggest to reach out at your current service provider to get further assistance.
**Mautic is only a glorified PHP web app. That means that if you don’t find errors in your web app logs, the issue is most likely at the other end. Otherwise you would find a critical in it.
I’m very sorry that you’ve found the answer unhelpful.
The 535 error is all you need to know in order to understand and resolve your problem.
This error code isn’t from your server, but from the remote server.
The remote server is kindly informing your server that it didn’t received the expected username:password combination .
And usually remote servers don’t care about the end-user confidence. 535 is a bad authentication. end of story (sorry about it).
And since it’s a remote answer and not a local generated error, it’s totally expected to hardly find any coherent info about it (in regard to your local setup).
So expect everyone to answer you as I and rcarabelli did: check your password or contact your smtp service provider
In rcarabelli reply, the suggestion was to change your password. Which is an excellent “check your password” suggestion.
Check your mailer_dsn value in your config file (the password is saved in plain text in the config file, located in public_html/config/local.php).
And you silent killer is ‘
You can’t escape a ‘ when using ‘ ‘ to delimit string literals.
Just updated my password and there are no ‘ and no / in my password. Still the same issue.
I’d agree with marcus42 except my user/password works fine to the same SMTP host via other sources from the same server. The only difference is Mautic. You can pedantically tell me I’m a moron and can’t copy and paste two values correctly.
Anyway…. I think I’m giving up on Mautic. I’ve been a user since 3.x and I’m worn out on things not working. I’m capable of a copy and paste.