Open dsp76 opened 1 year ago
The same applies in email settings where email / smtp password has with a / in it. Maybe you are sanitizing input? Not a big deal if you can change the password...
Password change is not easy, as it’s provided by AWS and you always need to delete the SMTP user to get new credentials ;)
Hello team!
This issue still persists. The thing is that the passwords are arbritrarily generated by Amazon SES, so no options to circumvent it from the Amazon side. Any workarounds / suggestions? Tried url-encoding the password with no luck.
This issue or PR has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you would like to keep it open please let us know by replying and confirming that this is still relevant to the latest version of Mautic and we will try to get to it as soon as we can. Thank you for your contributions.
This issue is not stale
This issue has been mentioned on Mautic Forums. There might be relevant details there:
https://forum.mautic.org/t/mail-dsn-dont-let-me-connect-to-my-email-server/31209/16
Removed the API label, as its not an issue with Mautic API, but more with the implementation of the email integration.
This issue has been mentioned on Mautic Forums. There might be relevant details there:
https://forum.mautic.org/t/error-while-using-emai-dsn-on-mautic/31870/3
Mautic Version
4.4.x series
PHP version
8.0
What browsers are you 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/accountresulted in a
403 Forbiddenresponse: {"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
Code of Conduct