tezvyn:

Explain SPF, DKIM, and DMARC roles and implementation tasks

AI-drafted, machine-checkedSource: dmarc.orgadvanced
WHAT IT TESTS

Your grasp of layered email auth and operational deployment.

ANSWER OUTLINE

SPF authorizes IPs, DKIM signs content, DMARC aligns both to the From domain and enforces policy plus reporting.

WHAT THIS TESTS: This question tests whether you view email authentication as an integrated operational system rather than a checklist of acronyms. A strong senior candidate understands DNS as the control plane, recognizes the distinct failure modes of path-based versus cryptographic validation, and can describe the practical engineering work required to deploy and maintain these records without breaking legitimate mail flows.

A GOOD ANSWER COVERS: A good answer hits four things in order. First, SPF is a path-based authorization mechanism: the receiving mail server looks up the domain's SPF TXT record in DNS and verifies that the connecting IP address is listed as an authorized sender. Second, DKIM is a content-based integrity mechanism: the outbound infrastructure cryptographically signs select headers and the body using a private key, and the receiver validates that signature against the corresponding public key published in a DNS TXT record under a selector subdomain. Third, DMARC provides domain alignment and policy enforcement: it links the author domain shown in the From header to the results of SPF and DKIM, requiring that at least one of those checks passes with an aligned domain, and it publishes a policy telling receivers whether to deliver, quarantine, or reject messages that fail, while also specifying report destinations. Fourth, implementation tasks for a new domain include generating a DKIM key pair securely, publishing SPF, DKIM, and DMARC TXT records, configuring the mail transfer agent or email service provider to sign outbound messages, establishing mailboxes to receive RUA aggregate and RUF failure reports, and rolling out the policy gradually by starting with p=none before moving to quarantine and then reject.

COMMON WRONG ANSWERS: Common wrong answers include claiming that DMARC replaces SPF and DKIM instead of building on them, confusing the envelope sender used by SPF with the visible From header used by DMARC alignment, omitting the need for key rotation and secure private key storage, and deploying a strict p=reject policy immediately without a monitoring phase, which risks blocking legitimate email.

LIKELY FOLLOW-UPS: Interviewers often follow up by asking how you handle forwarding and mailing lists that break DKIM signatures or cause SPF failures. They may ask about BIMI and its dependency on DMARC enforcement plus a validated mark certificate. They might also probe how you automate ingestion of DMARC XML reports or manage third-party senders under your domain.

ONE CONCRETE EXAMPLE: When standing up a new domain for a SaaS product, you publish a DKIM TXT record at selector1._domainkey.example.com containing the public key, an SPF record at the apex such as v=spf1 include:send.example.com ~all, and a DMARC record at _dmarc.example.com with v=DMARC1; p=none; rua=mailto:reports@example.com. You configure your email provider to sign with the private key, monitor aggregate reports for misaligned sources for two to four weeks, then update the DMARC policy to p=quarantine and eventually p=reject once you are confident no legitimate traffic is failing alignment.

Read the original → dmarc.org

Get five bites like this every day.

Tezvyn delivers a daily feed of 60-second tech bites with quizzes to lock in what you learn.