DMARC

How to Identify Unknown Senders in DMARC Aggregate Reports

A step-by-step method for the unfamiliar IP addresses in your DMARC aggregate reports: which XML fields matter, how to map an IP to a service with PTR, RDAP and ASN, how to separate legitimate senders from spoofing, and how to fix SPF and DKIM alignment.

By MailConfig.pro TeamPublished 7 min read

On this page
  1. What an aggregate report contains
  2. The fields that matter
  3. Step 1: group by source
  4. Step 2: map the IP to a service
  5. Step 3: legitimate third party or spoofing?
  6. Step 4: fix alignment for the legitimate senders
  7. What to do with the rest
  8. Doing this at scale

To identify an unknown sender in a DMARC aggregate report, take the source_ip, compare the DKIM d= domain and SPF domain in auth_results, then trace the IP with a reverse DNS (PTR) lookup and an RDAP or ASN lookup. A source that belongs to a service you use but fails alignment needs an SPF or DKIM fix. A source with no link to you that fails both checks is probably spoofing. Read all of these clues together before you decide.

What an aggregate report contains

Receivers send aggregate reports to the address in your rua tag, as XML. The XML should be gzip-compressed, and the attachment name follows the pattern receiver!policy-domain!begin!end.xml.gz (RFC 9990, section 3.5.2). The format is defined in RFC 9990, which replaced the schema in Appendix C of RFC 7489. A report has a header with the reporting organization and time range, a copy of the policy the receiver found, and one record per combination of source IP, identifiers and results. Each report covers one DMARC policy domain: mail from a subdomain without its own DMARC record appears as separate record elements inside the parent domain's report (section 3.1.2).

This trimmed example follows the RFC 9990 schema. The IPs come from the documentation ranges and the domains are examples:

<?xml version="1.0" encoding="UTF-8" ?>
<feedback xmlns="urn:ietf:params:xml:ns:dmarc-2.0">
  <version>1.0</version>
  <report_metadata>
    <org_name>receiver.example.net</org_name>
    <email>noreply-dmarc@receiver.example.net</email>
    <report_id>2026112200001</report_id>
    <date_range><begin>1795305600</begin><end>1795392000</end></date_range>
  </report_metadata>
  <policy_published>
    <domain>example.com</domain>
    <discovery_method>treewalk</discovery_method>
    <p>none</p>
    <sp>none</sp>
    <np>none</np>
    <adkim>r</adkim>
    <aspf>r</aspf>
    <testing>n</testing>
  </policy_published>
  <record>
    <row>
      <source_ip>192.0.2.10</source_ip>
      <count>1240</count>
      <policy_evaluated>
        <disposition>pass</disposition>
        <dkim>pass</dkim>
        <spf>pass</spf>
      </policy_evaluated>
    </row>
    <identifiers>
      <envelope_from>example.com</envelope_from>
      <header_from>example.com</header_from>
    </identifiers>
    <auth_results>
      <dkim><domain>example.com</domain><selector>s1</selector><result>pass</result></dkim>
      <spf><domain>example.com</domain><scope>mfrom</scope><result>pass</result></spf>
    </auth_results>
  </record>
  <record>
    <row>
      <source_ip>198.51.100.25</source_ip>
      <count>310</count>
      <policy_evaluated>
        <disposition>none</disposition>
        <dkim>fail</dkim>
        <spf>fail</spf>
      </policy_evaluated>
    </row>
    <identifiers>
      <envelope_from>bounce.mailer.example.net</envelope_from>
      <header_from>example.com</header_from>
    </identifiers>
    <auth_results>
      <dkim><domain>mailer.example.net</domain><selector>k1</selector><result>pass</result></dkim>
      <spf><domain>bounce.mailer.example.net</domain><scope>mfrom</scope><result>pass</result></spf>
    </auth_results>
  </record>
  <record>
    <row>
      <source_ip>203.0.113.77</source_ip>
      <count>42</count>
      <policy_evaluated>
        <disposition>none</disposition>
        <dkim>fail</dkim>
        <spf>fail</spf>
      </policy_evaluated>
    </row>
    <identifiers>
      <envelope_from>example.com</envelope_from>
      <header_from>example.com</header_from>
    </identifiers>
    <auth_results>
      <spf><domain>example.com</domain><scope>mfrom</scope><result>fail</result></spf>
    </auth_results>
  </record>
