问题
I've been using SES to send emails via the normal SendEmail API command, and the DKIM signature has been working fine.
Now I want to send an attachment, so I started using SendRawEmail API and the DKIM signture is not being inserted into the mail headers. This causes GMail to display the ugly via amazonses.com warning:
I verified this by looking at the mail source with gmail's Show Original.
I found this same question on Amazon's forum. But it doesn't actually answer the question. It does say that once DKIM is enabled, it should work for both SendEmail and SendRawEmail.
So why isn't AmazonSES inserting the DKIM header for the raw email API?
(I'm actually using the ruby SDK, so it's send_email and send_raw_email, but it shouldn't matter.)
回答1:
For me, I had DKIM setup and enabled in the AWS SES console for my Domains. This domain-level DKIM had worked fine for SendEmail.
However, I had to enable DKIM for each sending email address under Email Addresses to enable DKIM on SendRawEmail.
Hope this helps someone else!
来源:https://stackoverflow.com/questions/28883840/amazonses-dkim-signature-not-inserted-with-sendrawemail