Protecting email sent from your domain requires more than adding an MX record. This guide explains how SPF, DKIM, DMARC, alignment, and reporting work together, then gives you a repeatable checklist for setup, monitoring, troubleshooting, and periodic review.
Overview
Domain email authentication helps receiving mail systems evaluate whether a message was authorized by the domain shown in the message. It can reduce spoofing risk, make legitimate messages easier to identify, and give domain owners visibility into unauthorized or misconfigured senders. Authentication does not guarantee inbox placement, but it is an important part of email domain security.
Four DNS record types are commonly involved:
| Record or concept | Purpose | Where it is configured |
|---|---|---|
| MX | Identifies the servers that receive mail for the domain. | DNS zone |
| SPF | Lists systems authorized to send mail for the domain or return-path domain. | DNS TXT record |
| DKIM | Uses a cryptographic signature to associate a message with a domain. | Provider-generated key plus DNS record |
| DMARC | Defines how authentication results should be evaluated, reported, and handled. | DNS TXT record |
| Alignment | Checks whether authenticated domains correspond appropriately with the visible From domain. | DMARC evaluation |
These records are usually managed wherever your domain DNS is hosted, which may be your registrar, web hosting company, cloud DNS platform, or another provider. Your website hosting and email hosting can be separate; changing a web host does not automatically move email, but DNS changes can affect both if records are edited carelessly.
Before making changes, document the current DNS zone and identify every system that sends mail using the domain. Consider employee mailboxes, contact forms, newsletters, transaction systems, monitoring tools, support platforms, and applications. A complete sender inventory is more valuable than a complex record added without knowing what it authorizes.
What to track
SPF authorization
SPF is published as one TXT record at the domain or subdomain used for sending. A typical record begins with v=spf1, followed by approved mechanisms and an ending qualifier. Your email provider should supply the exact include value or IP information required. Do not copy several provider records into separate SPF TXT records for the same name; combine authorized mechanisms into a single policy according to the providers' instructions.
Track the services represented in the record, the date each service was added, and whether it is still in use. Remove obsolete authorizations after confirming that no active workflow depends on them. Keep the record as simple as practical and avoid adding an unfamiliar include without understanding which service it represents.
DKIM keys and selectors
DKIM signing is normally enabled in the sending provider's administration interface. The provider generates a selector and publishes a corresponding public key, often as a TXT or CNAME record such as selector1._domainkey.example.com. The provider retains the private key and signs outgoing messages; the public key remains in DNS for verification.
Track every selector, the platform that uses it, and whether the key is active. If you change email platforms, do not remove an old DKIM record until messages signed with that selector have stopped or the provider confirms it is no longer needed. A selector is not necessarily the same as the mailbox address or domain name.
DMARC policy and reports
DMARC is published at _dmarc.example.com as a TXT record. A cautious starting record may look like this:
v=DMARC1; p=none; rua=mailto:dmarc-reports@example.comThe p=none policy requests reporting without asking receivers to quarantine or reject failing messages. After you have identified legitimate senders and corrected authentication and alignment problems, you can consider a staged move toward p=quarantine and, where appropriate, p=reject. The right progression depends on your sender inventory, business risk, and confidence in the data.
The rua tag identifies an address for aggregate reports. Use a monitored mailbox or a reporting service that your organization is prepared to review. Avoid sending reports to an unattended inbox. DMARC reporting addresses may receive XML data, and report volume can be substantial for a domain used by many systems.
Provider verification workflow
Although control-panel labels differ, the setup process is usually consistent:
- Open the sending provider's domain or email authentication settings.
- Enter the domain that appears in the visible From address.
- Copy the provider's requested SPF, DKIM, or verification values exactly.
- Add the records at the authoritative DNS provider, paying attention to the record name and whether the interface automatically appends the domain.
- Return to the email provider and select its verification or enable-signing action.
- Send a controlled test and inspect the authentication results in the received message headers.
Record the provider, DNS host, record name, value, date added, and owner. This change log makes future domain transfers, website migrations, and email platform changes safer.
Cadence and checkpoints
Use a monthly or quarterly review cadence for domains that send regular business email. A less active domain can be reviewed when its mail systems change, but it should still have an owner and a documented baseline.
Monthly checks
- Review aggregate DMARC reports or the reporting dashboard for new sending sources.
- Look for SPF, DKIM, and DMARC failures from known platforms.
- Confirm that the reporting mailbox or service is receiving data.
- Check whether a recent campaign, application release, or vendor change introduced a new sender.
Quarterly checks
- Compare every SPF authorization with an inventory of active services.
- Review DKIM selectors and remove records that are confirmed obsolete.
- Verify that MX records still point to the intended mail-receiving service.
- Test important mailbox addresses, contact forms, and automated notifications.
- Review the DMARC policy and decide whether the evidence supports maintaining or progressively tightening it.
Keep a simple change log with these fields: date, domain, record type, hostname, previous value, new value, reason, requester, approver, verification result, and rollback plan. For a multi-domain environment, include the business owner and the sending systems covered by each domain.
How to interpret changes
A DMARC failure is a signal to investigate, not automatic proof that a message is malicious. First separate known infrastructure from unknown sources. A legitimate marketing platform may be missing DKIM, using a different envelope domain, or sending through an SPF path that was never documented. An unfamiliar source may indicate spoofing, a forgotten application, or a vendor that still uses the domain.
Authentication and alignment are distinct. A message may pass SPF for its return-path domain but fail DMARC if that domain does not align with the visible From domain. It may also pass DKIM cryptographically while failing DMARC alignment if the signing domain is unrelated. Review the authentication-results headers and the From, return-path, and DKIM signing domains together.
Common problems include:
- Multiple SPF records: consolidate the authorized mechanisms into one SPF record for the same name.
- Incorrect host field: some DNS panels expect
_dmarc, while others expect the full hostname. Follow the panel's format. - Accidental quotation or spaces: copy TXT values carefully and let the DNS interface handle required quoting when appropriate.
- Unresolved CNAME or DKIM key: confirm the selector hostname and whether the DNS provider automatically appends the domain.
- Missing sender: add the platform to the inventory before changing policy, then configure its SPF or DKIM instructions.
- Messages marked as spam despite authentication: check sending reputation, list hygiene, content, volume, recipient complaints, and provider-specific feedback. Authentication alone is not a delivery guarantee.
DNS changes may not appear immediately everywhere. Verify with authoritative DNS tools and a controlled message rather than repeatedly editing the record. If a change causes delivery problems, restore the documented previous value and investigate one sender at a time.
When to revisit
Revisit this setup monthly or quarterly, and immediately after any event that changes mail flow. The most important triggers are adding a sender, changing email platforms, moving DNS, transferring the domain, launching a new application, acquiring a business domain, or receiving a sudden increase in DMARC failures.
Before tightening a DMARC policy, allow enough review time to identify legitimate sources and test important workflows. Before removing SPF or DKIM records, confirm that the associated service is no longer sending. Before a domain transfer, export the DNS zone and verify that MX, SPF, DKIM, DMARC, and any website records will be recreated at the new DNS provider. A domain transfer checklist and a separate DNS record reference can help prevent unrelated website or email outages.
Use this short action checklist whenever you review the domain:
- List every system that sends or receives mail.
- Confirm one authoritative SPF record and its current authorized services.
- Confirm DKIM signing for each active sending platform.
- Inspect DMARC reports for unknown sources and alignment failures.
- Test a real message and inspect its authentication results.
- Update the change log, assign an owner, and schedule the next review.
Authentication works best as an operating practice rather than a one-time DNS task. Keep records understandable, make changes deliberately, and treat every new sender or DNS migration as a reason to verify the whole email path.