# Configuring AWS SES in Mautic 5.1

**URL:** https://forum.mautic.org/t/configuring-aws-ses-in-mautic-5-1/32795
**Category:** Product Support
**Created:** [July 17, 2024, 12:22am UTC](https://forum.mautic.org/t/configuring-aws-ses-in-mautic-5-1/32795 "2024-07-17T00:22:34Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![itnavigate](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/itnavigate/32/12338_2.png) [@itnavigate](https://forum.mautic.org/u/itnavigate)
#### Post date: [July 17, 2024, 12:22am UTC](https://forum.mautic.org/t/configuring-aws-ses-in-mautic-5-1/32795/1 "2024-07-17T00:22:34Z")

</div>

**Your software**  
My Mautic version is: 5.1  
My PHP version is: 8.2.20  
My Database type and version is: AWS RDS MariaDB 10.6.18

**Your problem**  
My problem is:  
When I try to configure AWS SES in Email Settings, there doesn’t appear top be anywhere to specify the authentication, nor encryption. AWS SES requires LOGIN and TLS respectively.

These errors are showing in the log:

`Failed to authenticate on SMTP server with username "ses-smtp-user.20240711-105858" 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".".`

Steps I have tried to fix the problem:  
I have used Google to search for a solution, but the only solution I can find is this plugin on git:  
[https://github.com/pabloveintimilla/mautic-amazon-ses](https://mautic-amazon-ses) and it appears that I need to have installed Mautic with composer, rather than from the zip file.  
I am waiting for a response to the issue I have raised around this topic on GitHub.

---

<div class="post-metadata">

### Author: ![gbonato](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/gbonato/32/9432_2.png) [@gbonato](https://forum.mautic.org/u/gbonato)
#### Post date: [July 20, 2024, 4:37pm UTC](https://forum.mautic.org/t/configuring-aws-ses-in-mautic-5-1/32795/2 "2024-07-20T16:37:03Z")

</div>

> [@itnavigate](#):
>
> When I try to configure AWS SES in Email Settings, there doesn’t appear top be anywhere to specify the authentication, nor encryption. AWS SES requires LOGIN and TLS respectively.

I guess I’m having the same problem. Trying to find a complete step by step guide to use Amazon SES in Mautic 5 without much sucess.

---

<div class="post-metadata">

### Author: ![itnavigate](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/itnavigate/32/12338_2.png) [@itnavigate](https://forum.mautic.org/u/itnavigate)
#### Post date: [July 21, 2024, 4:46am UTC](https://forum.mautic.org/t/configuring-aws-ses-in-mautic-5-1/32795/3 "2024-07-21T04:46:42Z")

</div>

Ahh… I see that you are following that thread. 😊

---

<div class="post-metadata">

### Author: ![pxljay](https://avatars.discourse-cdn.com/v4/letter/p/4bbf92/32.png) [@pxljay](https://forum.mautic.org/u/pxljay)
#### Post date: [July 22, 2024, 10:21pm UTC](https://forum.mautic.org/t/configuring-aws-ses-in-mautic-5-1/32795/4 "2024-07-22T22:21:34Z")

</div>

The credentials you are using are wrong. “ses-smtp-user.20240711-105858” is not the username you need to use.

In SES → SMTP settings → Either Manage or Create SMTP Credentials. That should bring you to the user settings. There click on your username (“ses-smtp-user.20240711-105858”) and there security credentials. Then create an Access Key. That’s the credentials you need to use for SES in Mautic.

---

<div class="post-metadata">

### Author: ![dirk\_s](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dirk_s/32/748_2.png) [@dirk\_s](https://forum.mautic.org/u/dirk_s)
#### Post date: [August 12, 2024, 9:07am UTC](https://forum.mautic.org/t/configuring-aws-ses-in-mautic-5-1/32795/5 "2024-08-12T09:07:13Z")

</div>

Also here could still be this nasty bug about certain passwords not working:

> <https://github.com/mautic/mautic/issues/12256>
>
> \### Mautic Version
> 
> 4.4.x series
> 
> \### PHP version
> 
> 8.0
> 
> \### What browsers are yo…u seeing the problem on?
> 
> Not relevant
> 
> \### What happened?
> 
> Pretty simple, but hard to find: if Amazon AWS SES defines a secret / password that contains a "/" it will lead to an authorization error with the plattform. The error message:
> 
> \`Error executing "GetAccount" on "https://email.eu-central-1.amazonaws.com/v2/email/account"; AWS HTTP error: Client error: \`GET https://email.eu-central-1.amazonaws.com/v2/email/account\` resulted in a \`403 Forbidden\` response: {"message":"The request signature we calculated does not match the signature you provided. Check your AWS Secret Access (truncated...) InvalidSignatureException (client): The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details. - {"message":"The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details."}\`
> 
> The problem: AWS assigns the password randomly, often it contains a "/". You can only delete the just created key and create a new one - hoping this time its without the "special" character.
> 
> \### How can we reproduce this issue?
> 
> Step 1: Connect with Amazon SES API with a password, that contains a "/"
> Step 2: Save and test the connection - it will throw this error.
> Step 3: Back to AWS and get another key assigned. It it has no "/" it will work.
> 
> \### Relevant log output
> 
> \`\`\`shell
> \`Error executing "GetAccount" on "https://email.eu-central-1.amazonaws.com/v2/email/account"; AWS HTTP error: Client error: \`GET https://email.eu-central-1.amazonaws.com/v2/email/account\` resulted in a \`403 Forbidden\` response: {"message":"The request signature we calculated does not match the signature you provided. Check your AWS Secret Access (truncated...) InvalidSignatureException (client): The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details. - {"message":"The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details."}\`
> \`\`\`
> 
> 
> \### Code of Conduct
> 
> \- \[X\] I confirm that I have read and agree to follow this project's Code of Conduct
> 
> \<bountysource-plugin\>
> 
> \---
> Want to back this issue? \*\*\[Post a bounty on it!\](https://app.bountysource.com/issues/121828581-connection-with-amazon-ses-api-won-t-work-error403-when-the-defined-password-contains-a?utm\_campaign=plugin&utm\_content=tracker%2F5355074&utm\_medium=issues&utm\_source=github)\*\* We accept bounties via \[Bountysource\](https://app.bountysource.com/?utm\_campaign=plugin&utm\_content=tracker%2F5355074&utm\_medium=issues&utm\_source=github).
> \</bountysource-plugin\>
