Independent developers managing custom domains often face the risk of email spoofing. This guide explains how to configure DMARC records to monitor these attempts and define actions for failed authentications, ensuring your domain's reputation remains intact without complex infrastructure changes.

Understanding the Risk of Domain Email Spoofing

This is a hypothetical scenario, offered only to show how one independent developer might frame the problem before touching any DNS records. Suppose the developer publishes a small documentation site and a project journal under a custom domain, and the only mailboxes in use are a personal address and a forwarding alias. The immediate concern is not inbox attacks against those mailboxes but forged mail claiming to come from the domain.

The developer writes a short internal note titled "Spooking the Sender: What a Forged Message Would Look Like," with a second candidate heading, "Mail Claims We Make and Mail Claims We Don't." The note's purpose is to define the boundary between legitimate and forged sending before choosing any policy, because a monitoring policy only reports what the receiver observes.

The note carries a fictional table headed "Sending source, envelope domain, header From domain, expected?" with two illustrative records written by the author: "Project journal notification, mail.example-journal.test, mail.example-journal.test, yes" and "Password-reset message, example-journal.test, account.example-journal.test, unknown — no such service exists." The second record is deliberately marked unknown rather than failed; it shows the note's job is to surface gaps in the developer's own inventory, not to judge the sender.

A second column set lists the modes the developer expects to encounter: none, quarantine, and reject, alongside a "forwarded by volunteer" row marked as needing a decision later. The author notes that forwarding is the case most likely to make a strict policy look wrong, which is why it stays unresolved at this stage.

One example trade-off makes the note's purpose concrete: the developer chooses to inventory the documentation subdomain and the apex domain separately rather than treat them as one unit, on the reasoning that a forged newsletter is far more plausible than a forged login page for a site that has no login. The separate rows are simply how this author organizes the question.

These entries are the author's own invented illustrations, used to explain the problem to themselves; they do not describe past activity, real messages, or observed traffic.

Decoding Core DMARC Record Parameters

The TXT record value begins with the version tag v, whose value must be DMARC1, and it must appear as the first tag. The policy tag p tells receivers what to do with forged mail: none lets all mail claiming the domain pass even when DMARC validation fails; quarantine isolates a portion, usually to spam; reject refuses all mail that fails authentication.1

For quarantine, the pct tag (default 100) sets the percentage of failing mail that is isolated. The rua tag receives aggregate reports from receiving providers, and ruf receives detailed failure reports. The sp tag applies a policy like p to subdomains. The ri tag, an optional 32-bit unsigned integer defaulting to 86400, caps the interval between aggregate reports.1

Alignment tags appear as ADKIM and ASPF: blank or r is relaxed, s is strict, with relaxed permitting subdomains. The optional fo tag is a colon-separated list, ignored without ruf; the source suggests pairing it with p=none for observation and notes that setting it to 1 causes reject not to take effect.1

Before you open a DNS editor, try grouping your own sending and receiving addresses into a short working table, then write one candidate policy sentence beneath each group. For example, a documentation site might yield a row labeled “apex domain” with the addresses “personal inbox” and “forwarding alias,” while a row labeled “docs subdomain” lists only “no mail sent.” Beside the first row you might write the candidate sentence “start at none, watch, then consider quarantine,” and beside the second “no mail expected, note this before choosing a stricter mode.” You can keep those sentences in your own notes and revise them as your understanding of the records grows.

For each candidate sentence, you might add two small fields of your own: what a monitoring report should let you confirm, and what would tell you to hold off on tightening the policy. A filled example could read “confirm: only my personal address and the forwarding path send mail; hold off if: a legitimate sender appears that I had forgotten.” These fields are your private checks, not an official checklist, and you can change the wording whenever a group no longer reflects how you use the domain.

Once those rows feel stable, consider choosing one row to carry forward into the record you eventually publish and leaving the others marked as “needs review,” so the decision stays visible to you rather than buried in a past edit.

Choosing the Right Policy Action: None, Quarantine, or Reject

The policy tag controls what a receiver does when a message claiming the domain fails DMARC validation. With none, all mail from the domain is passed even if it fails DMARC verification. With quarantine, a portion of failing mail is isolated, usually by placing it in the spam folder; the pct parameter, defaulting to 100, sets the percentage of unverified mail that gets isolated. With reject, all mail that fails authentication is strictly refused. The same none, quarantine, and reject values apply to the subdomain policy tag, which takes effect for subdomains when the main domain record includes it.1

You can take your own inventory note and turn its mode column into three candidate policy sentences, one per action, so the choice becomes something you compare rather than something you guess. For the apex domain, a first candidate might read: “Policy none; keep collecting reports until the forwarded alias shows how much legitimate mail passes.” A second version for the same domain might read: “Policy quarantine; hold suspicious mail while the reporting address still receives aggregate summaries.” A third might read: “Policy reject; only after the alias has stopped receiving anything I cannot account for.”

Consider pairing each sentence with two fields you fill yourself: “What I want the report to confirm” and “What would make me wait.” A filled example for the documentation subdomain could be: confirm that no message claiming this subdomain arrives from a source I did not list; wait if the alias starts forwarding a newsletter that carries the domain in its header From. You might then keep the none sentence as the one you plan to publish first and mark the quarantine and reject sentences as later candidates, each with its own condition for revisiting.

That pairing is a choice you can make on your own desk, and it works whether the entry is current or archived. For an archived note, the same two fields could record what the reports once showed and what you would need before changing a historical policy, while the current entry records what you intend to watch now.

Configuring Reporting Addresses for Monitoring

