Email security deep dive: Manual DKIM signing through Amazon SES
Contact Center Blog
This article provides a comprehensive guide to manual DKIM signing through Amazon SES, explaining how to generate keys, publish DNS records, and implement signing across different delivery transports.
- Manual DKIM gives you control over which headers to sign, unlike Easy DKIM which uses a fixed set
- Generate RSA key pairs (1024-bit minimum), extract public key in base64 format, and publish as DNS TXT record
- Never sign Date, Message-ID, Return-Path, or Bounces-To headers as SES rewrites them after signing
- Safe headers to sign include From, To, Subject, MIME-Version, and Content-Type
- SES always adds amazonses.com signature; Easy DKIM adds optional third signature for customer domain
- Manual DKIM-Signature is byte-for-byte preserved by SES and reaches recipient unchanged
- Over-signing (listing headers twice) provides DKIM replay attack protection when Easy DKIM is disabled
- Includes Python code examples for SendRawEmail API, SES v2 SendEmail API, and SMTP delivery
Manual DKIM signing enables fine-grained email authentication control and replay attack mitigation through over-signing, with identical results across all SES delivery methods.
The AWS News Feed is currently looking for gold sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.
Related articles
2026
2024
2026
2026
The AWS News Feed is currently looking for silver sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.