The domain generates a key pair, signs with the private key, and publishes the public key at
selector._domainkey.domain; the receiver verifies the signature.
The holder generates a key pair and publishes the public key in a TXT record under selector._domainkey.example.com. Each message leaves with a DKIM-Signature header containing the selector, algorithm, and signature [1]. The receiver retrieves the public key, recomputes the hash, and compares. If they match, the message is authentic and unaltered.