</feedback>

The fields that matter

  • source_ip and count: the connecting server and how many messages matched this row. Volume separates a bulk sender from a probe.
  • header_from: the domain in the visible From address, which DMARC protects. Check it first, because reports can include subdomains.
  • envelope_from: the domain used for SPF. A domain you do not recognize here often names the service.
  • auth_results/dkim/domain and selector: the d= and s= of each DKIM signature (RFC 6376). A signing domain such as mailer.example.net tells you which platform signed the message.
  • auth_results/spf: the domain SPF checked and its result.
  • policy_evaluated: the DKIM and SPF results after DMARC alignment is applied, plus the disposition the receiver applied (none, pass, quarantine or reject). When the applied disposition differs from your published policy, a reason element says why. RFC 9990 defines the types local_policy, mailing_list, trusted_forwarder, policy_test_mode and other (section 3.1.6).

RFC 9990 describes auth_results as the raw SPF and DKIM results, "uninterpreted with respect to DMARC", while the policy_evaluated values are the DMARC alignment outcomes (sections 3.1.1.9 and 3.1.1.11). They can disagree, and that disagreement is the most useful signal in the file. In the second record above, SPF and DKIM both passed for mailer.example.net, yet DMARC evaluated both as fail, because neither domain aligns with example.com. That is a legitimate-looking service that is not set up to send as your domain. How alignment works is covered in the DMARC guide, and RFC 9989 section 4.4 has the rules.

Step 1: group by source

A busy domain produces many rows per day. Group them by the tuple of source IP, header_from, DKIM signing domain and SPF domain, and add up the counts. Start with the biggest group that fails DMARC. A report from one receiver is a partial view, so merge several days and several reporters before judging a small source.

Step 2: map the IP to a service

Work from the cheapest clue to the most expensive.

  1. Read the authentication domains. The DKIM d= and the SPF domain often name the service outright.
  2. Look up the PTR record. The PTR lookup resolves an IP to its reverse DNS hostname and checks whether that hostname resolves back to the same IP. A confirmed hostname under a mail provider's domain is a strong clue. A missing or generic one (hostnames built from the IP) is not proof of anything bad, since many cloud hosts look like that.
  3. Find the network owner. The WHOIS/RDAP and ASN lookup shows the registered network name and the autonomous system (ASN) that announces the IP. RDAP is the structured successor to WHOIS (RFC 9082). Result: you learn which network the IP belongs to, not who rents a server on it.
  4. Inspect a real message. If someone received a message from that source, paste its full headers into the email header analyzer to see the authentication results, Received chain and signing domains.
  5. Ask the people. Marketing, support, finance and HR sign up for sending tools without telling IT. Search your SPF record and company mailboxes for the service name.

Step 3: legitimate third party or spoofing?

Match the group to one of these patterns.

Pattern Likely cause What to do
Passes DMARC through SPF or DKIM Your own servers or a configured service Nothing, if you recognize it. A passing source you can't place may be using a hijacked DNS record
Both pass in auth_results for the service's domain, both fail alignment A real service not set up for your domain Fix alignment (next section)
SPF fails from a relay's IP, DKIM passes and aligns, or the row has a mailing_list or trusted_forwarder reason A forwarder or mailing list Usually fine. DKIM carries the message
No DKIM signature, SPF fails, IP in a network with no link to you Spoofing, or an unknown legitimate system Verify with the business before deciding
Small counts from many unrelated IPs, all failing Likely spoofing or probing Enforcement is what stops it

