{"id":174984,"date":"2025-02-20T12:44:57","date_gmt":"2025-02-20T18:44:57","guid":{"rendered":"https:\/\/ccbtechnology.com\/?p=174984"},"modified":"2025-03-11T15:16:30","modified_gmt":"2025-03-11T21:16:30","slug":"uncomplicating-spf-dkim-dmarc","status":"publish","type":"post","link":"https:\/\/ccbtechnology.com\/uncomplicating-spf-dkim-dmarc\/","title":{"rendered":"Email Security: Uncomplicating SPF, DKIM and DMARC"},"content":{"rendered":"\n<p>Imagine standing outside of your business, or any larger office you\u2019ve been to.&nbsp;From the moment you walk through the front door, there are visible measures to keep the building secure: a receptionist, visitor check-in, ID badges, cameras, you name it.&nbsp;Email security works the same way.&nbsp;When an email arrives at your mail server, you need to have similar measures available to prevent unauthorized \u201cvisitors\u201d from sneaking in. This is ultimately the purpose of SPF, DKIM and DMARC.<\/p>\n\n\n\n<p>Here\u2019s the most important part of this article &#8211; you\u2019re not behind on this topic.&nbsp;It doesn\u2019t matter if you\u2019re a leader in your organization who makes policy decisions, or if this morning was the first time that you\u2019ve ever checked an email inbox.&nbsp;Everyone has issues understanding email security; especially when it comes to SPF, DKIM and DMARC.&nbsp;That being said, now is the time to learn.<br><br>As <span style=\"box-sizing: border-box; margin: 0px; padding: 0px;\">engineers at CCB, my peers and I have worked with many companies to help harden the security in their email environments. It wasn\u2019t until the&nbsp;<a href=\"https:\/\/www.securitymagazine.com\/articles\/100687-the-last-six-months-shows-a-341-increase-in-malicious-emails\" target=\"_blank\">massive uptick in phishing attempts<\/a>&nbsp;and the&nbsp;<a href=\"https:\/\/www.proofpoint.com\/us\/blog\/email-and-cloud-threats\/google-and-yahoo-set-new-email-authentication-requirements\" target=\"_blank\">recent DMARC requirements with Google and Yahoo<\/a>&nbsp;that the d<\/span>rive for these tools changed.&nbsp;<br><br>We went from recommending these tools to our clients to working with new companies that can\u2019t function because they\u2019re forced to utilize these tools and don\u2019t understand the information their vendors are asking them to incorporate!<br><br>But there was still one issue.&nbsp;The topic is very technical, yet businesses still need to understand it.&nbsp;Why?&nbsp;Because there\u2019s a high likelihood that they will need to be updated or reconfigured as their business evolves.<br><br>So, let&#8217;s assume that you\u2019re non-technical and want to understand what SPF, DKIM and DMARC are and what they actually do.<br><br><strong>It\u2019s simple &#8211; you just need to secure your corporate office!<\/strong> (not literally, although that\u2019s a great idea as well\u2026)<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-spf-sender-policy-framework\">SPF (Sender Policy Framework)<\/h2>\n\n\n\n<p><br>In our analogy, SPF is your receptionist.&nbsp;When a visitor enters the building, the receptionist is there to identify who they are and whether or not they should be in the building.&nbsp;Let\u2019s say they look at a list of meetings for the day to find out which visitors are expected to show up.&nbsp;That list is the SPF record.&nbsp;If the visitor is expected, they are given a badge and allowed to go to their meeting.&nbsp;If the visitor isn\u2019t expected, no entry is allowed!<br><br>When it comes to your email, SPF looks at the background information of the incoming email and compares it to a record (list) of allowed visitors.&nbsp;If the server used to send the visiting email is on the authorized list, the email is marked with an SPF Pass!&nbsp;If it isn\u2019t an expected visitor, the email is marked with an SPF Fail.&nbsp;<br><br><a><strong>This is the main tool that needs to be updated regularly.<\/strong><\/a>&nbsp;Let\u2019s say you start using a new marketing company that sends emails for you.&nbsp;When one of your customers receives an email from that company using your email address, their server checks your SPF record to make sure that it\u2019s an expected sender.&nbsp;If it isn\u2019t, the email is marked with an SPF Fail.<a href=\"#_msocom_1\">[HS1]<\/a>&nbsp;<\/p>\n\n\n\n<p>We\u2019ll talk more about what the pass or fail means in the DMARC area.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-dkim-domainkeys-identified-mail\">DKIM (DomainKeys Identified Mail)<\/h2>\n\n\n\n<p><br>Now that the visitor is past the lobby and has their badge, they\u2019re free to go to their meeting.&nbsp;If someone in the halls questions them to see whether or not they should be there, they can present their ID badge for verification.&nbsp;That badge is DKIM.<br><br>DKIM adds a unique digital \u201cbadge\u201d to every outgoing email, called a \u201csignature\u201d.&nbsp;<br><br>Now let\u2019s take a page out of a spy book quickly and imagine the visitor, halfway down the hall, ducks into a doorway and changes the name on their badge to try and impersonate one of their competitors.&nbsp;They hurry to the meeting, but once they arrive, they find out they need to swipe their badge.&nbsp;They swipe their badge but get pulled aside when their name doesn\u2019t match the information in the system.<br><br>With email, DKIM looks at the contents of a message and gives it the signature described above.&nbsp;When that email is received, the server checks the email to make sure that while it was in transit (\u201cwalking the halls\u201d), the content wasn\u2019t changed.&nbsp;If the content is identical, it marks the email with a DKIM Pass.&nbsp;If it was edited in any way after it was sent, it will be marked with a DKIM Fail.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-dmarc-domain-based-message-authentication-reporting-and-conformance\">DMARC (Domain-based Message Authentication, Reporting, and Conformance)<\/h2>\n\n\n\n<p><br>In a well-oiled corporate environment, there may be security rules that define what to do in the event that an unexpected visitor shows up, or you find someone wandering your halls without proper credentials.&nbsp;Security might escort them out of the building right away, or maybe they\u2019re taken to a holding area for questioning.&nbsp;This is the function of DMARC.<br><br>DMARC is the overarching policy that tells receiving servers what to do if an incoming email fails SPF and DKIM.&nbsp;Should the server block the email? Should it be quarantined for review?&nbsp;Or should it turn a blind eye and deliver it anyway? (and let the meeting attendees deal with figuring out if the visitor is legitimate or not.)<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-in-review\">In Review:<\/h2>\n\n\n\n<p><strong>SPF (Sender Policy Framework)<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Verifies the sender&#8217;s IP address against a list of authorized senders<\/li>\n\n\n\n<li>Ensures that only authorized servers can send emails from a domain<\/li>\n<\/ul>\n\n\n\n<p><strong>DKIM (DomainKeys Identified Mail)<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Digitally signs and authenticates email messages<\/li>\n\n\n\n<li>Confirms that messages haven&#8217;t been tampered with in transit<\/li>\n<\/ul>\n\n\n\n<p><strong>DMARC (Domain-based Message Authentication, Reporting, and Conformance)<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Determines how to respond to emails that fail SPF or DKIM authentication<\/li>\n\n\n\n<li>Helps domains address domain spoofing and phishing attacks<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-that-s-all\">That\u2019s all<\/h2>\n\n\n\n<p>Securing an office building is a continual process. You need to be able to welcome your visitors while simultaneously keeping intruders out of your halls.&nbsp;The same principles apply to your email environment.&nbsp;<\/p>\n\n\n\n<p>SPF, DKIM and DMARC coupled with legitimate training to identify malicious emails are the number one way to keep your company&#8217;s information safe and under your control. I hope that now, understanding what they are is no longer a roadblock and the only thing left to do is to make sure that they are set up in your environment too!<\/p>\n\n\n\n<p>Email security is crucial! <a href=\"https:\/\/ccbtechnology.com\/contact-us\/\">Consult<\/a> our experts and discover how we can help you strengthen your organization&#8217;s security.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><a id=\"_msocom_1\"><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Imagine standing outside of your business, or any larger office you\u2019ve been to.&nbsp;From the moment you walk through the front door, there are visible measures [&hellip;]<\/p>\n","protected":false},"author":17,"featured_media":175055,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"content-type":"","footnotes":""},"categories":[7],"tags":[],"class_list":["post-174984","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-security"],"acf":[],"_links":{"self":[{"href":"https:\/\/ccbtechnology.com\/wp-json\/wp\/v2\/posts\/174984","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ccbtechnology.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ccbtechnology.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ccbtechnology.com\/wp-json\/wp\/v2\/users\/17"}],"replies":[{"embeddable":true,"href":"https:\/\/ccbtechnology.com\/wp-json\/wp\/v2\/comments?post=174984"}],"version-history":[{"count":0,"href":"https:\/\/ccbtechnology.com\/wp-json\/wp\/v2\/posts\/174984\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ccbtechnology.com\/wp-json\/wp\/v2\/media\/175055"}],"wp:attachment":[{"href":"https:\/\/ccbtechnology.com\/wp-json\/wp\/v2\/media?parent=174984"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ccbtechnology.com\/wp-json\/wp\/v2\/categories?post=174984"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ccbtechnology.com\/wp-json\/wp\/v2\/tags?post=174984"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}