Suped

Does DMARC validate the originating IP address?

The short answer is no, DMARC does not directly validate the originating IP address. However, the longer and more accurate answer is that it works in conjunction with a protocol that does: the Sender Policy Framework (SPF). It's a common point of confusion, but understanding the specific roles of each email authentication protocol makes it clear.

Think of DMARC as a manager that uses information from two other systems, SPF and DKIM, to make a final decision. DMARC itself doesn't perform the initial checks, but it reads the results and applies a policy based on them.

www.fortinet.com logo
Fortinet says:
Visit website
DMARC verifies email senders by building on the Domain Name System (DNS), DomainKeys Identified Mail (DKIM), and Sender Policy Framework (SPF) protocols.
Suped DMARC monitor
Free forever, no credit card required
Get started for free
Trusted by teams securing millions of inboxes
Company logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logo

The distinct roles of SPF, DKIM, and DMARC

To fully grasp how DMARC interacts with IP addresses, we need to quickly break down the three key pillars of email authentication.

sendlayer.com logo
SendLayer says:
Visit website
Sender Policy Framework (SPF) records list all the IP addresses of the servers and apps that are authorized to send emails...

Sender Policy Framework (SPF): This is the protocol that deals directly with IP addresses. A domain owner creates an SPF record, which is a simple list published in their DNS that contains all the IP addresses and servers authorized to send email on behalf of that domain. When a mail server receives an email, it checks if the sending IP is on that authorized list. If it is, the email passes the SPF check.

DomainKeys Identified Mail (DKIM): DKIM is not concerned with IP addresses. Instead, it provides a cryptographic signature that is attached to the email. This signature acts like a tamper-proof seal, verifying that the contents of the email and certain headers haven't been altered in transit. The receiving server uses a public key in the sender's DNS to validate this signature.

Domain-based Message Authentication, Reporting, and Conformance (DMARC): DMARC is the policy layer that brings SPF and DKIM together. It verifies that the domain in the visible 'From:' address that the recipient sees is the same one authenticated by SPF or DKIM. This is a critical step called 'alignment'. Furthermore, DMARC tells the receiving mail server what to do with messages that fail these checks: do nothing (monitor), send it to the spam folder (quarantine), or block it completely (reject).

www.techtarget.com logo
Search Security says:
Visit website
DMARC uses DNS to advertise the policies that should be applied to email that fails to authenticate with SPF, DKIM or both.

How DMARC uses IP information from SPF

DMARC’s validation doesn't just ask, "Did SPF pass?" It asks, "Did SPF pass, and does the domain that passed match the 'From:' address?" This concept of alignment is how DMARC indirectly uses the IP validation performed by SPF. SPF authenticates the domain in the hidden Return-Path (also known as the envelope sender), while DMARC is focused on the visible From address. For DMARC to pass, those two domains must align.

www.nslookup.io logo
NsLookup.io says:
Visit website
SPF uses the "Return-Path" field during validation, while DMARC uses the "From" field.

Here's a simplified breakdown of the process for a DMARC pass with SPF:

  • An inbound server receives an email with a From address of user@example.com.
  • The server checks the Return-Path domain, which for this example is also example.com.
  • It performs an SPF check by looking at the sending IP address and comparing it to the SPF record published for example.com.
  • If the IP is in the record, SPF passes.
  • DMARC then checks if the Return-Path domain (example.com) matches the From domain (example.com). In this case, it does.
  • The email passes DMARC authentication.

IP addresses in DMARC reports

While DMARC's logic doesn't validate the IP address, one of its most powerful features is reporting. DMARC aggregate reports are XML files sent by receivers (like Gmail and Outlook) back to the domain owner. These reports are filled with valuable data, including the IP addresses of servers that are sending mail claiming to be from your domain.

community.spiceworks.com logo
Spiceworks Community says:
Visit website
I want to move this to reject but in monitor i have failures and when i check the IP addresses (one or two) the IP's are google, microsoft, go- ...

This means that by implementing DMARC, you gain visibility into the IP addresses sending on your behalf, whether they are legitimate or fraudulent. These reports allow you to identify all your sending services, update your SPF record with the correct IPs, and track down malicious actors who are attempting to spoof your domain.

The final verdict

So, to circle back to the original question: Does DMARC validate the originating IP address? No. DMARC validates domain alignment and enforces policy. It relies on SPF to do the heavy lifting of IP address validation. The two protocols working together create a powerful defense against phishing and spoofing, giving you control over who can send from your domain and visibility into who is trying to.

Start improving your email deliverability today

Get started