# Amazon ses api error

**URL:** <https://forum.mautic.org/t/amazon-ses-api-error/23049>\
**Category:** Product Support\
**Created:** [March 15, 2022, 9:18am UTC](https://forum.mautic.org/t/amazon-ses-api-error/23049 "2022-03-15T09:18:40Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![floeby](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/floeby/32/1444_2.png) [@floeby](https://forum.mautic.org/u/floeby)\
**Post date:** [March 15, 2022, 9:18am UTC](https://forum.mautic.org/t/amazon-ses-api-error/23049/1 "2022-03-15T09:18:41Z")

</div>

**Your software**  
My Mautic version is: 4.1.2  
My PHP version is: 7.4  
My Database type and version is: 10.4.24-MariaDB

**Your problem**  
My problem is:  
The Amazon SES via SMTP is working fine. However, the Amazon SES API is generating this error when I test the connection:

_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 error log:  
mautic.WARNING: PHP Warning - is\_readable(): open\_basedir restriction in effect. File(/.aws/config) is not within the allowed path(s): (my mautic install) /vendor/aws/aws-sdk-php/src/Retry/ConfigurationProvider.php - at line 158 {“profile”:“default”,“filename”:"/.aws/config"}

Steps I have tried to fix the problem:  
I have generated new credentials (didn’t work). Bit at a loss here, there is also not very much documentation on similar problems (at least haven’t found it). Any ideas would be welcome.

Kind regards,

Piet

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [March 15, 2022, 1:11pm UTC](https://forum.mautic.org/t/amazon-ses-api-error/23049/2 "2022-03-15T13:11:46Z")

</div>

Hi, just make sure all of your files are readable to the web user. This looks like a file permission error.

---

<div class="post-metadata">

**Author:** ![floeby](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/floeby/32/1444_2.png) [@floeby](https://forum.mautic.org/u/floeby)\
**Post date:** [March 16, 2022, 4:15pm UTC](https://forum.mautic.org/t/amazon-ses-api-error/23049/3 "2022-03-16T16:15:55Z")

</div>

I haven’t changed anything in file reading permissions, standard off the peg mautic install. What baffles me is that the Amazon SMTP works well, and this doesn’t…My search continues 😉

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [March 17, 2022, 3:15pm UTC](https://forum.mautic.org/t/amazon-ses-api-error/23049/4 "2022-03-17T15:15:02Z")

</div>

For me it seems, that your AWS SDK files are not installed or not accessable somehow. SMTP will use different files, that’swhy it works.  
Do you have anything in vendor/aws/aws-sdk-php/src ?

---

<div class="post-metadata">

**Author:** ![floeby](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/floeby/32/1444_2.png) [@floeby](https://forum.mautic.org/u/floeby)\
**Post date:** [March 18, 2022, 4:10pm UTC](https://forum.mautic.org/t/amazon-ses-api-error/23049/5 "2022-03-18T16:10:43Z")

</div>

The “vendor/aws/aws-sdk-php/src” folder is full of folders and files (it’s a fresh install and haven’t meddled with it). I am on shared hosting and the error:“open\_basedir restriction in effect. File(/.aws/config)” path is apparently not within my account … it should probably be something like home/mydomain/.aws/config (at least that’s what the support team of my hosting is telling me).

Any ideas where I should configure this?  
If I’m barking up the wrong tree please tell…this is not my normal cup of tea 😉

Kind regards,

Piet

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [March 21, 2022, 5:42am UTC](https://forum.mautic.org/t/amazon-ses-api-error/23049/6 "2022-03-21T05:42:12Z")

</div>

I can’t solve your problem, but I can give you an advise.  
Mautic will cause different issues if you are hosting on a shared server.  
Even if you initially get it to work, sooner or later you’ll face problems.  
Better move to a small VPS. A 5 dollar VPS will do for a small install.  
Joey