Do not treat the table as proof. A single failing IP with a few messages may be a forgotten server, and a passing source can still be an account compromised at a legitimate provider. Decide from the evidence you gathered, and when a source stays unknown after the steps above, leave it out of your SPF record until someone confirms it. Never add an IP to SPF just to turn a report line green.

Step 4: fix alignment for the legitimate senders

DMARC passes when SPF or DKIM passes and the authenticated domain aligns with the From domain. You only need one aligned method, and DKIM is the sturdier one because it survives forwarding. For each legitimate sender:

  • DKIM: configure the service to sign with your domain (d=example.com or a subdomain such as d=mail.example.com in relaxed mode). Most services give you a selector record to publish in DNS. This is the preferred fix.
  • SPF: SPF aligns only when the envelope-from (return-path) is on your domain, so you need a custom return-path domain at the service, and its sending hosts must be authorized in that domain's SPF record. Adding the service's include: to your root SPF does not align a return-path that stays on the service's own domain.

An SPF record that authorizes a service looks like this:

TXTexample.com
v=spf1 ip4:192.0.2.10 include:_spf.mailer.example.net -all

Each include: adds DNS lookups, and RFC 7208 section 4.6.4 caps them at ten, so another sender can push the record into a PermError.

After the change, wait for the next day's reports and confirm that the group now shows pass in policy_evaluated. Keep the p=none policy until every legitimate group does.

What to do with the rest

Sources you have decided are not yours are the reason to move to p=quarantine or p=reject. Make that move only after the legitimate groups align. The staged approach is the subject of the DMARC policy rollout guide.

Doing this at scale

Reading raw XML works for one low-volume domain. MailConfig.pro's DMARC monitoring turns aggregate reports into a view of observed sending sources, with SPF and DKIM alignment shown alongside the DMARC policy. It depends on receiving valid reports and shows nothing for periods when none arrived.

Frequently asked questions

Is an unknown IP in a DMARC report always spoofing?

No. Many unknown IPs belong to a service someone in your company signed up for, such as a CRM, helpdesk or newsletter tool. Others are forwarders or mailing lists. The authentication results and the volume pattern tell you which it is.

Why does a message show SPF pass in auth_results but fail in policy_evaluated?

auth_results holds the raw SPF and DKIM results. policy_evaluated holds the result after DMARC alignment is applied. SPF can pass for the service's own domain and still fail DMARC because that domain is not aligned with your From domain.

Can I identify a sender from the IP address alone?

Often, not always. A PTR record and the RDAP or ASN owner point to the network, and for cloud hosts that only tells you the platform, not the customer. Combine the IP with the DKIM d= domain, the envelope-from domain and the volume.

References

aggregate reportsruaunknown sendersalignmentrdapptr

DMARC

What Is DMARC? How Email Authentication Fits Together

DMARC is a DNS record that ties SPF and DKIM to the domain in the visible From address, states what receivers should do with mail that fails, and requests reports. This guide covers alignment, the record syntax, policies, reporting and what happens when a domain has no record.

· 10 min read

DMARC

DMARC p=none vs quarantine vs reject: Rolling Out Enforcement

p=none asks for no change in handling and gives you reports, p=quarantine asks receivers to treat failing mail as suspicious, and p=reject asks them to refuse it. This guide covers when each fits, a staged rollout, what happened to pct, and the risks from forwarding and mailing lists.

· 9 min read

SPF

SPF PermError: "Too Many DNS Lookups" and Other Causes

SPF returns permerror when a receiver cannot interpret your record. The usual cause is more than 10 DNS-querying terms, but extra void lookups, two SPF records, a syntax error or an include with no SPF record do the same. This guide shows how lookups are counted and gives corrected records.

· 8 min read

Best practices

Gmail, Yahoo and Outlook Sender Requirements: What Your Domain Needs

A checklist of what Gmail, Yahoo and Outlook.com each require from your sending domain, taken from the providers' own pages and dated November 2026: who counts as a bulk sender, the authentication minimums, one-click unsubscribe, spam-rate limits, PTR and TLS.

· 8 min read