As the lead for example.com's mail, how do you decide which outside senders get a DKIM selector under the domain, and on what terms?
answer
- must it sign as us at all
- subdomain before the main domain
- self-published or aliased, per sender
- signer-generated keys, minimum length
- an owner and an end date
basics
~20 sGive a selector only to senders whose mail must sign as the domain, prefer a dedicated subdomain as d=, choose a self-published or CNAME-delegated record per sender, require signer-generated keys of 2048-bit RSA or Ed25519, and track each selector's owner and end date.
solid answer
~50 sFirst ask whether a sender must sign as you at all: mail that carries your brand and has to pass DMARC does, while a system that can sign with its own domain need not. For those that must, prefer a dedicated subdomain such as `news.example.com` as `d=`; RFC 5863 suggests a designated subdomain for outsourced signing, and doing so keeps each partner's mail and reputation apart. Then pick the record model per sender: self-published when you want to set `t=s`, see the key length and revoke on your own; a CNAME-delegated selector when the sender's own key changes matter more than your veto. Put the terms in the contract: the signer generates the key pair, RSA of at least 2048 bits (RFC 8301's SHOULD) or Ed25519, notice of changes. Track every selector with a sender, an owner and an end date, and remove it when the relationship ends.
go deeper
Recall that each outside sender signing as the domain needs a key record at its own selector, and that the domain owner decides whether to publish one.
Explain the difference between a self-published key record, a CNAME-delegated selector and a delegated subzone in terms of who writes the key.
Show how you would audit existing outside senders: register each selector, read delegated targets, and reconcile against header.s and aggregate reports.
Argue the tradeoff between control and agility per sender, defend a subdomain-first rule, and make key terms and removal at exit part of the contract.
## The decision a lead owns Every **DKIM selector** published under a domain is a standing grant: whoever holds the matching private key can sign mail that verifies as that domain (RFC 6376). A growing organisation accumulates outside senders, such as a newsletter service, a ticketing platform, a billing system and a recruiting tool, and each one asks for a record. Nothing in the RFCs says which of them should get one; that is a policy the domain owner sets and enforces. It has no single right answer, because it trades deliverability and brand consistency against control and exposure. ## Question 1: should this sender sign as us at all? - **Yes, when the mail carries the brand and must pass DMARC.** DMARC needs a DKIM or SPF pass for a domain aligned with the From address; for many outside senders a DKIM signature with your domain as `d=` is the practical way to get it. How alignment works is DMARC's subject. - **Not necessarily, when the sender can sign as itself.** RFC 5863 section 7.5 describes services signing all client mail with their own `d=`; that needs no record from you, but the mail will not align with a From address in your domain. - **No, when nobody owns the relationship.** A sender without a named internal owner should not get a key record, because nobody will remove it later. ## Question 2: which domain, and which record model? Prefer a **dedicated subdomain** as `d=`. RFC 5863 section 7.4 says keys for an outsourced function are published preferably under a designated subdomain; doing so keeps that function's signatures, and its reputation, apart from the organizational domain's own mail. | Model | You control | You give up | Fits when | |---|---|---|---| | **Self-published key record** | tags such as `t=s`, the key length you accept, unilateral revocation | the sender's freedom to change keys alone | few senders, strict review, low change rate | | **CNAME-delegated selector** | only the alias: keep it or delete it | `p=`, key length, algorithm, flags, timing | the sender changes keys often and you accept its key policy | | **Delegated subzone** | the delegation itself | every record under that subdomain | a subdomain used by that sender alone | RFC 5863 section 3.4 frames this as least privilege: keep full control of the key records where you can, delegate a subzone where record-level restrictions are impractical, and never give a signer unrestricted access to your DNS. ## Question 3: the terms 1. **Key generation.** The signer generates the key pair and sends the public half (RFC 5863 section 3.4); private keys are never sent out from your side. 2. **Key strength.** RSA keys of at least 2048 bits, which RFC 8301 (January 2018) recommends over its 1024-bit floor, or Ed25519 under RFC 8463; no `rsa-sha1`, which RFC 8301 removed. 3. **Naming.** Selectors follow the house convention, naming the sender and key generation, and are never reused for a new key. 4. **Notice.** For delegated selectors, the sender tells you about key changes; for self-published records, it requests them. 5. **Exit.** The contract's end includes removing the alias or retiring the record; the order of that retirement belongs to key rotation. ## Running it: inventory and review - Keep a **selector register**: selector, `d=` domain, sender, internal owner, model, key type and length, contract end. - **Reconcile it** against receiver evidence: `header.s` in `Authentication-Results` and the selector field that RFC 9990 (May 2026) makes required in DMARC aggregate reports. A selector seen in reports but missing from the register is an unaccounted signer. - **Read delegated targets** periodically for short keys or leftover `t=y` flags. - **Settle who changes DNS.** RFC 5863 notes that DNS is often run by different staff from mail, and that DKIM records change over time; the policy names who approves and who publishes. ## Tradeoffs no rule settles - **Control against agility.** Self-published records give a veto but turn each key change into a ticket; delegation removes the friction and the veto together. - **Subdomain against brand.** A subdomain contains the partner's reputation, but some teams want everything to read as the main domain. - **Coverage against exposure.** Every selector added for deliverability is one more key that, in the wrong hands, signs as you. RFC 9989 section 11.8 warns that control of DKIM selector records for a subdomain can be enough for a DMARC pass for the organizational domain under relaxed alignment. How often keys are replaced, and what happens when one leaks, belong to the key-rotation policy that sits beside this one.
- When is delegating a whole subzone better than CNAME-delegated DKIM selectors?When the subdomain is used only by that sender and record-level control is impractical; RFC 5863 section 3.4 suggests subzone delegation in exactly that case. It hands over every record under the subdomain, not only the key records, so reserve it for a name nothing else of yours depends on, and keep the delegation itself in the register.
- How do you keep a DKIM sender policy from decaying after the first rollout?Tie each selector to an owner and an end date, and reconcile the register against evidence: `header.s` in `Authentication-Results` and the selector RFC 9990 aggregate reports now require. Unknown selectors are investigated, dead ones retired, and contract exits trigger removal. Key-change cadence lives in the rotation policy, but this review is what notices a selector nobody owns.
- Every vendor that sends anything for us should get a selector on the main domain.
- CNAME delegation is always safer, because we never hold a private key.
- Once a selector is delegated, its key length is purely the vendor's business.
- Unused selectors are harmless to leave published after a vendor leaves.
- The vendor should send us its private key so we stay in control of signing.