[{"data":1,"prerenderedAt":72},["ShallowReactive",2],{"content:en:blog\u002Fspf-dkim-dmarc":3},{"path":4,"locale":5,"section":6,"title":7,"description":8,"html":9,"headings":10,"faq":46,"updated":68,"order":69,"words":70,"meta":71},"blog\u002Fspf-dkim-dmarc","en","blog","SPF, DKIM and DMARC for developers, with real record examples","SPF, DKIM and DMARC explained for developers: real DNS records, how receivers evaluate them, alignment, the 2024 Google and Yahoo rules, and common fixes.","\u003Cp>SPF, DKIM and DMARC are DNS records that let receivers check whether a message really comes from the domain it claims. SPF (RFC 7208) lists the servers allowed to send for a domain, DKIM (RFC 6376) publishes the key that verifies a signature on each message, and DMARC (RFC 7489) requires one of the two to pass for the domain in the visible From header and tells receivers what to do when neither does. Since February 2024, Google and Yahoo require all three from bulk senders.\u003C\u002Fp>\n\u003Ch2 id=\"three-records-three-questions\">Three records, three questions\u003C\u002Fh2>\n\u003Ctable>\n\u003Cthead>\n\u003Ctr>\n\u003Cth>Record\u003C\u002Fth>\n\u003Cth>Standard\u003C\u002Fth>\n\u003Cth>Question it answers\u003C\u002Fth>\n\u003Cth>Where it lives\u003C\u002Fth>\n\u003Cth>Starts with\u003C\u002Fth>\n\u003C\u002Ftr>\n\u003C\u002Fthead>\n\u003Ctbody>\n\u003Ctr>\n\u003Ctd>SPF\u003C\u002Ftd>\n\u003Ctd>RFC 7208\u003C\u002Ftd>\n\u003Ctd>Which servers may send mail for this domain?\u003C\u002Ftd>\n\u003Ctd>TXT at the domain itself\u003C\u002Ftd>\n\u003Ctd>\u003Ccode>v=spf1\u003C\u002Fcode>\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>DKIM\u003C\u002Ftd>\n\u003Ctd>RFC 6376\u003C\u002Ftd>\n\u003Ctd>Was this message signed by the domain, and is it unchanged?\u003C\u002Ftd>\n\u003Ctd>TXT at \u003Ccode>selector._domainkey.domain\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>\u003Ccode>v=DKIM1\u003C\u002Fcode> (optional)\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>DMARC\u003C\u002Ftd>\n\u003Ctd>RFC 7489\u003C\u002Ftd>\n\u003Ctd>What should a receiver do when a message fails, and where do reports go?\u003C\u002Ftd>\n\u003Ctd>TXT at \u003Ccode>_dmarc.domain\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>\u003Ccode>v=DMARC1\u003C\u002Fcode>\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftbody>\n\u003C\u002Ftable>\n\u003Cp>The three cover each other's gaps. SPF checks a domain the reader never sees. DKIM proves a signature but says nothing about which domain should have signed. DMARC ties both to the \u003Ccode>From\u003C\u002Fcode> address and adds a policy.\u003C\u002Fp>\n\u003Ch2 id=\"a-complete-set-of-records-for-one-domain\">A complete set of records for one domain\u003C\u002Fh2>\n\u003Cp>Take a company that uses Google Workspace for its mailboxes, an app server at \u003Ccode>192.0.2.10\u003C\u002Fcode> for invoices, and a newsletter platform that sends from a subdomain. Its records look like this:\u003C\u002Fp>\n\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode class=\"language-text\">\u003Cspan class=\"line\">\u003Cspan>example.com.                     TXT    \"v=spf1 include:_spf.google.com ip4:192.0.2.10 -all\"\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan>google._domainkey.example.com.   TXT    \"v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA...\"\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan>_dmarc.example.com.              TXT    \"v=DMARC1; p=quarantine; sp=reject; rua=mailto:dmarc-reports@example.com\"\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan>news.example.com.                TXT    \"v=spf1 include:spf.sender.example -all\"\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan>s1._domainkey.news.example.com.  CNAME  s1.dkim.sender.example.\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>\u003Ccode>_spf.google.com\u003C\u002Fcode> is the include Google documents for Workspace, and \u003Ccode>google\u003C\u002Fcode> is Workspace's default DKIM selector. The newsletter platform, \u003Ccode>sender.example\u003C\u002Fcode>, is a stand-in: use the include and the CNAME its setup page gives you. The key is shortened.\u003C\u002Fp>\n\u003Cp>A domain that never sends mail needs records too, or anyone can send as it:\u003C\u002Fp>\n\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode class=\"language-text\">\u003Cspan class=\"line\">\u003Cspan>example.net.          MX     0 .\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan>example.net.          TXT    \"v=spf1 -all\"\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan>_dmarc.example.net.   TXT    \"v=DMARC1; p=reject\"\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>The null MX (RFC 7505) says the domain accepts no mail, \u003Ccode>-all\u003C\u002Fcode> says no server may send for it, and \u003Ccode>p=reject\u003C\u002Fcode> asks receivers to refuse anything that claims otherwise.\u003C\u002Fp>\n\u003Cp>To read any domain's records from a terminal:\u003C\u002Fp>\n\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode class=\"language-bash\">\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">dig\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> +short\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> TXT\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> example.com\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">dig\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> +short\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> TXT\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> _dmarc.example.com\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">dig\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> +short\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> TXT\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> google._domainkey.example.com\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Ch2 id=\"spf-in-detail\">SPF in detail\u003C\u002Fh2>\n\u003Cp>A receiver evaluates SPF for the domain of the envelope sender, the address in the SMTP \u003Ccode>MAIL FROM\u003C\u002Fcode> command, also called the Return-Path. Receivers may also check the \u003Ccode>HELO\u003C\u002Fcode> name. SPF does not look at the \u003Ccode>From\u003C\u002Fcode> header people see. It reads the record left to right and stops at the first term that matches the connecting IP address.\u003C\u002Fp>\n\u003Ctable>\n\u003Cthead>\n\u003Ctr>\n\u003Cth>Term\u003C\u002Fth>\n\u003Cth>Matches when\u003C\u002Fth>\n\u003Cth>DNS lookups\u003C\u002Fth>\n\u003C\u002Ftr>\n\u003C\u002Fthead>\n\u003Ctbody>\n\u003Ctr>\n\u003Ctd>\u003Ccode>ip4:192.0.2.0\u002F24\u003C\u002Fcode>, \u003Ccode>ip6:2001:db8::\u002F32\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>The sending address is in the range\u003C\u002Ftd>\n\u003Ctd>0\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Ccode>a\u003C\u002Fcode>, \u003Ccode>mx\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>The sending address is an address of the domain, or of one of its MX hosts\u003C\u002Ftd>\n\u003Ctd>1 each\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Ccode>include:_spf.google.com\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>The included domain's own SPF evaluation returns pass\u003C\u002Ftd>\n\u003Ctd>1, plus everything inside it\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Ccode>exists:\u003C\u002Fcode>, \u003Ccode>ptr\u003C\u002Fcode>, \u003Ccode>redirect=\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>Rarely needed; RFC 7208 says not to publish \u003Ccode>ptr\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>1 each\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Ccode>-all\u003C\u002Fcode> \u002F \u003Ccode>~all\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>Always: fail or softfail whatever is left\u003C\u002Ftd>\n\u003Ctd>0\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftbody>\n\u003C\u002Ftable>\n\u003Cp>The qualifier of the matching term gives the result: \u003Ccode>+\u003C\u002Fcode> (the default) gives \u003Ccode>pass\u003C\u002Fcode>, \u003Ccode>-\u003C\u002Fcode> gives \u003Ccode>fail\u003C\u002Fcode>, \u003Ccode>~\u003C\u002Fcode> gives \u003Ccode>softfail\u003C\u002Fcode> and \u003Ccode>?\u003C\u002Fcode> gives \u003Ccode>neutral\u003C\u002Fcode>. RFC 7208 section 2.6 defines three more results: \u003Ccode>none\u003C\u002Fcode> when there is no record, \u003Ccode>temperror\u003C\u002Fcode> for a DNS failure, and \u003Ccode>permerror\u003C\u002Fcode> for a broken record.\u003C\u002Fp>\n\u003Cp>Three rules break more records than any typo:\u003C\u002Fp>\n\u003Cul>\n\u003Cli>\u003Cstrong>One record per domain.\u003C\u002Fstrong> Two \u003Ccode>v=spf1\u003C\u002Fcode> records make every evaluation end in \u003Ccode>permerror\u003C\u002Fcode> (RFC 7208 section 4.5). Merge them.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>At most 10 DNS lookups\u003C\u002Fstrong> across the whole include tree, and at most 2 void lookups that return nothing (section 4.6.4). Past either limit, \u003Ccode>permerror\u003C\u002Fcode>.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>An include is not a paste.\u003C\u002Fstrong> It runs the other domain's evaluation and matches only if that evaluation passes. A \u003Ccode>-all\u003C\u002Fcode> inside an included record does not make yours fail.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch2 id=\"dkim-in-detail\">DKIM in detail\u003C\u002Fh2>\n\u003Cp>The sending server signs selected headers and the body with a private key, and adds a \u003Ccode>DKIM-Signature\u003C\u002Fcode> header:\u003C\u002Fp>\n\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode class=\"language-text\">\u003Cspan class=\"line\">\u003Cspan>DKIM-Signature: v=1; a=rsa-sha256; c=relaxed\u002Frelaxed; d=example.com; s=google;\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan>        h=from:to:subject:date:message-id; bh=...; b=...\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>\u003Ccode>d=\u003C\u002Fcode> is the signing domain and \u003Ccode>s=\u003C\u002Fcode> the selector. Together they give the location of the public key: \u003Ccode>google._domainkey.example.com\u003C\u002Fcode>. The receiver fetches it, recomputes the hashes, and checks the signature. \u003Ccode>bh=\u003C\u002Fcode> is the body hash, so a footer added in transit breaks it.\u003C\u002Fp>\n\u003Cp>What to get right:\u003C\u002Fp>\n\u003Cul>\n\u003Cli>\u003Cstrong>Key length.\u003C\u002Fstrong> RFC 8301 requires RSA keys of at least 1024 bits and recommends 2048, and forbids \u003Ccode>rsa-sha1\u003C\u002Fcode> for signing and verifying. RFC 8463 adds Ed25519 keys; use one only next to an RSA signature, since not every verifier supports it.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Selectors.\u003C\u002Fstrong> Each sending service signs with its own selector, and DNS cannot list them. Keep an inventory.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Rotation.\u003C\u002Fstrong> Publish a new key under a new selector, switch signing to it, wait until mail signed with the old key has been delivered, then revoke the old one with an empty \u003Ccode>p=\u003C\u002Fcode>.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Testing mode.\u003C\u002Fstrong> \u003Ccode>t=y\u003C\u002Fcode> in the key record asks verifiers not to treat your mail differently from unsigned mail. Remove it once signing works.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch2 id=\"dmarc-in-detail\">DMARC in detail\u003C\u002Fh2>\n\u003Cp>DMARC passes when SPF or DKIM passes for a domain aligned with the \u003Ccode>From\u003C\u002Fcode> header. Alignment is the key idea:\u003C\u002Fp>\n\u003Ctable>\n\u003Cthead>\n\u003Ctr>\n\u003Cth>\u003Ccode>From: news@example.com\u003C\u002Fcode>, domain that passed\u003C\u002Fth>\n\u003Cth>Relaxed (\u003Ccode>r\u003C\u002Fcode>, default)\u003C\u002Fth>\n\u003Cth>Strict (\u003Ccode>s\u003C\u002Fcode>)\u003C\u002Fth>\n\u003C\u002Ftr>\n\u003C\u002Fthead>\n\u003Ctbody>\n\u003Ctr>\n\u003Ctd>\u003Ccode>example.com\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>Aligned\u003C\u002Ftd>\n\u003Ctd>Aligned\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Ccode>news.example.com\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>Aligned: same organizational domain\u003C\u002Ftd>\n\u003Ctd>Not aligned\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Ccode>sender.example\u003C\u002Fcode>, the platform's own domain\u003C\u002Ftd>\n\u003Ctd>Not aligned\u003C\u002Ftd>\n\u003Ctd>Not aligned\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftbody>\n\u003C\u002Ftable>\n\u003Cp>The third row is the classic failure. A platform sends with its own Return-Path and signs with its own \u003Ccode>d=\u003C\u002Fcode>: SPF passes, DKIM passes, and DMARC still fails, because neither pass is for your domain. The fix is custom DKIM signing with your domain in the platform's settings.\u003C\u002Fp>\n\u003Cp>The tags that matter:\u003C\u002Fp>\n\u003Ctable>\n\u003Cthead>\n\u003Ctr>\n\u003Cth>Tag\u003C\u002Fth>\n\u003Cth>Meaning\u003C\u002Fth>\n\u003Cth>Default\u003C\u002Fth>\n\u003C\u002Ftr>\n\u003C\u002Fthead>\n\u003Ctbody>\n\u003Ctr>\n\u003Ctd>\u003Ccode>p=\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>Policy for failing mail: \u003Ccode>none\u003C\u002Fcode>, \u003Ccode>quarantine\u003C\u002Fcode> or \u003Ccode>reject\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>Required\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Ccode>sp=\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>Policy for subdomains\u003C\u002Ftd>\n\u003Ctd>Same as \u003Ccode>p\u003C\u002Fcode>\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Ccode>rua=\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>Where aggregate reports go, as \u003Ccode>mailto:\u003C\u002Fcode> URIs\u003C\u002Ftd>\n\u003Ctd>None\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Ccode>pct=\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>Share of failing mail the policy applies to\u003C\u002Ftd>\n\u003Ctd>100\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Ccode>adkim=\u003C\u002Fcode>, \u003Ccode>aspf=\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>Alignment mode for DKIM and SPF\u003C\u002Ftd>\n\u003Ctd>\u003Ccode>r\u003C\u002Fcode>\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftbody>\n\u003C\u002Ftable>\n\u003Cp>A policy is a request. RFC 7489 leaves the final decision to the receiver's local policy.\u003C\u002Fp>\n\u003Ch3 id=\"roll-out-without-losing-mail\">Roll out without losing mail\u003C\u002Fh3>\n\u003Col>\n\u003Cli>Publish \u003Ccode>p=none\u003C\u002Fcode> with a \u003Ccode>rua=\u003C\u002Fcode> address you read. Nothing changes for delivery; reports start arriving, one XML file per receiver, usually daily.\u003C\u002Fli>\n\u003Cli>List every source in the reports that sends as your domain. Decide which are yours.\u003C\u002Fli>\n\u003Cli>Make each legitimate source pass with alignment, preferably with DKIM signing under your domain.\u003C\u002Fli>\n\u003Cli>Set \u003Ccode>sp=reject\u003C\u002Fcode> early if your subdomains send nothing.\u003C\u002Fli>\n\u003Cli>Move to \u003Ccode>p=quarantine\u003C\u002Fcode>, then \u003Ccode>p=reject\u003C\u002Fcode> once the reports show no legitimate source failing.\u003C\u002Fli>\n\u003C\u002Fol>\n\u003Cp>A report address on another organizational domain only works if that domain agrees: receivers look for a TXT record such as \u003Ccode>example.com._report._dmarc.reports.example.net\u003C\u002Fcode> containing \u003Ccode>v=DMARC1\u003C\u002Fcode>.\u003C\u002Fp>\n\u003Ch2 id=\"forwarding-and-mailing-lists\">Forwarding and mailing lists\u003C\u002Fh2>\n\u003Cp>Forwarding breaks SPF: the forwarding server connects with its own IP address, which is not in your record. DKIM survives as long as the message is not changed. Mailing lists often change it, adding a subject tag or a footer, which breaks the body hash. ARC, the Authenticated Received Chain of RFC 8617, lets intermediaries record the results they saw before changing the message, and receivers may take that into account. On your side, the practical rule is to sign every message with DKIM for your own domain, so at least one aligned check has a chance to survive the trip.\u003C\u002Fp>\n\u003Ch2 id=\"what-google-and-yahoo-require-since-february-2024\">What Google and Yahoo require since February 2024\u003C\u002Fh2>\n\u003Cp>Google's email sender guidelines and Yahoo's sender requirements took effect in February 2024. Google's version:\u003C\u002Fp>\n\u003Ctable>\n\u003Cthead>\n\u003Ctr>\n\u003Cth>Requirement\u003C\u002Fth>\n\u003Cth>All senders to Gmail\u003C\u002Fth>\n\u003Cth>Bulk senders (more than 5,000 messages a day to personal Gmail accounts)\u003C\u002Fth>\n\u003C\u002Ftr>\n\u003C\u002Fthead>\n\u003Ctbody>\n\u003Ctr>\n\u003Ctd>SPF or DKIM\u003C\u002Ftd>\n\u003Ctd>Yes\u003C\u002Ftd>\n\u003Ctd>SPF and DKIM, both\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>DMARC record\u003C\u002Ftd>\n\u003Ctd>Not required\u003C\u002Ftd>\n\u003Ctd>Required, \u003Ccode>p=none\u003C\u002Fcode> at least\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>From domain aligned with SPF or DKIM domain\u003C\u002Ftd>\n\u003Ctd>Not required\u003C\u002Ftd>\n\u003Ctd>Required\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>Valid forward and reverse DNS for sending IPs\u003C\u002Ftd>\n\u003Ctd>Yes\u003C\u002Ftd>\n\u003Ctd>Yes\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>TLS for transmitting mail\u003C\u002Ftd>\n\u003Ctd>Yes\u003C\u002Ftd>\n\u003Ctd>Yes\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>Spam rate in Postmaster Tools\u003C\u002Ftd>\n\u003Ctd>Below 0.3%\u003C\u002Ftd>\n\u003Ctd>Below 0.3%\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>One-click unsubscribe (RFC 8058) on marketing mail\u003C\u002Ftd>\n\u003Ctd>Not required\u003C\u002Ftd>\n\u003Ctd>Required, honored within 2 days\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftbody>\n\u003C\u002Ftable>\n\u003Cp>Yahoo announced matching rules for bulk senders at the same time. Both providers publish their current versions, which you should read before a large send: the thresholds are theirs to change.\u003C\u002Fp>\n\u003Ch2 id=\"check-the-domain-of-any-address-with-the-api\">Check the domain of any address with the API\u003C\u002Fh2>\n\u003Cp>When you verify an email address, the result tells you whether its domain publishes SPF and DMARC. These fields are computed before the mailbox check, so \u003Ccode>fast\u003C\u002Fcode> mode returns them too:\u003C\u002Fp>\n\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode class=\"language-bash\">\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">curl\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> https:\u002F\u002Fapi.qelka.com\u002Fv1\u002Femail\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\"> \\\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">  -H\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> \"Authorization: Bearer \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">$API_KEY\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">\"\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\"> \\\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">  -H\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> \"Content-Type: application\u002Fjson\"\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\"> \\\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">  -d\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> '{\"email\": \"jane@example.com\", \"mode\": \"fast\"}'\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>The result carries \u003Ccode>&quot;domain&quot;: { &quot;name&quot;: &quot;example.com&quot;, &quot;spf&quot;: true, &quot;dmarc&quot;: true }\u003C\u002Fcode>. In JavaScript, for example to warn a customer who sends mail through you from their own domain:\u003C\u002Fp>\n\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode class=\"language-javascript\">\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">export\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\"> async\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\"> function\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\"> domainAuthentication\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">(\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#E36209;--shiki-dark:#FFAB70\">email\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">) {\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">  const\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\"> response\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\"> =\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\"> await\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\"> fetch\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">(\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">'https:\u002F\u002Fapi.qelka.com\u002Fv1\u002Femail'\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">, {\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">    method: \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">'POST'\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">,\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">    headers: {\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">      Authorization: \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">`Bearer ${\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">process\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">.\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">env\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">.\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">API_KEY\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">}`\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">,\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">      'Content-Type'\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">: \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">'application\u002Fjson'\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">,\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">    },\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">    body: \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">JSON\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">.\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">stringify\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">({ email, mode: \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">'fast'\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> }),\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">    signal: AbortSignal.\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">timeout\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">(\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">5000\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">),\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">  })\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">  if\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> (\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">!\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">response.ok) \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">return\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\"> null\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">  const\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> { \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">domain\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> } \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">=\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\"> await\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> response.\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">json\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">()\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">  const\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\"> missing\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\"> =\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> []\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">  if\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> (domain.spf \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">===\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\"> false\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">) missing.\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">push\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">(\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">'SPF'\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">)\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">  if\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> (domain.dmarc \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">===\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\"> false\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">) missing.\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">push\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">(\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">'DMARC'\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">)\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">  return\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> { domain: domain.name, missing }\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">}\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>\u003Ccode>domain.spf\u003C\u002Fcode> is \u003Ccode>true\u003C\u002Fcode> when the domain publishes an SPF record, \u003Ccode>domain.dmarc\u003C\u002Fcode> when the domain or its organizational domain publishes a DMARC record. Both are \u003Ccode>null\u003C\u002Fcode> when they were not checked, for example after a syntax failure. They are presence checks: a published record can still be broken, which the free \u003Ca href=\"\u002Ftools\u002Fspf-checker\">SPF checker\u003C\u002Fa> and \u003Ca href=\"\u002Ftools\u002Fdmarc-checker\">DMARC checker\u003C\u002Fa> show in detail. The API does not report DKIM, because a selector only appears in a signed message. Each call costs 1 credit.\u003C\u002Fp>\n\u003Ch2 id=\"what-to-do-with-what-you-find\">What to do with what you find\u003C\u002Fh2>\n\u003Ctable>\n\u003Cthead>\n\u003Ctr>\n\u003Cth>Finding\u003C\u002Fth>\n\u003Cth>Where\u003C\u002Fth>\n\u003Cth>What to do\u003C\u002Fth>\n\u003C\u002Ftr>\n\u003C\u002Fthead>\n\u003Ctbody>\n\u003Ctr>\n\u003Ctd>Two SPF records\u003C\u002Ftd>\n\u003Ctd>Your domain\u003C\u002Ftd>\n\u003Ctd>Merge them into one\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>SPF over 10 lookups\u003C\u002Ftd>\n\u003Ctd>Your domain\u003C\u002Ftd>\n\u003Ctd>Remove unused includes; use \u003Ccode>ip4\u003C\u002Fcode> and \u003Ccode>ip6\u003C\u002Fcode> where addresses are stable\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>SPF ends in \u003Ccode>+all\u003C\u002Fcode> or \u003Ccode>?all\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>Your domain\u003C\u002Ftd>\n\u003Ctd>End in \u003Ccode>-all\u003C\u002Fcode>, or \u003Ccode>~all\u003C\u002Fcode> while you finish the inventory of senders\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>DMARC with no \u003Ccode>rua=\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>Your domain\u003C\u002Ftd>\n\u003Ctd>Add a report address you read\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>DMARC stuck at \u003Ccode>p=none\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>Your domain\u003C\u002Ftd>\n\u003Ctd>Read the reports, fix failing senders, move to \u003Ccode>quarantine\u003C\u002Fcode> then \u003Ccode>reject\u003C\u002Fcode>\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>DKIM key of 1024 bits\u003C\u002Ftd>\n\u003Ctd>Your domain\u003C\u002Ftd>\n\u003Ctd>Publish a 2048-bit key under a new selector and switch to it\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>Platform mail fails DMARC\u003C\u002Ftd>\n\u003Ctd>Your domain\u003C\u002Ftd>\n\u003Ctd>Turn on custom DKIM signing with your domain in the platform\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Ccode>domain.spf: false\u003C\u002Fcode> on a signup\u003C\u002Ftd>\n\u003Ctd>An address you checked\u003C\u002Ftd>\n\u003Ctd>Nothing: the domain can still receive mail\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Ccode>domain.spf\u003C\u002Fcode> and \u003Ccode>domain.dmarc\u003C\u002Fcode> both \u003Ccode>false\u003C\u002Fcode> on a customer domain you send for\u003C\u002Ftd>\n\u003Ctd>An address you checked\u003C\u002Ftd>\n\u003Ctd>Tell the customer before their deliverability suffers\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftbody>\n\u003C\u002Ftable>\n\u003Cp>Do not reject a signup because its domain lacks SPF or DMARC. Those records protect a domain's outgoing mail; a domain without them receives mail perfectly well.\u003C\u002Fp>\n\u003Ch2 id=\"where-to-go-next\">Where to go next\u003C\u002Fh2>\n\u003Cp>The free \u003Ca href=\"\u002Ftools\u002Fdkim-checker\">DKIM checker\u003C\u002Fa> reads a key for a selector you give it, and the \u003Ca href=\"\u002Ftools\u002Fdns-lookup\">DNS lookup\u003C\u002Fa> shows any raw record. \u003Ca href=\"\u002Fdocs\u002Fguides\u002Fspf-dkim-dmarc\">SPF, DKIM and DMARC explained\u003C\u002Fa> covers the domain fields of an email result in more depth. When bounces are the problem rather than authentication, read \u003Ca href=\"\u002Fblog\u002Femail-bounce\">email bounces and list hygiene\u003C\u002Fa>, and \u003Ca href=\"\u002Fblog\u002Fhow-to-verify-an-email-address\">How to verify an email address\u003C\u002Fa> explains every other check in the same call.\u003C\u002Fp>\n",[11,15,18,21,24,27,31,34,37,40,43],{"id":12,"text":13,"depth":14},"three-records-three-questions","Three records, three questions",2,{"id":16,"text":17,"depth":14},"a-complete-set-of-records-for-one-domain","A complete set of records for one domain",{"id":19,"text":20,"depth":14},"spf-in-detail","SPF in detail",{"id":22,"text":23,"depth":14},"dkim-in-detail","DKIM in detail",{"id":25,"text":26,"depth":14},"dmarc-in-detail","DMARC in detail",{"id":28,"text":29,"depth":30},"roll-out-without-losing-mail","Roll out without losing mail",3,{"id":32,"text":33,"depth":14},"forwarding-and-mailing-lists","Forwarding and mailing lists",{"id":35,"text":36,"depth":14},"what-google-and-yahoo-require-since-february-2024","What Google and Yahoo require since February 2024",{"id":38,"text":39,"depth":14},"check-the-domain-of-any-address-with-the-api","Check the domain of any address with the API",{"id":41,"text":42,"depth":14},"what-to-do-with-what-you-find","What to do with what you find",{"id":44,"text":45,"depth":14},"where-to-go-next","Where to go next",[47,50,53,56,59,62,65],{"q":48,"a":49},"What is the difference between SPF, DKIM and DMARC?","SPF lists the servers allowed to send mail for a domain, and receivers check it against the envelope sender. DKIM signs each message with a private key, and receivers verify the signature with a public key published in DNS. DMARC requires SPF or DKIM to pass for a domain that matches the visible From address, and tells receivers what to do with mail that fails, and where to send reports.",{"q":51,"a":52},"Do I need SPF, DKIM and DMARC?","If you send email to people at large mailbox providers, yes. Since February 2024, Google's sender guidelines require bulk senders, those sending more than 5,000 messages a day to personal Gmail accounts, to set up SPF, DKIM and a DMARC record, and Yahoo announced matching requirements. Smaller senders need at least SPF or DKIM at Google, and all three make your mail easier to trust everywhere.",{"q":54,"a":55},"What is DMARC alignment?","Alignment means the domain that passed SPF or DKIM matches the domain in the From header people see. For SPF, the checked domain is the envelope sender, also called the Return-Path. For DKIM, it is the d= value of the signature. In relaxed mode, the default, the two must share an organizational domain; in strict mode they must be identical. DMARC passes when at least one aligned check passes.",{"q":57,"a":58},"Why does SPF fail when an email is forwarded?","SPF checks the IP address of the server that connects to the receiver. When a message is forwarded, the forwarding server connects, and its address is not in the original sender's SPF record, so SPF fails. DKIM usually survives forwarding because the signature travels with the message, unless the forwarder changes the content. That is why DKIM signing with your own domain is the sturdier way to pass DMARC.",{"q":60,"a":61},"What happens if my SPF record has more than 10 DNS lookups?","Receivers stop evaluating and return permerror, a permanent error, as RFC 7208 section 4.6.4 requires. In practice your SPF gives no protection until the record is fixed, and DMARC must rely on DKIM alone. Every include, a, mx, ptr, exists and redirect counts, including those inside included records. Remove senders you no longer use, and replace a and mx with ip4 or ip6 ranges, which cost nothing.",{"q":63,"a":64},"Which DMARC policy should I start with?","Start with p=none and a rua= address that collects aggregate reports. Mail is handled as before, and the reports show every source sending as your domain. Fix the legitimate sources that fail, then move to p=quarantine and finally to p=reject. A domain that sends no mail at all can publish p=reject at once, together with an SPF record of v=spf1 -all.",{"q":66,"a":67},"How do I find my DKIM selector?","Open a message you sent and read its DKIM-Signature header. The s= tag is the selector and d= the signing domain, so s=google and d=example.com put the key at google._domainkey.example.com. DNS cannot list the selectors of a domain, so this is the only reliable way. Each sending service uses its own selector. Check the key with the free \u003Ca href=\"\u002Ftools\u002Fdkim-checker\">DKIM checker\u003C\u002Fa>.","2026-11-23",7,2027,{},1795474028982]