Your IPv4 address:
Operating system:

SPF, DKIM and DMARC: how email authentication works

Your messages land in spam with a note about failed authentication, or you are setting up mail for a domain and are told to publish three DNS records. SPF says which servers may send for a domain, DKIM signs the message with the domain’s key, and DMARC ties both to the address the reader sees and publishes a policy. Passing one of them does not prove that a message is trustworthy.

What each of the three checks

SPF asks whether the sending server is authorised by the policy of the envelope-from domain, the return address given during the SMTP conversation and not the From line you read. DKIM verifies a cryptographic signature over selected message content, using a public key the signing domain publishes in DNS. DMARC connects these results to the visible From domain through alignment rules: a pass counts only when it comes from a domain that corresponds to it. DMARC also publishes how failures should be handled and where to send reports.

Reading the verdict in a real message

Open the message headers and find Authentication-Results. Read SPF, DKIM and DMARC separately, and for DMARC check alignment with the visible From domain. The policies and keys are all published in DNS, and a receiver that gets no DNS answer in time records a temporary error (temperror) and not a pass. If that appears in the header, the 2ip DNS response check measures how quickly a DNS server replies.

Why a pass does not mean “safe email”

A pass authenticates defined domain relationships: the message really was sent with that domain’s authorisation. It says nothing about the content or the sender’s intent. Anyone can register a lookalike domain and publish flawless records for it, and such mail can pass all three checks. Read the domain itself. The mechanisms are specified in RFC 7208 (SPF), RFC 6376 (DKIM) and RFC 7489 (DMARC).