keepcalculator

06 Numbers and Powers

DMARC: How It Stops Spoofed Malware Emails

Card No. 06·52039 · Updated · Standard formula, shown below

DMARC (Domain-based Message Authentication, Reporting, and Conformance) helps block spoofed emails carrying malware by letting a domain owner publish a policy that tells receiving mail servers what to do with messages that fail authentication checks—quarantine them or reject them outright. You implement it by publishing a DNS record, and once enforced, forged emails pretending to be from your domain are either sent to spam or dropped before they ever reach an inbox, which directly cuts off a primary delivery route for malware. This article explains how DMARC fits into email authentication, how to set it up, and why it is not a complete security solution on its own.

Background: Why Email Spoofing Is So Common

Email was designed in an era when authentication was not a concern. The Simple Mail Transfer Protocol (SMTP) does not verify that the sender address in the envelope or header is legitimate. That design flaw is why spoofing is trivially easy: an attacker can put any address in the “From” field, and most mail servers will accept it. Malware distribution relies on this—people trust an email that looks like it is from their bank, their boss, or a colleague, and they click the attachment.

Before DMARC, the only defenses were SPF and DKIM, but each had a gap. SPF checks the envelope sender (the return-path), which users never see. DKIM verifies a signature, but a missing signature does not necessarily mean the email is fake. Neither tells the receiving server what to do when checks fail. DMARC closes that gap by tying both to the visible From domain and giving a clear instruction: quarantine or reject.

How DMARC Works in Practice

DMARC is published as a DNS TXT record at _dmarc.yourdomain.com. The record contains a policy (p), an alignment mode (adkim, aspf), and an address for aggregate reports (rua). When a receiving server gets an email claiming to be from your domain, it:

  1. Looks up your DMARC record.
  2. Checks SPF and DKIM results from the message.
  3. Checks that the domain in the From header aligns with the domain that passed SPF or DKIM.
  4. If both fail, applies your policy.
  5. Sends a daily XML report to the rua address if you set one.

For malware, the critical step is the policy. With p=reject, the email never reaches the user. With p=quarantine, it lands in spam, where most users ignore it. Even p=none helps because you can see reports and identify which of your own systems are failing authentication, then fix them before tightening the policy.

How to Choose a DMARC Policy

You do not start with reject. The standard rollout is:

  • Start with p=none – monitor your email traffic. Review the aggregate reports for at least a week to see which legitimate senders (newsletters, transactional mail, third-party services) are not authenticated.
  • Move to p=quarantine – once you have fixed SPF and DKIM for all legitimate senders, set quarantine. Spoofed emails go to spam, which is safer than delivery but still allows user error.
  • Finally p=reject – after confirming no legitimate mail is being lost, switch to reject. This is the only policy that fully blocks malware delivery via spoofed domains.

You can also use sp for subdomains and pct to apply the policy to a percentage of mail (e.g., pct=50 applies to half the messages). The rua address is essential—it is how you see what is failing.

Common Problems and Misconceptions

The biggest mistake is thinking DMARC alone stops all spoofing. It only works if the receiving server actually checks DMARC. Many smaller mail servers do not, and some spam filters treat DMARC failures as just one signal among many. Also, DMARC does nothing about lookalike domains—an attacker can register examp1e.com and send from that; DMARC on example.com is irrelevant.

Another common problem is misconfigured SPF. If your SPF record has too many lookups (more than 10 DNS lookups), some servers will return permerror, and DMARC will fail even for legitimate mail. Similarly, if you use a third-party email service (like a marketing platform) and do not include their sending IPs in your SPF record, their emails will fail DMARC. The solution is to check your SPF record and add all authorized senders, or use DKIM for those services.

A frequent misconception is that DMARC encrypts email or scans attachments for malware. It does neither. It only verifies the sender’s identity. Malware can still arrive from a legitimate but compromised account—DMARC will pass because the email is genuinely from that domain. That is why DMARC must be paired with antivirus scanning and user training.

Comparison with SPF and DKIM Alone

SPF alone: an attacker can spoof the From header to be ceo@example.com while using a different envelope sender. SPF passes for the envelope, but the user sees the fake From. DKIM alone: an attacker can send without a signature, and many servers will still deliver it. DMARC combines both and adds a policy, so a missing or failing check has a consequence.

In practice, you need all three. SPF and DKIM are the authentication methods; DMARC is the enforcement. Without DMARC, a failed SPF or DKIM check is just a data point in the spam score. With DMARC, it is a reason to reject the message.

Costs and Effort

DMARC itself is free—it is a DNS record. The cost is in time and expertise. You need to:

  • Audit all senders using your domain.
  • Update SPF records (which can break if done incorrectly).
  • Set up DKIM signing for every mail server you control.
  • Monitor the aggregate reports and adjust.

For a small business, this might take a few hours. For a large organization with many third-party services, it can take weeks. There are commercial DMARC services that simplify monitoring and provide forensic reports, but they are not required for the basic protection.

Safety and Limitations

DMARC is a powerful defense but not a silver bullet. It does not stop:

  • Lookalike domains (typosquatting).
  • Compromised legitimate accounts.
  • Emails from domains that have not implemented DMARC.
  • Malware delivered via other channels (web downloads, USB drives).

It also does not protect your users from emails sent to them from other domains that are spoofed. DMARC only protects your own domain. To protect your users from spoofed external domains, you would need to rely on your mail provider’s filtering, not DMARC.

Finally, a poorly configured DMARC record can block legitimate mail. For example, if you set p=reject before fixing SPF for your newsletter service, your own marketing emails will be rejected. That is why the phased rollout is essential.

Frequently Asked Questions

Does DMARC stop all spoofed emails?

No. It stops emails that claim to be from a domain that has published a DMARC reject policy. It does not stop lookalike domains, and it does not stop emails from domains without DMARC. It also does not stop a compromised account on a legitimate domain.

What is the difference between quarantine and reject in DMARC?

Quarantine tells the receiving server to treat the email as suspicious—usually sending it to the spam folder. Reject tells the server to bounce or drop the email entirely. Reject is stronger because the email never reaches the user’s inbox or spam folder, so there is no chance of accidental clicks.

How long does it take for DMARC to work?

Once you publish the DNS record, it propagates within minutes to hours, but receiving servers may cache DNS for up to 24 hours. The policy takes effect as soon as servers see the record. However, you should monitor reports for at least a week before moving to a stricter policy.

Can DMARC affect legitimate email?

Yes, if your SPF or DKIM is not configured correctly for all legitimate senders. That is why you start with p=none and review the reports. A common issue is forgetting to include a third-party service (like a CRM or email marketing tool) in your SPF record or failing to set up DKIM for them.

Do I need a paid DMARC service?

No. The DNS record is free. Paid services offer easier report visualization, alerting, and sometimes help with configuration, but the core protection comes from the record itself. For a small domain, free tools and manual review of the XML reports are sufficient.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →