Menu

DKIM Rotation Job: Unattended TXT Publication With Sending Domain Custody and Rollback
📰

DKIM Rotation Job: Unattended TXT Publication With Sending Domain Custody and Rollback

DEV Community: backend·BrennanCross2167·7 days ago
#ETn5EIBS
#devtobackend#devto#dev#publication#customer
Long article (1943 words) — no AI summary yet.
Reading 0:00
15s threshold

A B2B SaaS hostname cutover has an awkward constraint: the team scheduling the DKIM rotation may not control the customer's DNS zone. A service-side key change and a published TXT record are separate operations. Permission to initiate one does not establish permission to complete the other.

TL;DR: Schedule rotation as a job that rotates the DKIM key, publishes the required TXT record, verifies the sending domain, and alerts on any failure. Choose the publication path from zone ownership before enabling unattended execution. Keep the previous record briefly when the provider supports overlap, and preserve an explicit rollback path rather than treating a successful DNS write as a completed cutover.

For authentication and OTP mail, a false completion signal is a particularly poor operating bargain: the rotation can appear finished while the service and DNS halves disagree.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.