Home icon

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.



Go to article

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

Sep 3
2026
Amazon SES now supports S/MIME email signing
Dec 10
2024
Amazon Simple Email Services (SES) announces Deterministic Easy DKIM
Nov 11
2026
Amazon SES now supports higher limits for email identities, tenants, and configuration sets
Nov 2
2026
Beyond DKIM key rotation: understanding email replay attacks

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.