Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: SignatureDoesNotMatch when calling the GetSendQuota operation #200

Open
looeee opened this issue Jan 27, 2021 · 1 comment
Open

Comments

@looeee
Copy link

looeee commented Jan 27, 2021

I'm getting the following error:

An error occurred (SignatureDoesNotMatch) when calling the GetSendQuota operation: 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.

I have created an IAM user using this doc then gave them full SES permissions by adding them to the AMAZONSESFullAccess group:

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": [
                "ses:*"
            ],
            "Resource": "*"
        }
    ]
}

In my Django config I have set:

AWS_ACCESS_KEY_ID = "**************"
AWS_SECRET_ACCESS_KEY = "*****************************************************"
AWS_SES_REGION_NAME = 'eu-west-1'
AWS_SES_REGION_ENDPOINT = 'email.eu-west-1.amazonaws.com'

EMAIL_BACKEND = 'django_ses.SESBackend'

My server time is set to GMT, the same as eu-west-1

Now when I try to send an email using

send_mail("testing", "text body", "me@mysite.com",
          ["to@mysite.com"], fail_silently=False)

I get the above error. Both me@mysite.com and to@mysite.com are replaced by my AWS verified email addresses. Any ideas what might be causing the error?

@ideallical
Copy link

This answer fixed it for me:
#85 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants