[Answered ]-Django reset password email signed using DomainKey with Amazon SES

2👍

The Private key not found error is thrown from parse_pem_private_key. This suggests that your setting doesn’t include the PEM headers. Double check that it looks something like:

DKIM_PRIVATE_KEY = '''
-----BEGIN RSA PRIVATE KEY-----
xxxxxxxxxxx
-----END RSA PRIVATE KEY-----
'''

There’s another option you might also want to consider. Last year AWS added support for adding the DKIM signature on their side: http://docs.aws.amazon.com/ses/latest/DeveloperGuide/easy-dkim.html. You might find this easier to configure and it has the added advantage of keeping the private key away from your source code.

Leave a comment