{"id":1913,"date":"2021-05-31T15:41:29","date_gmt":"2021-05-31T12:41:29","guid":{"rendered":"https:\/\/www.scalahosting.com\/kb\/?p=1913"},"modified":"2023-03-14T14:00:05","modified_gmt":"2023-03-14T12:00:05","slug":"add-an-spf-record","status":"publish","type":"post","link":"https:\/\/www.scalahosting.com\/kb\/add-an-spf-record\/","title":{"rendered":"Add an SPF record"},"content":{"rendered":"\n<p><span style=\"font-weight: 400;\">SPF stands for<\/span><b> Sender Policy Framework,<\/b><span style=\"font-weight: 400;\"> and it&#8217;s one of the <\/span><b>most basic protections<\/b><span style=\"font-weight: 400;\"> we have against email spoofing attacks. You can implement it with a few simple steps, and you don&#8217;t need a budget or additional services to enable it, so it makes no sense to ignore it.&nbsp;<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">Let&#8217;s see how it works and what you need to do to set it up on your <\/span><b>ScalaHosting account. <\/b><span style=\"font-weight: 400;\">Modern email communication is supported by the<\/span><b> Simple Mail Transfer Protocol<\/b><span style=\"font-weight: 400;\"> (SMTP) \u2013 a protocol that allows computers and servers to send emails claiming to be from any source address.<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">This wasn&#8217;t too much of a problem back in the <\/span><b>1970s<\/b><span style=\"font-weight: 400;\"> when <\/span><a href=\"https:\/\/www.scalahosting.com\/kb\/smtp-ports\/\"><b>SMTP<\/b><\/a><span style=\"font-weight: 400;\"> was developed, but it has since been exploited by phishers and spammers trying to fool victims into opening malicious messages and clicking phishing links &#8211; <\/span><b>SPF was invented to stop this.<\/b><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">Suppose you have an online service running under the domain example.com, and a hacker is trying to impersonate you. Unfortunately, it&#8217;s<\/span><b> trivially easy to forge an email<\/b><span style=\"font-weight: 400;\"> that has admin@example.com set as the sender. However, SPF gives email providers a way of checking whether<\/span><b> the source is legitimate.<\/b><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">Before accepting the email, the recipient&#8217;s provider will query example.com&#8217;s <\/span><a href=\"https:\/\/www.scalahosting.com\/kb\/manage-dns-zone-files\/\"><b>DNS zone.<\/b><\/a><span style=\"font-weight: 400;\"> An SPF record in the DNS zone file<\/span><b> contains the IP address of example.com&#8217;s mail server.&nbsp;<\/b><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">If an email is coming from an @example.com address, but the IP doesn&#8217;t match the one in the SPF record, then the<\/span><b> sender&#8217;s address has been spoofed, and the message gets blocked. <\/b><span style=\"font-weight: 400;\">To enable <\/span><a href=\"https:\/\/dmarcian.com\/spf-syntax-table\/\" rel=\"nofollow\"><b>SPF<\/b><\/a><span style=\"font-weight: 400;\"> on your domain, you need to<\/span><b> add a TXT record<\/b><span style=\"font-weight: 400;\"> to its DNS zone file.&nbsp;<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">SPanel and cPanel, the control panels you use to <\/span><b>manage ScalaHosting&#8217;s shared and <a href=\"https:\/\/www.scalahosting.com\/managed-cloud-hosting.html\">managed VPS<\/a> hosting plans<\/b><span style=\"font-weight: 400;\">, let you edit your domain&#8217;s DNS zone through an easy-to-use graphical interface. Here are the exact steps you need to take.<\/span><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><b>SPanel<\/b><\/h2>\n\n\n\n<p><span style=\"font-weight: 400;\">By default, <\/span><a href=\"https:\/\/www.scalahosting.com\/spanel.html\"><b>SPanel<\/b><\/a><span style=\"font-weight: 400;\"> creates a new SPF record for every domain you add to it. You can find it in the <\/span><b>DNS Editor<\/b><span style=\"font-weight: 400;\"> available on the <\/span><b>User Interface&#8217;s homepage.<\/b><span style=\"font-weight: 400;\"> It mandates that emails for your domain should only come from your ScalaHosting virtual server.&nbsp;<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">If you want to use another provider for your outgoing messages, you can<\/span><b> modify the SPF record<\/b><span style=\"font-weight: 400;\"> with the <\/span><b>Edit<\/b><span style=\"font-weight: 400;\"> button.<\/span><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"1269\" height=\"601\" src=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/05\/spf-record-spanel.png\" alt=\"Add an SPF record, SPanel\" class=\"wp-image-1917\" srcset=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/05\/spf-record-spanel.png 1269w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/05\/spf-record-spanel-300x142.png 300w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/05\/spf-record-spanel-1024x485.png 1024w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/05\/spf-record-spanel-768x364.png 768w\" sizes=\"(max-width: 361px) 660px, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 910px, 1140px\" \/><\/figure>\n<\/div>\n\n\n<p><span style=\"font-weight: 400;\">If you need to<\/span><b> add another record, <\/b><span style=\"font-weight: 400;\">you can use the form above the list of existing ones.<\/span><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"1266\" height=\"329\" src=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/05\/add-record-spanel.png\" alt=\"Add an SPF record, SPanel 2\" class=\"wp-image-1916\" srcset=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/05\/add-record-spanel.png 1266w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/05\/add-record-spanel-300x78.png 300w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/05\/add-record-spanel-1024x266.png 1024w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/05\/add-record-spanel-768x200.png 768w\" sizes=\"(max-width: 361px) 660px, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 910px, 1140px\" \/><\/figure>\n<\/div>\n\n\n<p><span style=\"font-weight: 400;\">Make sure you<\/span><b> pick TXT from the Type drop-down menu<\/b><span style=\"font-weight: 400;\"> and use the correct syntax.<\/span><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><b>cPanel<\/b><\/h2>\n\n\n\n<p><span style=\"font-weight: 400;\">In <\/span><a href=\"https:\/\/www.scalahosting.com\/blog\/cloud-hosting\/\"><b>cPanel<\/b><\/a><span style=\"font-weight: 400;\">, mail-related DNS records are best managed through the <\/span><b>Email<\/b> <b>Deliverability<\/b><span style=\"font-weight: 400;\"> interface accessible via the control panel&#8217;s homepage.<\/span><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"1375\" height=\"311\" src=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/05\/email-deliverability-cpanel.png\" alt=\"Add an SPF record, cPanel\" class=\"wp-image-1915\" srcset=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/05\/email-deliverability-cpanel.png 1375w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/05\/email-deliverability-cpanel-300x68.png 300w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/05\/email-deliverability-cpanel-1024x232.png 1024w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/05\/email-deliverability-cpanel-768x174.png 768w\" sizes=\"(max-width: 361px) 660px, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 910px, 1140px\" \/><\/figure>\n<\/div>\n\n\n<p><span style=\"font-weight: 400;\">It displays a list of all the domains added to your<\/span><b> cPanel account<\/b><span style=\"font-weight: 400;\"> along with any potential problems in the <\/span><b>Email Deliverability Status <\/b><span style=\"font-weight: 400;\">column. If there are any issues with the current records, you can click the <\/span><b>Repair <\/b><span style=\"font-weight: 400;\">button to let cPanel fix them automatically.<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">Alternatively, you can use the <\/span><b>Manage<\/b><span style=\"font-weight: 400;\"> button to edit existing records and add new ones.<\/span><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"197\" height=\"52\" src=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/05\/repair-manage-spf-records-cpanel.png\" alt=\"Add an SPF record, cPanel 2\" class=\"wp-image-1914\"\/><\/figure>\n<\/div>\n\n\n<p><span style=\"font-weight: 400;\">If you happen to have any further questions, you can <\/span><b>get in touch with our technical support experts at any time.<\/b><\/p>\n","protected":false},"excerpt":{"rendered":"<p>SPF stands for Sender Policy Framework, and it&#8217;s one of the most basic protections we have against email spoofing attacks. You can implement it with a few simple steps, and you don&#8217;t need a budget or additional services to enable it, so it makes no sense to ignore it.&nbsp; Let&#8217;s see how it works and [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_seopress_robots_primary_cat":"none","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","_seopress_analysis_target_kw":"","footnotes":""},"categories":[22],"tags":[],"class_list":["post-1913","post","type-post","status-publish","format-standard","hentry","category-dns"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/posts\/1913","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/comments?post=1913"}],"version-history":[{"count":4,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/posts\/1913\/revisions"}],"predecessor-version":[{"id":5463,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/posts\/1913\/revisions\/5463"}],"wp:attachment":[{"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/media?parent=1913"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/categories?post=1913"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/tags?post=1913"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}