Request a Consultation

Insights · Cybersecurity

DMARC, SPF and DKIM: a practical email authentication guide

By the Cystem X Engineering Team - Published - 5 min read

Email remains the most common way attackers reach staff, and spoofed messages that appear to come from your own domain are among the most convincing. SPF, DKIM and DMARC are the three standards that let receiving servers check whether a message is really from you. Deployed together and enforced, they protect your brand and improve deliverability.

What each standard does

SPF publishes the list of servers allowed to send mail for your domain. DKIM adds a cryptographic signature to each message so receivers can confirm it was not altered and that the signing domain authorized it. DMARC ties them together by requiring that at least one of them aligns with the visible From domain, and tells receivers what to do when checks fail.

None of the three is sufficient alone. DMARC is the policy layer that makes the other two enforceable.

Inventory every sender first

Before changing policy, list everything that sends mail as your domain: corporate mail platform, marketing tools, ticketing systems, billing software, HR portals and applications. Shadow senders are the main reason enforcement projects break legitimate mail.

Start DMARC in monitoring mode, with a policy of none, and collect aggregate reports. They show which sources send as your domain and whether they pass authentication.

Enforced DMARC turns your domain from something attackers can borrow into something they cannot.
Hand typing on a laptop keyboard in close view
Authentication starts with knowing every system that sends mail.

Configure SPF carefully

SPF has a limit of ten DNS lookups, and exceeding it causes failures that are hard to notice. Keep the record tight, remove unused includes and consider flattening or delegating to a managed service when the number of senders grows.

End the record with a restrictive qualifier once you are confident the list is complete, and avoid broad ranges that authorize more infrastructure than you control.

Sign with DKIM everywhere

Enable DKIM signing on every sending platform using keys at your own domain, so that signatures align with the From address. Use 2048-bit keys where supported, rotate them on a schedule and keep selectors documented.

Third-party senders should sign with your domain or a delegated subdomain rather than their own, otherwise DMARC alignment will fail.

Laptop showing a padlock icon on a table with a plant
Enforcement protects both recipients and your brand.

Move to enforcement in stages

After sources are fixed and reports show consistent passes, move DMARC to quarantine for a small percentage of mail, then increase gradually, and finally to reject. Each step should be followed by monitoring for legitimate mail that fails.

Use subdomains for third-party senders where possible, and publish a policy for subdomains and for domains that never send mail, since attackers target those too.

Monitor and respond

Aggregate reports are verbose XML, so use a tool or service to parse them. Watch for new unauthorized sources, sudden failure spikes and forensic indicators of abuse.

Treat DMARC data as a security signal. A new source sending as your domain may be an attack or an unreviewed business tool, and both deserve a quick answer.

Person using a smartphone beside a laptop outdoors
Staff read mail everywhere, so spoofing must be blocked at the source.

Go further

Consider MTA-STS and TLS reporting to protect mail in transit, and BIMI to display your logo to supporting receivers once DMARC is enforced. Combine authentication with user training and good filtering, since authentication stops spoofing of your domain but not lookalike domains.

Review the configuration after every mail platform change.

Key takeaways

  • Inventory all senders and start DMARC in monitoring mode.
  • Keep SPF within ten lookups and sign DKIM at your own domain.
  • Move to quarantine and then reject in gradual steps.
  • Protect parked and subdomains with explicit policies.
  • Review reports regularly as a security signal.

Sources and further reading

This article reflects general practice and publicly available guidance. Teams should consult primary sources, including the IETF specifications for SPF (RFC 7208), DKIM (RFC 6376) and DMARC (RFC 7489), and guidance from your national cyber authority, and adapt the guidance to their own environment, risk appetite and legal obligations.

Cybersecurity

Lock down your domain against spoofing.

We assess email security, fix authentication and manage the move to DMARC enforcement.

Explore Cybersecurity

Let’s engineer what’s next.

Tell us about your initiative - a solution architect will respond within one business day.