The DMARC record value includes two reporting-address tags. The rua tag receives aggregate reports from receiving providers, and the ruf tag receives detailed information about rejected messages. Both are written as mailto addresses, as in the example record value shown by Alibaba Cloud.1

The same page notes that the default address in its sample record is a collection mailbox for the mail-push service; a developer who wants to read the specific reports needs to enter a working organizational mailbox address, which may be a subdomain address.1

Optional tags bear on monitoring too: ri sets the maximum interval between aggregate reports in seconds, defaulting to 86400, and fo is a colon-separated failure-report option list that is ignored when ruf is absent.1

You can turn the working inventory into a small set of monitoring-address choices before touching any published record. Start from your draft policy sentences and, beside each one, write two plain fields: “report to” and “what I want the report to confirm.” A filled example for the documentation subdomain might read: report to a mailbox you check weekly; confirmation that forged mail claiming the subdomain either fails the published policy or appears in the aggregate summary rather than reaching an inbox. For the forwarded alias, the same fields could read: report to the same mailbox; confirmation that legitimate forwarded mail is not silently discarded once the policy becomes stricter.

These entries are your own invented illustrations, not observations of real traffic. You might keep one row per sending source, since the documentation subdomain and the apex domain may carry different mail needs. For each row, you can choose between a single catch-all reporting mailbox and a separate address per subdomain; the former is easier to review in one sitting, while the latter makes attribution clearer when two sources produce similar reports.

The same two fields work for a current entry and an archived one. For an archived announcement page, “report to” might remain the monitoring mailbox and “what I want to confirm” becomes whether forged mail claiming the retired hostname still appears in summaries after the page is no longer promoted. That distinction is a choice you can record beside each row, and it keeps draft policies and retired ones comparable without pretending either has been tested.

Prerequisites: SPF and DKIM Alignment Requirements

Before adding a DMARC record, the source requires that an SPF record already be set up containing “v=spf1 include:spf1.dm.aliyun.com -all”, or that DKIM be configured using the DKIM values the console provides. Only once the SPF record is in place does the page describe adding the DMARC record.1

The alignment parameters in the source's record are ADKIM and ASPF. For ADKIM, a blank value or “r” is relaxed, while “s” is strict; relaxed allows subdomains, and strict requires strict alignment. ASPF follows the same pattern: blank or “r” is relaxed, “s” is strict, with relaxed allowing subdomains and strict requiring strict alignment.1

You can take the two-domain inventory you already drafted and add a short alignment check before writing any published record. For each row, note the domain that appears in the envelope return path, the domain in the visible From line, and whether the two match. In your working note, a documentation-subdomain row might read: envelope domain docs.example, header From docs.example, match yes. A journal row sent through a forwarding alias might read: envelope domain the alias provider, header From journal.example, match no — flag for review. These are author-made illustrations, not observations of your mail.

You might then write one sentence per row stating what alignment would mean for that source, and a second sentence for what you would do if it failed. Consider keeping these sentences in the same note as your policy candidates, so the alignment question and the policy choice sit side by side. You can choose to mark any row you cannot resolve as “hold,” which simply parks it until you have more material.

For an archived note, the same fields can be reused: replace the live domains with the ones named in the archived entry and note the date you copied them. That way a current row and an archived row share one format, and you can compare them without rewriting your method.

Verifying Your DMARC Setup with Command-Line Tools

For verification, the source specifies two command-line lookups against the published DMARC record: on Linux, a dig query for the TXT record at the underscore-dmarc host of the queried domain; on Windows, an nslookup query with the TXT record type at that same host. The source presents these as the way to look up the DMARC record, without stating expected output, propagation timing, or what a missing record means.1

Keep the lookup tied to the record itself: the source says the DMARC record is a TXT record at the underscore-dmarc host for the domain, so the query target follows from that entry rather than from any guess. No further verification method is described in the source.1

Take the inventory note you already drafted and turn it into a short verification worksheet you can fill in by hand before you look at any published record. A practical move is to write one row per sending source and give each row three fields of your own: “source name,” “what I expect a report to show,” and “what would make me pause.” A filled example might read: source “personal mailbox,” expected report “messages from this address only,” pause signal “any sending source I cannot name.” These are your own invented values, meant for comparison, not observations of real traffic.

You can then place your candidate policy sentences beside the worksheet and check them against it. If a sentence says quarantine but the matching row still carries a pause signal, consider marking that row “needs review” rather than promoting it. Repeat the same three fields for an archived entry, substituting the domains and dates named there and noting when you copied them; the archived row simply records older expectations, so you can compare how your criteria changed.

Finally, review the worksheet once on its own before you settle on a record. You might circle the rows where expectation and pause signal disagree, then decide whether to rewrite the sentence or leave the row open.

Frequently asked questions

How can I group my own sending and receiving addresses before opening a DNS editor?

Before you open a DNS editor, try grouping your own sending and receiving addresses into a short working table, then write one candidate policy sentence beneath each group. For example, a documentation site might yield a row labeled “apex domain” with the addresses “personal inbox” and “forwarding alias,” while a row labeled “docs subdomain” lists only “no mail sent.”

What two fields could I add for each candidate sentence to help decide whether to tighten policy?

For each candidate sentence, you might add two small fields of your own: what a monitoring report should let you confirm, and what would tell you to hold off on tightening the policy. A filled example could read “confirm: only my personal address and the forwarding path send mail; hold off if: a legitimate sender appears that I had forgotten.”

What fields can I add to my inventory note before touching any published record?

You can turn the working inventory into a small set of monitoring-address choices before touching any published record. Start from your draft policy sentences and, beside each one, write two plain fields: “report to” and “what I want the report to confirm.”