{"id":126373,"date":"2026-07-29T11:00:00","date_gmt":"2026-07-29T02:00:00","guid":{"rendered":"https:\/\/learningbox.online\/?p=126373"},"modified":"2026-08-27T15:38:09","modified_gmt":"2026-08-27T06:38:09","slug":"spoofing-protection-explanation","status":"publish","type":"post","link":"https:\/\/learningbox.online\/en\/column\/spoofing-protection-explanation\/","title":{"rendered":"Gmail Emails Going to Spam? Prevent Spoofing | Complete Beginner's Guide"},"content":{"rendered":"<p class=\"wp-block-paragraph\">Imagine if critical business communications or a newsletter you crafted with care were sent straight to your recipient's \"Spam\" folder.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In fact, this issue is almost always caused by sender domain authentication configured in the DNS (Domain Name System), rather than the content of the email itself.\n\n<br>The DNS is a system that links domain names to servers on the Internet, and it also serves as the foundation for determining email authenticity.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In February 2024, Google significantly tightened its sender guidelines. Businesses that send more than 5,000 emails per day are now required to implement all three authentication protocols: SPF, DKIM, and DMARC.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Furthermore, starting in January 2025, NTT Docomo will begin gradually displaying \"spoofed email warnings\" on messages that do not have sender domain authentication enabled. We are entering an era where emails with improperly configured DNS settings simply will not be delivered.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">However, many people likely feel unsure, thinking what SPF, DKIM and DMARC are. \n<br>In this article, we will thoroughly explain how these three technologies work, how they differ, and how to configure DNS, all in a way that is easy to digest, even with zero technical background.<\/p>\n\n\n\n<div id=\"toc\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading is-style-heading__l\">Why Email Authentication Is Essential Today<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/learningbox.online\/wp-content\/uploads\/blog\/spoofing-protection-explanation-01-1024x538.jpg\" alt=\"\" class=\"wp-image-126430\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Damage caused by phishing scams is increasing year by year, leading to corporate financial losses, data breaches, and severe brand reputation damage. The technologies known as SPF, DKIM, and DMARC were specifically developed to counter these threats.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">-<b>SPF (Sender Policy Framework)<\/b> is a mechanism that verifies whether the sending server is legitimate.<br>-<b>DKIM (DomainKeys Identified Mail)<\/b> applies a digital signature to emails to confirm that they originate from a legitimate sender and that the content has not been tampered with.<br>-<b>DMARC (Domain-based Message Authentication, Reporting, and Conformance)<\/b> is a policy mechanism that determines how receiving servers should handle emails that fail SPF or DKIM authentication.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">By configuring these technologies correctly, you can prevent email spoofing while simultaneously improving your overall delivery rates. Let\u2019s look at each mechanism in detail.<\/p>\n\n\n\n<h3 class=\"wp-block-heading is-style-heading__m\">Current State of Email Spoofing<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">In recent years, damages caused by \"spoofed emails\" impersonating actual companies or individuals have been surging rapidly. Cases exist where emails pretending to be from business partners infect systems with malware (a general term for software created with malicious intent), causing personal data leaks, or where emails instructing transfers to fake bank accounts result in financial theft.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">What makes spoofed emails so insidious is that the sender's From address can be freely altered from a technical standpoint. Attackers forge the domain of legitimate companies to send emails that appear completely unsuspect. It is extremely difficult for the human eye to distinguish them, which is precisely why damages continue unabated.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Furthermore, spoofed emails directly lead to the risk of brand reputation damage. If your company's domain is exploited to send massive amounts of phishing emails, there is a risk of severely damaging the trust of recipients. Additionally, as a consequence of this impact, even legitimate emails may be sorted into spam folders, potentially disrupting critical communication with customers.<\/p>\n\n\n\n<h3 class=\"wp-block-heading is-style-heading__m\">Impact of the Gmail Email Sender Guidelines<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">In February 2024, Google tightened its \"Email Sender Guidelines.\" The outline of the guidelines is as follows:<\/p>\n\n\n\n<h4 class=\"wp-block-heading is-style-heading__s\">Required for all senders<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Implementation of either SPF or DKIM<\/p>\n\n\n\n<h4 class=\"wp-block-heading is-style-heading__s\">Bulk senders of 5,000 or more emails per day<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Implementation of all three: SPF, DKIM, and DMARC<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If left unaddressed, emails sent to Gmail users may fail to be delivered. Furthermore, in practice, DKIM is becoming a virtually mandatory requirement even for non-bulk senders. This is because emails lacking DKIM are heavily flagged by Gmail's spam filters.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">[Reference] Gmail, \u201c<a href=\"https:\/\/support.google.com\/a\/answer\/81126\" target=\"_blank\" rel=\"noopener\" title=\"Guidelines for Email Senders\">Guidelines for Email Senders<\/a>&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading is-style-heading__m\">NTT DOCOMO\u2019s \"Spoofed Email Warning\"<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Starting in January 2025, NTT Docomo began sequentially deploying \"spoofed email warning\" for emails that do not support sender domain authentication. This makes implementation an urgent priority for businesses distributing emails to individual consumers as well.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">[Reference] NTT Docomo, \u201c<a href=\"https:\/\/www.docomo.ne.jp\/info\/spam_mail\/spoofing_warning\/\" target=\"_blank\" rel=\"noopener\" title=\"Spoofed Email Warning\">Spoofed Email Warning<\/a>&nbsp;<\/p>\n\n\n\n<a class=\"for_mokuji\" href=\"#toc\">Back to Contents<\/a>\n\n\n\n<h2 class=\"wp-block-heading is-style-heading__l\">How Are Emails Sent? (The Basics)<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">To understand sender domain authentication, the first thing you should know is the difference between the \"Envelope From\" and the \"Header From.\" The mechanism of email is easier to understand when compared to the relationship between an envelope and the letter inside.<\/p>\n\n\n\n<h3 class=\"wp-block-heading is-style-heading__m\">The Sender on the Envelope (Envelope From)<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">This is the sender used for delivery purposes. In terms of physical mail, it is the name written on the envelope. It is not displayed on the recipient's email screen.<\/p>\n\n\n\n<h3 class=\"wp-block-heading is-style-heading__m\">The Sender on the Letter (Header From)<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">This is the sender displayed on the screen. The \"sender information\" we see on our email inbox screen refers to this.<\/p>\n\n\n\n<h3 class=\"wp-block-heading is-style-heading__m\">How Spoofers Exploit<\/h3>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"525\" src=\"https:\/\/learningbox.online\/wp-content\/uploads\/blog\/en\/spoofing-protection-explanation-en.jpg\" alt=\"\" class=\"wp-image-126435\" srcset=\"https:\/\/learningbox.online\/wp-content\/uploads\/blog\/en\/spoofing-protection-explanation-en.jpg 1200w, https:\/\/learningbox.online\/wp-content\/uploads\/blog\/en\/spoofing-protection-explanation-en-300x154.jpg 300w, https:\/\/learningbox.online\/wp-content\/uploads\/blog\/en\/spoofing-protection-explanation-en-1024x525.jpg 1024w, https:\/\/learningbox.online\/wp-content\/uploads\/blog\/en\/spoofing-protection-explanation-en-768x394.jpg 768w, https:\/\/learningbox.online\/wp-content\/uploads\/blog\/en\/spoofing-protection-explanation-en-18x9.jpg 18w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">Basic Email Structure (Envelope From and Header From)<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Even if the sender on the envelope and the sender on the letter are different, the email will still be delivered. It is also possible to change only the displayed name.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For example, an email can be sent from a completely different location while spoofing the sender address to look like \"info@majorbank.co.jp\".<br>This is the technique used in email spoofing.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The mechanisms designed to prevent this issue are SPF, DKIM, and DMARC. First, remember that \"there are two senders.\"<\/p>\n\n\n\n<a class=\"for_mokuji\" href=\"#toc\">Back to Contents<\/a>\n\n\n\n<h2 class=\"wp-block-heading is-style-heading__l\">What is SPF?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">SPF is the first step in anti-spoofing measures. This is a mechanism where you register the servers authorized to send emails in your DNS. When Gmail receives an email, it verifies whether the sender is legitimate.<br>Let\u2019s first understand how this \"sender verification\" mechanism works.<\/p>\n\n\n\n<h3 class=\"wp-block-heading is-style-heading__m\">Basic Concept of SPF<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">SPF (Sender Policy Framework) is a mechanism for declaring in advance in the DNS \"which servers are allowed to send emails from this domain.\"<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For example, you pre-register information in the DNS such as, \"Emails from example.com are sent exclusively from the server with IP address 203.0.113.1 (*example for explanatory purposes).\"<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The receiving side checks whether the IP address of the server that actually transmitted the email is included in that registered list. If the email originates from an IP address not on the list, it can be identified as a \"potentially spoofed email.\"<\/p>\n\n\n\n<h3 class=\"wp-block-heading is-style-heading__m\">How SPF Works<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The SPF verification flow is carried out through the following steps.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>The sender transmits an email<\/li>\n\n\n\n<li>The receiving server logs the IP address of the server from which the email arrived<\/li>\n\n\n\n<li>The server queries the DNS for the domain in the Envelope From (e.g., example.com)<\/li>\n\n\n\n<li>The server compares the SPF record in the DNS TXT record with the actual sending IP address<\/li>\n\n\n\n<li>If they match, it is determined as \"SPF Pass\"; if they do not match, it is determined as \"Fail (Fail\/SoftFail)\"<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"503\" src=\"https:\/\/learningbox.online\/wp-content\/uploads\/blog\/en\/spoofing-protection-explanation-03-en.jpg\" alt=\"\" class=\"wp-image-126434\" srcset=\"https:\/\/learningbox.online\/wp-content\/uploads\/blog\/en\/spoofing-protection-explanation-03-en.jpg 1200w, https:\/\/learningbox.online\/wp-content\/uploads\/blog\/en\/spoofing-protection-explanation-03-en-300x148.jpg 300w, https:\/\/learningbox.online\/wp-content\/uploads\/blog\/en\/spoofing-protection-explanation-03-en-1024x503.jpg 1024w, https:\/\/learningbox.online\/wp-content\/uploads\/blog\/en\/spoofing-protection-explanation-03-en-768x378.jpg 768w, https:\/\/learningbox.online\/wp-content\/uploads\/blog\/en\/spoofing-protection-explanation-03-en-18x9.jpg 18w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">How SPF Works: The receiving server queries the DNS to match the IP address<\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading is-style-heading__m\">How to Read an SPF Record (Reference)<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">An actual SPF Record is written in the DNS TXT record as follows.<\/p>\n\n\n\n<div class=\"frame-gray\">\n<p class=\"wp-block-paragraph\">v=spf1 include:spf.google.com ip4:203.0.113.1 ~all<\/p>\n<\/div>\n\n\n\n<h4 class=\"wp-block-heading is-style-heading__s\">Meaning of Each Element<\/h4>\n\n\n\n<ul class=\"wp-block-list is-style-list-disc\">\n<li>v=spf1: Declaration of SPF Version 1<\/li>\n\n\n\n<li>include:spf.google.com: Allows sending from Google's mail servers as well (when using external services like Gmail)<\/li>\n\n\n\n<li>ip4:203.0.113.1: Allows sending from this IP address<\/li>\n\n\n\n<li>~all: Treats anything other than the above as \"SoftFail (warning)\" (-all indicates complete rejection)<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">The difference between ~all and -all lies in the strictness of processing when SPF fails. While -all (HardFail) recommends complete rejection, legitimate emails may be misidentified as spam during forwarding, so in many cases, it is recommended to start with ~all to monitor the situation.<\/p>\n\n\n\n<h3 class=\"wp-block-heading is-style-heading__m\">The Limitations of SPF<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Looking at this point, it might seem that setting up SPF alone can prevent spoofing.<br>However, SPF alone is insufficient. In fact, SPF has structural weaknesses that are fundamentally unavoidable.<\/p>\n\n\n\n<h4 class=\"wp-block-heading is-style-heading__s\">It Does Not Verify the Header From<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">What SPF verifies is the Envelope From (the sender on the envelope). It does not verify the Header From (the sender on the letter) displayed in email clients.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In other words, spoofing that falsifies only the Header From while leaving the Envelope From set to a legitimate domain cannot be prevented by SPF alone.<\/p>\n\n\n\n<h4 class=\"wp-block-heading is-style-heading__s\">It Cannot Handle Email Forwarding<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">When an email is forwarded, the forwarding server's IP address becomes the new \"Sender IP.\" However, because the forwarding server's IP is not registered in the original SPF record, SPF authentication fails despite it being a legitimate email.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\" style=\"padding-top:var(--wp--preset--spacing--50)\">To make up for these weaknesses, DKIM was introduced, which will be explained next.<\/p>\n\n\n\n<a class=\"for_mokuji\" href=\"#toc\">Back to Contents<\/a>\n\n\n\n<h2 class=\"wp-block-heading is-style-heading__l\">What Is DKIM? (Digital Signature for Tamper Prevention)<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If SPF is a mechanism for verifying the sending server, the next necessary step is a mechanism to verify whether the email itself is authentic. This is where DKIM comes into play.<\/p>\n\n\n\n<h3 class=\"wp-block-heading is-style-heading__m\">A Basic Overview of DKIM<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">If SPF functions as an \"authorized server list,\" DKIM acts as an \"official seal of authenticity.\" The concept behind DKIM is much like affixing a corporate seal to a legal document.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">When the sender applies a \"digital signature\" to an email and the recipient verifies it, both parties can ensure that \"the message was generated by the authentic sender and remained unaltered in transit.\"<\/p>\n\n\n\n<h3 class=\"wp-block-heading is-style-heading__m\">How DKIM Works<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">DKIM attaches a digital signature directly to an email. Unlike SPF, which checks sender IP addresses, DKIM verifies whether the message originates from a legitimate sender (preventing spoofing) and whether the body content has been modified. Under the hood, DKIM relies on public-key cryptography.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Sender-side processing follows these steps:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Calculate a hash value from the email's content (headers + body)<\/li>\n\n\n\n<li>Encrypt the hash value using a private key to create a \"signature\"<\/li>\n\n\n\n<li>Attach this signature to the email header as DKIM-Signature and transmit the message<\/li>\n<\/ol>\n\n\n\n<p class=\"has-small-font-size wp-block-paragraph\">*A hash value is a fixed-length string produced from data via a one-way (irreversible) hash function that cannot be converted back to its original form.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\" style=\"padding-top:var(--wp--preset--spacing--50)\">Receiver-side processing follows these steps:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Extract the signing domain (d=) and selector (s=) from the DKIM-Signature header<\/li>\n\n\n\n<li>Query the DNS to retrieve the corresponding public key<\/li>\n\n\n\n<li>Decrypt the signature using the public key to reveal the original hash value<\/li>\n\n\n\n<li>Compare it against the newly computed hash value of the received email body<\/li>\n<\/ol>\n\n\n\n<p class=\"has-small-font-size wp-block-paragraph\">*d= (signing domain) specifies the domain name taking responsibility for signing the email.<br>*s= (selector) acts as a unique identifier used to locate the correct public key, allowing a single domain to manage multiple keys.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"426\" src=\"https:\/\/learningbox.online\/wp-content\/uploads\/blog\/en\/spoofing-protection-explanation-04-en.jpg\" alt=\"\" class=\"wp-image-126433\" srcset=\"https:\/\/learningbox.online\/wp-content\/uploads\/blog\/en\/spoofing-protection-explanation-04-en.jpg 1200w, https:\/\/learningbox.online\/wp-content\/uploads\/blog\/en\/spoofing-protection-explanation-04-en-300x125.jpg 300w, https:\/\/learningbox.online\/wp-content\/uploads\/blog\/en\/spoofing-protection-explanation-04-en-1024x426.jpg 1024w, https:\/\/learningbox.online\/wp-content\/uploads\/blog\/en\/spoofing-protection-explanation-04-en-768x319.jpg 768w, https:\/\/learningbox.online\/wp-content\/uploads\/blog\/en\/spoofing-protection-explanation-04-en-18x7.jpg 18w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">How DKIM Works: Detecting message tampering through public-key digital signatures.<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">If the hash values match, \"DKIM Authentication Passes,\" confirming the email was created by the real sender and left untouched.<\/p>\n\n\n\n<h3 class=\"wp-block-heading is-style-heading__m\">Inside the DKIM-Signature<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The actual DKIM-Signature attached to an email header looks like this:<\/p>\n\n\n\n<div class=\"frame-gray\">\n<p class=\"wp-block-paragraph\">DKIM-Signature: v=1; a=rsa-sha256; c=relaxed\/relaxed;<br>d=example.com; s=google; \u2026omitted\u2026<br>bh = hash value; b = signature data<\/p>\n<\/div>\n\n\n\n<h4 class=\"wp-block-heading is-style-heading__s\">Key Parameters:<\/h4>\n\n\n\n<ul class=\"wp-block-list is-style-list-disc\">\n<li>d= (Domain): The signing domain, which plays a critical role during DMARC alignment checks.<\/li>\n\n\n\n<li>s= (Selector): The key name used to query the public key in the DNS.<\/li>\n\n\n\n<li>a = (Algorithm): The signature algorithm (rsa-sha256 is standard).\nWhat is a Selector?<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading is-style-heading__m\">What Is a Selector?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">A selector is an identifier that allows an organization to manage and rotate multiple DKIM key pairs under a single domain.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For instance, given d=example.com and s=google, the receiving server fetches the public key from the DNS record google._domainkey.example.com.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This architecture enables organizations using multiple email services to manage each integration with a distinct selector.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/learningbox.online\/wp-content\/uploads\/blog\/en\/spoofing-protection-explanation-05-en.jpg\" alt=\"\" class=\"wp-image-126436\"\/><figcaption class=\"wp-element-caption\">How to manage keys across multiple services<\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading is-style-heading__m\">Limitations of DKIM<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Configuring SPF and DKIM often creates a false sense of security that spoofing is completely solved. However, DKIM has clear limitations.<\/p>\n\n\n\n<h4 class=\"wp-block-heading is-style-heading__s\">Replay Attacks<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">DKIM cannot inherently prevent replay attacks, where a malicious actor intercepts an email containing a valid DKIM signature and resends it untouched to other recipients.<\/p>\n\n\n\n<h4 class=\"wp-block-heading is-style-heading__s\">Lack of Enforcement Policies<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">While DKIM determines whether an email is authentic, it offers no mechanism to define how receiving servers should handle messages when authentication fails. Handling failure scenarios is left to DMARC.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\" style=\"padding-top:var(--wp--preset--spacing--50)\">DKIM verifies whether an email is authentic. However, it cannot dictate how to process failed emails. That responsibility belongs to DMARC, which is explained next.<\/p>\n\n\n\n<a class=\"for_mokuji\" href=\"#toc\">Back to Contents<\/a>\n\n\n\n<h2 class=\"wp-block-heading is-style-heading__l\">What Is DMARC?<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/learningbox.online\/wp-content\/uploads\/blog\/spoofing-protection-explanation-06-1024x538.jpg\" alt=\"\" class=\"wp-image-126429\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">SPF and DKIM allow receiving servers to verify the sender's identity and detect email tampering. But how is an email handled when either check fails? DMARC makes that final decision.<\/p>\n\n\n\n<h3 class=\"wp-block-heading is-style-heading__m\">The Role of DMARC<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">DMARC (Domain-based Message Authentication, Reporting, and Conformance) receives authentication results from SPF and DKIM, serving as the central authority that dictates how failed emails are processed. DMARC fulfills three primary functions:<\/p>\n\n\n\n<h4 class=\"wp-block-heading is-style-heading__s\">Final Judgment<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">It evaluates an email's overall authenticity by combining SPF and DKIM authentication results with domain alignment (detailed below).<\/p>\n\n\n\n<h4 class=\"wp-block-heading is-style-heading__s\">Policy Declaration<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">It specifies how receiving mail servers should handle messages that fail authentication.<\/p>\n\n\n\n<h4 class=\"wp-block-heading is-style-heading__s\">Report Reception<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">It collects aggregate reports detailing who is sending emails using your domain.<\/p>\n\n\n\n<h3 class=\"wp-block-heading is-style-heading__m\">DMARC Policies<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">A DMARC record is a policy rule published in your DNS. It looks like this:<\/p>\n\n\n\n<div class=\"frame-gray\">\n<p class=\"wp-block-paragraph\">v=DMARC1; p=none;<\/p>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">The \"p\" tag stands for \"policy\" and defines how receiving servers must handle messages that fail authentication.<\/p>\n\n\n\n<h4 class=\"wp-block-heading is-style-heading__s\">Three-Tier Policy<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">DMARC offers three enforcement levels:<\/p>\n\n\n\n<table border=\"1\" style=\"width: 100%;\">\r\n<tbody>\r\n<tr>\r\n<th style=\"width: 20%; text-align: center; background-color: #f5f5f5; font-weight: bold; border-color: #c0c0c0;\">Policy<\/th>\r\n<th style=\"width: 40%; text-align: center; background-color: #f5f5f5; font-weight: bold; border-color: #c0c0c0;\">Meaning<\/th>\r\n<th style=\"width: 40%; text-align: center; background-color: #f5f5f5; font-weight: bold; border-color: #c0c0c0;\">Recommended Uses<\/th>\r\n<\/tr>\r\n<tr>\r\n<td style=\"width: 20%; text-align: center; vertical-align: middle;\">none<\/td>\r\n<td style=\"width: 40%; text-align: center; vertical-align: middle;\">Monitoring mode only; does not alter email delivery<\/td>\r\n<td style=\"width: 40%; text-align: center; vertical-align: middle;\">Initial testing and observation<\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"width: 20%; text-align: center; vertical-align: middle;\">quarantine<\/td>\r\n<td style=\"width: 40%; text-align: center; vertical-align: middle;\">Routes failed emails to the recipient's spam folder<\/td>\r\n<td style=\"width: 40%; text-align: center; vertical-align: middle;\">Intermediate step<\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"width: 20%; text-align: center; vertical-align: middle;\">reject<\/td>\r\n<td style=\"width: 40%; text-align: center; vertical-align: middle;\">Blocks failed emails entirely<\/td>\r\n<td style=\"width: 40%; text-align: center; vertical-align: middle;\">Full enforcement<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\n\n\n\n<h3 class=\"wp-block-heading is-style-heading__m\">Why a Phased Rollout is Critical<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">You should never start by setting DMARC directly to p=reject. There are two main reasons for this. First, enforcing reject without full visibility into all legitimate mail streams will block valid messages sent from third-party services, internal systems, or external applications.<br>Second, enforcing reject while your SPF or DKIM configurations are incomplete risks dropping large volumes of legitimate email.<\/p>\n\n\n\n<h4 class=\"wp-block-heading is-style-heading__s\">Recommended Implementation Steps<\/h4>\n\n\n\n<ul class=\"wp-block-list is-style-list-disc\">\n<li>Start monitoring with p=none to map all sending sources via DMARC reports.<\/li>\n\n\n\n<li>Transition to p=quarantine once SPF and DKIM are fully configured across all sending paths.<\/li>\n\n\n\n<li>Escalate to p=reject after confirming no legitimate traffic is impacted.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">DMARC evaluation relies heavily on a concept called alignment. Let's examine how alignment works in detail.<\/p>\n\n\n\n<a class=\"for_mokuji\" href=\"#toc\">Back to Contents<\/a>\n\n\n\n<h2 class=\"wp-block-heading is-style-heading__l\">What Is DMARC Alignment?<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/learningbox.online\/wp-content\/uploads\/blog\/spoofing-protection-explanation-07-1024x538.jpg\" alt=\"\" class=\"wp-image-126431\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Up to this point, we have covered how SPF, DKIM, and DMARC operate. However, you might encounter scenarios where authentication passes, yet DMARC still fails. The cause of this is an alignment mismatch.<\/p>\n\n\n\n<h3 class=\"wp-block-heading is-style-heading__m\">Why Alignment Matters<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Alignment checks whether the domain used for authentication matches the sender address visible to the end user in the \"From\" header. DMARC evaluates alignment against both SPF and DKIM.<\/p>\n\n\n\n<h3 class=\"wp-block-heading is-style-heading__m\">SPF Alignment<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">SPF verifies the domain listed in the envelope sender (Envelope From). DMARC then checks if the SPF-authenticated domain matches the domain in the visible \"From\" header (Header From).<\/p>\n\n\n\n<h3 class=\"wp-block-heading is-style-heading__m\">DKIM Alignment<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">DKIM verifies the \"d=domain\" included in the signature. DMARC checks whether the DKIM signature was successful and whether the \"d=domain\" matches the domain in the \"From\" header.<\/p>\n\n\n\n<h3 class=\"wp-block-heading is-style-heading__m\">Relaxed vs. Strict Alignment<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Relaxed and Strict modes define how strictly domain matching is enforced during alignment checks. These parameters are configured within your DMARC DNS record.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Relaxed mode permits matching subdomains, whereas Strict mode requires an exact domain match. Unless you have specific organizational requirements, Relaxed mode is usually sufficient.<\/p>\n\n\n\n<h3 class=\"wp-block-heading is-style-heading__m\">DMARC Requires Only One Alignment Pass<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Crucially, DMARC achieves an overall DMARC PASS as long as either SPF alignment or DKIM alignment succeeds.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This design ensures that even if email forwarding breaks SPF authentication, the message will still pass DMARC as long as DKIM alignment holds. This is precisely why deploying both SPF and DKIM together is critical.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"670\" src=\"https:\/\/learningbox.online\/wp-content\/uploads\/blog\/en\/spoofing-protection-explanation-08-en.jpg\" alt=\"\" class=\"wp-image-126437\" srcset=\"https:\/\/learningbox.online\/wp-content\/uploads\/blog\/en\/spoofing-protection-explanation-08-en.jpg 1200w, https:\/\/learningbox.online\/wp-content\/uploads\/blog\/en\/spoofing-protection-explanation-08-en-300x202.jpg 300w, https:\/\/learningbox.online\/wp-content\/uploads\/blog\/en\/spoofing-protection-explanation-08-en-1024x689.jpg 1024w, https:\/\/learningbox.online\/wp-content\/uploads\/blog\/en\/spoofing-protection-explanation-08-en-768x516.jpg 768w, https:\/\/learningbox.online\/wp-content\/uploads\/blog\/en\/spoofing-protection-explanation-08-en-18x12.jpg 18w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">DMARC Process Diagram<\/figcaption><\/figure>\n\n\n\n<a class=\"for_mokuji\" href=\"#toc\">Back to Contents<\/a>\n\n\n\n<h2 class=\"wp-block-heading is-style-heading__l\">FAQ<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/learningbox.online\/wp-content\/uploads\/blog\/spoofing-protection-explanation-09-1024x538.jpg\" alt=\"\" class=\"wp-image-126432\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Here are answers to common questions regarding DMARC implementation.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Q. Why do legitimate emails land in the spam folder?<\/strong><br>A. If SPF or DKIM is missing or misconfigured, receiving mail servers treat the sender as untrusted and route messages to spam. Major providers like Gmail apply particularly strict filtering to unsigned messages.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Q. Does DMARC prevent Display Name spoofing?<\/strong><br>A. SPF, DKIM, and DMARC cannot block Display Name spoofing. For example, an attacker can set their display name to \"John Doe\" while sending from attacker@evil.com, and email clients will still show \"John Doe\" to the recipient. To combat display name impersonation, implementing BIMI (Brand Indicators for Message Identification) is recommended.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Q. Why does email forwarding break SPF authentication?<\/strong><br>A. When a message is forwarded, the forwarding server's IP becomes the new sender IP. Because this intermediary IP is not listed in the original sender's SPF record, SPF validation fails. To resolve this, Sender Rewriting Scheme (SRS) rewrites the Envelope From during transit so SPF passes. DKIM remains intact during forwarding as long as the email body and headers are unaltered, making it naturally forward-resistant.<\/p>\n\n\n\n<a class=\"for_mokuji\" href=\"#toc\">Back to Contents<\/a>\n\n\n\n<h2 id=\"dns\" class=\"wp-block-heading is-style-heading__l\">Summary<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">This article detailed how email authentication protocols prevent legitimate messages from landing in spam folders.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">SPF (Sender Policy Framework): Declares authorized sending IP addresses in DNS to detect unauthorized senders. While easy to implement, it has limitations: it does not validate the visible \"From\" header and fails when emails are forwarded.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">DKIM (DomainKeys Identified Mail): Uses cryptographic signatures to verify message authenticity and integrity. It survives forwarding and validates the visible \"From\" header domain.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">DMARC (Domain-based Message Authentication, Reporting, and Conformance): Evaluates SPF and DKIM results to enforce handling policies (none, quarantine, reject) and generate reporting. DMARC succeeds as long as either SPF or DKIM alignment passes.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">These three standards function as an integrated framework. No single protocol provides complete security on its own; robust sender authentication requires all three working together.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We recommend starting by configuring SPF and DKIM, then enabling DMARC monitoring at p=none.<\/p>\n\n\n\n<div class=\"lb-block-bg-container\" style=\"background-color:#e5f4fc\">\n<p class=\"has-text-align-center wp-block-paragraph\"><strong>Explore learningBOX features<\/strong><\/p>\n\n\n\n<div style=\"text-align:center\"><a class=\"lb-block-link-button\" style=\"background-color:#ef476f;color:#ffffff;margin:0 auto;display:inline-block\" href=\"https:\/\/learningbox.online\/en\/downloads\/document-learningbox3set\/\"><span class=\"btn-line2\" style=\"display:block\">Download<\/span><\/a><\/div>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\" style=\"padding-top:var(--wp--preset--spacing--50)\"><strong>\u25bcYou may also like:<\/strong><\/p>\n\n\n  <a href=\"\/en\/column\/blog-information-leak-9-measures\/\" class=\"relatedArticle__hover\">\n\t  <div class=\"relatedArticle\">\n      <div class=\"relatedArticle__thumbnail\">\n        <img decoding=\"async\" src=\"https:\/\/learningbox.online\/wp-content\/uploads\/blog\/en\/en_information_leak_9_measures_00.jpg\" alt=\"thumbnail (i.e. miniature image)\">\n      <\/div> \n      <div class=\"relatedArticle__content\">\n        <div class=\"relatedArticle__title\">\n          <p>9 Ways to Prevent Information Leakage<\/p>\n        <\/div>\n        <div class=\"relatedArticle__excerpt\">\n          <p>If an information leak occurs in a company, it could result in claims for damages and other situations that could affect the survival of the business. To reduce the risk of information leaks, it is important to take measures in advance. In this issue, we introduce the key points of information leakage countermeasures and the main causes of information leaks.<\/p>\n        <\/div>\n      <\/div>\n      <div class=\"arrow-16 f-16\"><\/div>\n    <\/div>\n  <\/a>","protected":false},"excerpt":{"rendered":"What if an important work-related message or a newsletter you put your heart into creating ended up in the recipient\u2019s \u201cJunk\u201d folder? Actually, this problem isn\u2019t caused by the content of the email, but by DNS (\u2026","protected":false},"author":6,"featured_media":126438,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"template-column.php","format":"standard","meta":{"_acf_changed":false,"content-type":"","_lmt_disableupdate":"yes","_lmt_disable":"","slim_seo":{"title":"SPF, DKIM, and DMARC | Ending Up in Gmail's Spam Folder? Countermeasures Against Impersonation\u2014A Comprehensive Guide for Beginners on How They Work and How to Set Them Up - learningBOX | High-Performance, High-Quality LMS at This Price","description":"Imagine if an important work-related message or a newsletter you put your heart into creating ended up in the recipient\u2019s \u201cJunk\u201d folder. In fact, this problem is almost always caused not by the content of the email, but by the sender domain authentication settings configured in the DNS (Domain Name System). The DNS is a system that links domains to servers on the Internet, and email..."},"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_vk_print_noindex":"","_veu_custom_css":"","_wpcom_ai_launchpad_first_post":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"_slim_seo_primary_term_category":395,"_slim_seo_primary_term_post_tag":0,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[395],"tags":[],"class_list":["post-126373","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-info-security"],"acf":[],"modified_by":"i.hirota","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pgWaOl-wSh","publishpress_future_action":{"enabled":false,"date":"2026-09-28 11:03:46","action":"change-status","newStatus":"draft","terms":[],"taxonomy":"category","extraData":[]},"publishpress_future_workflow_manual_trigger":{"enabledWorkflows":[]},"jetpack_featured_media_url":"https:\/\/learningbox.online\/wp-content\/uploads\/blog\/spoofing-protection-explanation-00.jpg","_links":{"self":[{"href":"https:\/\/learningbox.online\/en\/wp-json\/wp\/v2\/posts\/126373","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/learningbox.online\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/learningbox.online\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/learningbox.online\/en\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/learningbox.online\/en\/wp-json\/wp\/v2\/comments?post=126373"}],"version-history":[{"count":81,"href":"https:\/\/learningbox.online\/en\/wp-json\/wp\/v2\/posts\/126373\/revisions"}],"predecessor-version":[{"id":126910,"href":"https:\/\/learningbox.online\/en\/wp-json\/wp\/v2\/posts\/126373\/revisions\/126910"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/learningbox.online\/en\/wp-json\/wp\/v2\/media\/126438"}],"wp:attachment":[{"href":"https:\/\/learningbox.online\/en\/wp-json\/wp\/v2\/media?parent=126373"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/learningbox.online\/en\/wp-json\/wp\/v2\/categories?post=126373"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/learningbox.online\/en\/wp-json\/wp\/v2\/tags?post=126373"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}