{"id":3913,"date":"2019-02-28T09:16:51","date_gmt":"2019-02-28T09:16:51","guid":{"rendered":"https:\/\/www.icdsoft.com\/blog\/?p=3913"},"modified":"2026-03-19T08:15:09","modified_gmt":"2026-03-19T08:15:09","slug":"email-authentication-gmail","status":"publish","type":"post","link":"https:\/\/www.icdsoft.com\/blog\/email-authentication-gmail\/","title":{"rendered":"DKIM and SPF Email Authentication"},"content":{"rendered":"\n<p>Recently, Google and some other email service providers started rejecting messages due to failed authentication checks. In this article, we will explain why these problems occur, and how to resolve them.<\/p>\n\n\n\n<p>In order to understand the issue, you will first need to know what <u><em>Email Authentication <\/em><\/u>is. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"mce_2\">What is Email Authentication?<\/h2>\n\n\n\n<div class=\"wp-block-columns has-2-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p>When most people hear about Email Authentication, they think about their email user name and password. However, the <em>Email Authentication<\/em> we are referring to is a little different. <em>Email Authentication<\/em> (or Validation) refers to a number of technologies email operators use to verify the identity of the sending mail server of an email message. The original Simple Mail Transfer Protocol (the set of commands servers use to transfer emails; better known as just SMTP)  does not have any such features (it was designed in 1982 after all). <\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p class=\"has-regular-font-size\"><strong>SMTP error messages are very cryptic:<\/strong><\/p>\n\n\n\n<p class=\"has-small-font-size\">550-5.7.1 This message does not have authentication information or fails to pass  authentication checks. To best protect our users from spam, the message has been blocked. Please visit<br>https:\/\/support.google.com\/mail\/answer\/81126#authentication for more information. d16si9512682pgi.148 - gsmtp <\/p>\n\n\n\n<p class=\"grey-message\">At <strong><a rel=\"noreferrer noopener\" aria-label=\"ICDSoft  (opens in a new tab)\" href=\"https:\/\/www.icdsoft.com\" target=\"_blank\">ICDSoft <\/a><\/strong>we don't expect our customers to understand them. That's why we have <u>24\/7 Support with 15-minute Response Guarantee.<\/u><\/p>\n<\/div>\n<\/div>\n\n\n\n<p>There are two main technologies used for Email Authentication:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>SPF <\/strong>- Sender Policy Framework<\/li><li><strong>DKIM <\/strong>- DomainKeys Identified Mail<\/li><\/ul>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"mce_7\">How does Email Authentication Work?<\/h2>\n\n\n\n<p><strong>SPF<\/strong> and <strong>DKIM<\/strong> use slightly different approaches. They both use <strong>DNS<\/strong> records. However, the records give away different information. When a server receives an email, it checks these records. Based on the results, the server can determine if the email was sent by an authenticated server or not.<\/p>\n\n\n\n<p>The Spam filters we use at <strong><a rel=\"noreferrer noopener\" aria-label=\"ICDSoft  (opens in a new tab)\" href=\"https:\/\/www.icdsoft.com\" target=\"_blank\">ICDSoft <\/a><\/strong>use both of these techniques in order to improve spam recognition and classification.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">SPF<\/h3>\n\n\n\n<p><strong>SPF <\/strong>stands for <em>Sender Policy Framework<\/em>.  The SPF DNS record specifies the allowed sending (<strong>SMTP<\/strong>) servers for the domain name. When you use <strong>SPF<\/strong>, you can list many different <strong>SMTP <\/strong>servers without any configuration needed on the <strong>SMTP <\/strong>server itself. The final part of the <strong>SPF<\/strong> record (<em>~all<\/em>) specifies the way unlisted servers must be treated. In the example record below, \"<em>~all<\/em>\" means \"<strong>SOFTFAIL<\/strong>\". Most mail providers will flag this message but not reject it. If you want strict checking, you can use \"<em>-all<\/em>\". Further details about the <strong>SPF<\/strong> specification can be found on the <a rel=\"noreferrer noopener\" aria-label=\"WikiPedia page (opens in a new tab)\" href=\"https:\/\/en.wikipedia.org\/wiki\/Sender_Policy_Framework#Mechanisms\" target=\"_blank\">Wikipedia page<\/a>:<font color=\"#191e23\"><span style=\"background-color: rgb(232, 234, 235);\"><\/font><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>SPF records look like this: <\/strong><br>v=spf1 a mx include:smtp-spf.someserver.com ~all <\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">The SPF Process:<\/h4>\n\n\n\n<p>Here is how <strong>SPF<\/strong> works:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"https:\/\/www.icdsoft.com\/blog\/wp-content\/uploads\/2019\/02\/SPF.jpg\"><img decoding=\"async\" width=\"1024\" height=\"437\" data-src=\"https:\/\/www.icdsoft.com\/blog\/wp-content\/uploads\/2019\/02\/SPF-1024x437.jpg\" alt=\"SPF Email Authentication in action\" class=\"wp-image-3938 lazyload\" data-srcset=\"https:\/\/www.icdsoft.com\/blog\/wp-content\/uploads\/2019\/02\/SPF-1024x437.jpg 1024w, https:\/\/www.icdsoft.com\/blog\/wp-content\/uploads\/2019\/02\/SPF-300x128.jpg 300w, https:\/\/www.icdsoft.com\/blog\/wp-content\/uploads\/2019\/02\/SPF-768x328.jpg 768w, https:\/\/www.icdsoft.com\/blog\/wp-content\/uploads\/2019\/02\/SPF.jpg 1510w\" data-sizes=\"(max-width: 1024px) 100vw, 1024px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1024px; --smush-placeholder-aspect-ratio: 1024\/437;\" \/><\/a><figcaption>SPF Email Authentication in action<\/figcaption><\/figure><\/div>\n\n\n\n<p><strong>SPF<\/strong> works only if the recipient server checks for <strong>SPF<\/strong> <u>Email Authentication<\/u>. The check is basic - when the server receives an email, it checks if the sending server's IP address is listed in the <strong>SPF DNS <\/strong>record of the sender's domain. Based on the result of this check and the failure policy (<em>~all<\/em>), the server determines if the message should be delivered, rejected, or classified as spam. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\">DKIM \/ DomainKeys<\/h3>\n\n\n\n<div class=\"wp-block-columns has-2-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p><strong>DKIM (<\/strong><em>DomainKeys Identified Mail<\/em>) uses public key cryptography to sign messages. The downside of this method is that it requires changes to the mail server software, as opposed to <strong>SPF<\/strong>, which requires publishing a single <strong>DNS <\/strong>record. This requires the cooperation of your email administrator. <\/p>\n\n\n\n<p><\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<div style=\"background-color:#3373dc;text-align:center\" class=\"wp-block-genesis-blocks-gb-cta gb-block-cta\"><div class=\"gb-cta-content\"><h2 class=\"gb-cta-title gb-font-size-32\" style=\"color:#eeeeee\">At ICDSoft DKIM is available out of the box<\/h2><div class=\"gb-cta-text gb-font-size-32\" style=\"color:#eeeeee\"><p>Use a hosting provider that understands <u>E-mail<\/u><\/p><\/div><\/div><div class=\"gb-cta-button\"><a href=\"https:\/\/www.icdsoft.com\" target=\"_self\" rel=\"noopener noreferrer\" class=\"gb-button gb-button-shape-rounded gb-button-size-medium\" style=\"color:#ffffff;background-color:#F7812B\">Get Your Account Here >><\/a><\/div><\/div>\n<\/div>\n<\/div>\n\n\n\n<p>\n\nEach authenticated sending server must sign every email they send with a <em>Private Key<\/em>. This <em>Private Key <\/em>has a matching <em>Public Key <\/em>which is published in the <strong>DKIM DNS <\/strong>record. Recipient mail servers use this <em>Public Key <\/em>to check if the message was sent from an authenticated server (as only authenticated servers have the correct private key). \n\n<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>DKIM records look like this: <\/strong><br><br>v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDTYf0C\/D2g0vFGjYWb5gzZ2WDnBHiq++iHkCyQ1upCSokENuDAgRfAiWrW1M1Ge6dbZoI5RPzChmKe7PMqZf7fzj0+dvn6VP\/\/r\/+cZd6nmMh65cN\/iwwl7ncP6rngI8B4cfmgPfjU0eY46F511mThvAQ4TLvj7Han5qMZrG5FzwIDAQAB  <\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">The DKIM Process<\/h4>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"https:\/\/www.icdsoft.com\/blog\/wp-content\/uploads\/2019\/02\/DKIM2.jpg\"><img decoding=\"async\" width=\"1024\" height=\"379\" data-src=\"https:\/\/www.icdsoft.com\/blog\/wp-content\/uploads\/2019\/02\/DKIM2-1024x379.jpg\" alt=\"DKIM Email Authentication\" class=\"wp-image-3944 lazyload\" data-srcset=\"https:\/\/www.icdsoft.com\/blog\/wp-content\/uploads\/2019\/02\/DKIM2-1024x379.jpg 1024w, https:\/\/www.icdsoft.com\/blog\/wp-content\/uploads\/2019\/02\/DKIM2-300x111.jpg 300w, https:\/\/www.icdsoft.com\/blog\/wp-content\/uploads\/2019\/02\/DKIM2-768x284.jpg 768w, https:\/\/www.icdsoft.com\/blog\/wp-content\/uploads\/2019\/02\/DKIM2.jpg 1520w\" data-sizes=\"(max-width: 1024px) 100vw, 1024px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1024px; --smush-placeholder-aspect-ratio: 1024\/379;\" \/><\/a><figcaption>DKIM Email Authentication in action<\/figcaption><\/figure><\/div>\n\n\n\n<p><strong>DKIM <\/strong>still relies on the recipient server to check the validity of a message. The receiving server, if it is <strong>DKIM <\/strong>enabled, will check the message headers for the message signature and verify it against the Public Key published in the <strong>DKIM DNS <\/strong>record. If the message fails, it is up to the recipient server to classify the message accordingly. <\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Why Does Email Get Blocked by Gmail All Of A Sudden?<\/h2>\n\n\n\n<p>Google is the largest email provider today. Over a billion users use their Gmail and G Suite services. Their spam protection is really tight, but this has drawbacks as well. Many users struggle to get some legitimate emails out of their Spam folders. <\/p>\n\n\n\n<p>Google recently updated their spam filter and started blocking messages without Email Authentication. We are not aware about any announcement of this change. It caught many Gmail users unprepared and asking for help.<\/p>\n\n\n\n<div class=\"wp-block-columns has-2-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p>While the change may be beneficial overall, the power Gmail has over the email system raises concerns. When Gmail makes a change to their policies, all email servers must comply, even if they do not agree with the changes. In this case, however, we think that the measures Google is pushing for are beneficial for all, and we support this change. <\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<div style=\"background-color:#3373dc;text-align:center\" class=\"wp-block-genesis-blocks-gb-cta gb-block-cta\"><div class=\"gb-cta-content\"><h2 class=\"gb-cta-title gb-font-size-32\" style=\"color:#eeeeee\">At <strong>ICDSoft <\/strong>You Have <u>Control<\/u><\/h2><div class=\"gb-cta-text gb-font-size-32\" style=\"color:#eeeeee\"><p>Use a Provider That Respects Your Choice<\/p><\/div><\/div><div class=\"gb-cta-button\"><a href=\"https:\/\/www.icdsoft.com\" target=\"_self\" rel=\"noopener noreferrer\" class=\"gb-button gb-button-shape-rounded gb-button-size-medium\" style=\"color:#ffffff;background-color:#F7812B\">Get Your Account Here >><\/a><\/div><\/div>\n<\/div>\n<\/div>\n\n\n\n<p>In 2014,  a similar unannounced policy change by another big player (Yahoo) caused millions of mailing lists to stop working. This effectively broke all mailing list communication with these large email providers. You can check more at: <a href=\"https:\/\/www.pcworld.com\/article\/2141120\/yahoo-email-antispoofing-policy-breaks-mailing-lists.html\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\">Yahoo email anti-spoofing policy breaks mailing lists.<\/a><\/p>\n\n\n\n<p><strong><a rel=\"noreferrer noopener\" aria-label=\"ICDSoft (opens in a new tab)\" href=\"https:\/\/www.icdsoft.com\" target=\"_blank\">ICDSoft<\/a><\/strong> customers were affected as well, and we immediately applied a patch to our mailing list software which resolved the issue. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How Do I stop Gmail From Blocking Emails?<\/h2>\n\n\n\n<p>In short, you simply need to turn on email authentication for your account. Every new <strong style=\"text-decoration-line: underline;\"><a rel=\"noreferrer noopener\" aria-label=\"ICDSoft  (opens in a new tab)\" href=\"https:\/\/www.icdsoft.com\/\" target=\"_blank\">ICDSoft<\/a><\/strong><a rel=\"noreferrer noopener\" aria-label=\"ICDSoft  (opens in a new tab)\" href=\"https:\/\/www.icdsoft.com\/\" target=\"_blank\"> <\/a>customer gets <strong>DKIM <\/strong>and <strong>SPF <\/strong>enabled by default. Combined with our generous disk space offerings, advanced anti-spam protection and low prices, this makes us a preferable choice for many email users. And we also offer <strong>Free Migration<\/strong> with every account (which <u>includes<\/u> Email).<\/p>\n\n\n\n<p>If you are an existing client, to enable <strong>DKIM <\/strong>and <strong>SPF<\/strong>, navigate to the <strong>DNS Manager<\/strong> in the online Control Panel, and click the \"Enable\" buttons. <\/p>\n\n\n\n<figure class=\"wp-block-image alignwide\"><a href=\"https:\/\/www.icdsoft.com\/blog\/wp-content\/uploads\/2019\/02\/mailprotectioncp.png\"><img decoding=\"async\" width=\"717\" height=\"142\" data-src=\"https:\/\/www.icdsoft.com\/blog\/wp-content\/uploads\/2019\/02\/mailprotectioncp.png\" alt=\"Enabling email authentication\" class=\"wp-image-3946 lazyload\" data-srcset=\"https:\/\/www.icdsoft.com\/blog\/wp-content\/uploads\/2019\/02\/mailprotectioncp.png 717w, https:\/\/www.icdsoft.com\/blog\/wp-content\/uploads\/2019\/02\/mailprotectioncp-300x59.png 300w\" data-sizes=\"(max-width: 717px) 100vw, 717px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 717px; --smush-placeholder-aspect-ratio: 717\/142;\" \/><\/a><figcaption>Enabling email authentication<\/figcaption><\/figure>\n\n\n\n<p>Most other service providers should have a similar easy way to enable support for these two technologies. If such support isn't available, you can use some online <strong>SPF<\/strong> and <strong>DKIM<\/strong> record generators, like <a rel=\"noreferrer noopener\" aria-label=\"https:\/\/mxtoolbox.com\/SPFRecordGenerator.aspx (opens in a new tab)\" href=\"https:\/\/mxtoolbox.com\/SPFRecordGenerator.aspx\" target=\"_blank\">https:\/\/mxtoolbox.com\/SPFRecordGenerator.aspx<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Google started rejecting messages due to failed authentication checks. Read our article for more information and a solution.<\/p>\n","protected":false},"author":1,"featured_media":4714,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"advgb_blocks_editor_width":"","advgb_blocks_columns_visual_guide":"","footnotes":""},"categories":[6,5],"tags":[],"class_list":{"0":"post-3913","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-security","8":"category-tech"},"author_meta":{"display_name":"ICDSoft","author_link":"https:\/\/www.icdsoft.com\/blog\/author\/icdsoft\/"},"featured_img":"https:\/\/www.icdsoft.com\/blog\/wp-content\/uploads\/2019\/02\/gmail-error-571-300x140.png","featured_image_src":"https:\/\/www.icdsoft.com\/blog\/wp-content\/uploads\/2019\/02\/gmail-error-571.png","featured_image_src_square":"https:\/\/www.icdsoft.com\/blog\/wp-content\/uploads\/2019\/02\/gmail-error-571.png","author_info":{"display_name":"ICDSoft","author_link":"https:\/\/www.icdsoft.com\/blog\/author\/icdsoft\/"},"coauthors":[],"tax_additional":{"categories":{"linked":["<a href=\"https:\/\/www.icdsoft.com\/blog\/category\/security\/\" class=\"advgb-post-tax-term\">Security<\/a>","<a href=\"https:\/\/www.icdsoft.com\/blog\/category\/tech\/\" class=\"advgb-post-tax-term\">Technology<\/a>"],"unlinked":["<span class=\"advgb-post-tax-term\">Security<\/span>","<span class=\"advgb-post-tax-term\">Technology<\/span>"]}},"comment_count":"0","relative_dates":{"created":"Posted 7 years ago","modified":"Updated 4 months ago"},"absolute_dates":{"created":"Posted on February 28, 2019","modified":"Updated on March 19, 2026"},"absolute_dates_time":{"created":"Posted on February 28, 2019 9:16 am","modified":"Updated on March 19, 2026 8:15 am"},"featured_img_caption":"Failed email authentication check at Gmail","series_order":"","_links":{"self":[{"href":"https:\/\/www.icdsoft.com\/blog\/wp-json\/wp\/v2\/posts\/3913","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.icdsoft.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.icdsoft.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.icdsoft.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.icdsoft.com\/blog\/wp-json\/wp\/v2\/comments?post=3913"}],"version-history":[{"count":86,"href":"https:\/\/www.icdsoft.com\/blog\/wp-json\/wp\/v2\/posts\/3913\/revisions"}],"predecessor-version":[{"id":14924,"href":"https:\/\/www.icdsoft.com\/blog\/wp-json\/wp\/v2\/posts\/3913\/revisions\/14924"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.icdsoft.com\/blog\/wp-json\/wp\/v2\/media\/4714"}],"wp:attachment":[{"href":"https:\/\/www.icdsoft.com\/blog\/wp-json\/wp\/v2\/media?parent=3913"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.icdsoft.com\/blog\/wp-json\/wp\/v2\/categories?post=3913"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.icdsoft.com\/blog\/wp-json\/wp\/v2\/tags?post=3913"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}