{"id":658,"date":"2016-09-01T07:41:28","date_gmt":"2016-09-01T06:41:28","guid":{"rendered":"https:\/\/hostinguk.net\/blog\/?p=658"},"modified":"2023-06-19T14:20:53","modified_gmt":"2023-06-19T13:20:53","slug":"what-should-my-spf-record-be","status":"publish","type":"post","link":"https:\/\/staging.hostinguk.net\/blog\/what-should-my-spf-record-be\/","title":{"rendered":"What should my SPF record be?"},"content":{"rendered":"<blockquote><p><em>&#8220;What should my <a href=\"https:\/\/en.wikipedia.org\/wiki\/Sender_Policy_Framework\">SPF<\/a> record be if I have services with Hosting UK, either <strong>shared hosting or standard email such as Silver<\/strong> and I am not having email delivered by any third parties?&#8221;<\/em><\/p><\/blockquote>\n<p>Well I am very glad you asked you have come to the right place.<\/p>\n<p>Assuming that you are happy with the broad brush of anything in your zone file, and any of your allocated email servers being allowed to send and everything else being dropped then the following should do the trick for you as a TeXT (<a href=\"https:\/\/en.wikipedia.org\/wiki\/TXT_record\">TXT<\/a>) record within your <a href=\"https:\/\/en.wikipedia.org\/wiki\/Domain_Name_System\">DNS<\/a><a href=\"https:\/\/en.wikipedia.org\/wiki\/Zone_file\"> Zone file<\/a>.<\/p>\n<p style=\"text-align: center;\">v=spf1 +mx +a include:smtpout.hostinguk.net -all<\/p>\n<p>The line in full, is going to look something a little like this:<\/p>\n<p style=\"text-align: center;\">[my.domainname.com] \u00a0 \u00a0 \u00a0 IN \u00a0 \u00a0 TXT\u00a0 \u00a0 v=spf1+mx+a include:smtpout.hostinguk.net-all<\/p>\n<p>&#8230;depending on what control panel, with who, and so on &#8211; but you get the general idea &#8211; four separate columns, or if you are properly <a href=\"https:\/\/en.wikipedia.org\/wiki\/Zone_file\">old school and configuring this in a text file<\/a> &#8211; then you WILL need quotes, there is a dot required in column one, AND you really don&#8217;t need to be reading all of this do you? No.<\/p>\n<p>The important inclusion in there is the include. This allows your SPF to work as we evolve our mail offerings without you having to make updates from time to time when mail starts bouncing. Cool huh? Yes.<\/p>\n<p>What an <a href=\"https:\/\/en.wikipedia.org\/wiki\/Sender_Policy_Framework\">SPF<\/a> does for those who are wondering why they are reading this, it controls (for mail servers that support it) who is allowed to send for a specific domain. It is a list of who is allowed to send as your domain (<em>people <strong>will<\/strong> <a href=\"https:\/\/en.wikipedia.org\/wiki\/E-mail_spoofing\">pretend to be you<\/a> &#8211; <a href=\"https:\/\/staging.hostinguk.net\/blog\/wp-content\/uploads\/2016\/08\/Kittens.jpg\">trust us<\/a><\/em>) &#8211; the parts of the example above show the version, that A records are allowed to send, that MX records are allowed to send (your email servers), anything that we include in our own one, and the key is the -all at the end, specifically the minus&#8230; which means that anything that doesn&#8217;t meet this requirement is denied &#8211; and is <a href=\"https:\/\/en.wikipedia.org\/wiki\/Bounce_message\">bounced<\/a> back to the sender with a message citing a 5xx code, and a message that mentions SPF or <a href=\"https:\/\/en.wikipedia.org\/wiki\/Sender_Policy_Framework\">Sender Policy Framework<\/a>.<\/p>\n<p>So.. there we have it.<\/p>\n<p>Happy &#8216;mailing people.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#8220;What should my SPF record be if I have services with Hosting UK, either shared hosting or standard email such as Silver and I am not having email delivered by any third parties?&#8221; Well I am very glad you asked you have come to the right place. Assuming that you are happy with the broad&#8230; <a class=\"moretag\" href=\"https:\/\/staging.hostinguk.net\/blog\/what-should-my-spf-record-be\/\">Keep Reading<\/a><\/p>\n","protected":false},"author":6,"featured_media":659,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[13],"tags":[66,23,68,69,65,67],"class_list":["post-658","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-support","tag-dns","tag-email","tag-mx","tag-smtp","tag-spf","tag-txt"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>What should my SPF record be? - Hosting UK<\/title>\n<meta name=\"robots\" content=\"noindex, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What should my SPF record be? - Hosting UK\" \/>\n<meta property=\"og:description\" content=\"&#8220;What should my SPF record be if I have services with Hosting UK, either shared hosting or standard email such as Silver and I am not having email delivered by any third parties?&#8221; Well I am very glad you asked you have come to the right place. Assuming that you are happy with the broad... Keep Reading\" \/>\n<meta property=\"og:url\" content=\"https:\/\/staging.hostinguk.net\/blog\/what-should-my-spf-record-be\/\" \/>\n<meta property=\"og:site_name\" content=\"Hosting UK\" \/>\n<meta property=\"article:published_time\" content=\"2016-09-01T06:41:28+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-06-19T13:20:53+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/staging.hostinguk.net\/blog\/wp-content\/uploads\/2016\/09\/smtp-envelope.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"954\" \/>\n\t<meta property=\"og:image:height\" content=\"954\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Anthony Hogbin\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Anthony Hogbin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/staging.hostinguk.net\/blog\/what-should-my-spf-record-be\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/staging.hostinguk.net\/blog\/what-should-my-spf-record-be\/\"},\"author\":{\"name\":\"Anthony Hogbin\",\"@id\":\"https:\/\/staging.hostinguk.net\/blog\/#\/schema\/person\/e7707cd2857ef38b31f396b1bf878707\"},\"headline\":\"What should my SPF record be?\",\"datePublished\":\"2016-09-01T06:41:28+00:00\",\"dateModified\":\"2023-06-19T13:20:53+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/staging.hostinguk.net\/blog\/what-should-my-spf-record-be\/\"},\"wordCount\":384,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/staging.hostinguk.net\/blog\/what-should-my-spf-record-be\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/staging.hostinguk.net\/blog\/wp-content\/uploads\/2016\/09\/smtp-envelope.jpg\",\"keywords\":[\"dns\",\"Email\",\"mx\",\"smtp\",\"spf\",\"txt\"],\"articleSection\":[\"Support\"],\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/staging.hostinguk.net\/blog\/what-should-my-spf-record-be\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/staging.hostinguk.net\/blog\/what-should-my-spf-record-be\/\",\"url\":\"https:\/\/staging.hostinguk.net\/blog\/what-should-my-spf-record-be\/\",\"name\":\"What should my SPF record be? - Hosting UK\",\"isPartOf\":{\"@id\":\"https:\/\/staging.hostinguk.net\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/staging.hostinguk.net\/blog\/what-should-my-spf-record-be\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/staging.hostinguk.net\/blog\/what-should-my-spf-record-be\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/staging.hostinguk.net\/blog\/wp-content\/uploads\/2016\/09\/smtp-envelope.jpg\",\"datePublished\":\"2016-09-01T06:41:28+00:00\",\"dateModified\":\"2023-06-19T13:20:53+00:00\",\"author\":{\"@id\":\"https:\/\/staging.hostinguk.net\/blog\/#\/schema\/person\/e7707cd2857ef38b31f396b1bf878707\"},\"breadcrumb\":{\"@id\":\"https:\/\/staging.hostinguk.net\/blog\/what-should-my-spf-record-be\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/staging.hostinguk.net\/blog\/what-should-my-spf-record-be\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/staging.hostinguk.net\/blog\/what-should-my-spf-record-be\/#primaryimage\",\"url\":\"https:\/\/staging.hostinguk.net\/blog\/wp-content\/uploads\/2016\/09\/smtp-envelope.jpg\",\"contentUrl\":\"https:\/\/staging.hostinguk.net\/blog\/wp-content\/uploads\/2016\/09\/smtp-envelope.jpg\",\"width\":954,\"height\":954},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/staging.hostinguk.net\/blog\/what-should-my-spf-record-be\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/staging.hostinguk.net\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"What should my SPF record be?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/staging.hostinguk.net\/blog\/#website\",\"url\":\"https:\/\/staging.hostinguk.net\/blog\/\",\"name\":\"Hosting UK\",\"description\":\"Hosting UK | Domain names | Web hosting | Dedicated Servers\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/staging.hostinguk.net\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/staging.hostinguk.net\/blog\/#\/schema\/person\/e7707cd2857ef38b31f396b1bf878707\",\"name\":\"Anthony Hogbin\",\"url\":\"https:\/\/staging.hostinguk.net\/blog\/author\/huk-ant\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"What should my SPF record be? - Hosting UK","robots":{"index":"noindex","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"og_locale":"en_GB","og_type":"article","og_title":"What should my SPF record be? - Hosting UK","og_description":"&#8220;What should my SPF record be if I have services with Hosting UK, either shared hosting or standard email such as Silver and I am not having email delivered by any third parties?&#8221; Well I am very glad you asked you have come to the right place. Assuming that you are happy with the broad... Keep Reading","og_url":"https:\/\/staging.hostinguk.net\/blog\/what-should-my-spf-record-be\/","og_site_name":"Hosting UK","article_published_time":"2016-09-01T06:41:28+00:00","article_modified_time":"2023-06-19T13:20:53+00:00","og_image":[{"width":954,"height":954,"url":"https:\/\/staging.hostinguk.net\/blog\/wp-content\/uploads\/2016\/09\/smtp-envelope.jpg","type":"image\/jpeg"}],"author":"Anthony Hogbin","twitter_misc":{"Written by":"Anthony Hogbin","Estimated reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/staging.hostinguk.net\/blog\/what-should-my-spf-record-be\/#article","isPartOf":{"@id":"https:\/\/staging.hostinguk.net\/blog\/what-should-my-spf-record-be\/"},"author":{"name":"Anthony Hogbin","@id":"https:\/\/staging.hostinguk.net\/blog\/#\/schema\/person\/e7707cd2857ef38b31f396b1bf878707"},"headline":"What should my SPF record be?","datePublished":"2016-09-01T06:41:28+00:00","dateModified":"2023-06-19T13:20:53+00:00","mainEntityOfPage":{"@id":"https:\/\/staging.hostinguk.net\/blog\/what-should-my-spf-record-be\/"},"wordCount":384,"commentCount":0,"image":{"@id":"https:\/\/staging.hostinguk.net\/blog\/what-should-my-spf-record-be\/#primaryimage"},"thumbnailUrl":"https:\/\/staging.hostinguk.net\/blog\/wp-content\/uploads\/2016\/09\/smtp-envelope.jpg","keywords":["dns","Email","mx","smtp","spf","txt"],"articleSection":["Support"],"inLanguage":"en-GB","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/staging.hostinguk.net\/blog\/what-should-my-spf-record-be\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/staging.hostinguk.net\/blog\/what-should-my-spf-record-be\/","url":"https:\/\/staging.hostinguk.net\/blog\/what-should-my-spf-record-be\/","name":"What should my SPF record be? - Hosting UK","isPartOf":{"@id":"https:\/\/staging.hostinguk.net\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/staging.hostinguk.net\/blog\/what-should-my-spf-record-be\/#primaryimage"},"image":{"@id":"https:\/\/staging.hostinguk.net\/blog\/what-should-my-spf-record-be\/#primaryimage"},"thumbnailUrl":"https:\/\/staging.hostinguk.net\/blog\/wp-content\/uploads\/2016\/09\/smtp-envelope.jpg","datePublished":"2016-09-01T06:41:28+00:00","dateModified":"2023-06-19T13:20:53+00:00","author":{"@id":"https:\/\/staging.hostinguk.net\/blog\/#\/schema\/person\/e7707cd2857ef38b31f396b1bf878707"},"breadcrumb":{"@id":"https:\/\/staging.hostinguk.net\/blog\/what-should-my-spf-record-be\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/staging.hostinguk.net\/blog\/what-should-my-spf-record-be\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/staging.hostinguk.net\/blog\/what-should-my-spf-record-be\/#primaryimage","url":"https:\/\/staging.hostinguk.net\/blog\/wp-content\/uploads\/2016\/09\/smtp-envelope.jpg","contentUrl":"https:\/\/staging.hostinguk.net\/blog\/wp-content\/uploads\/2016\/09\/smtp-envelope.jpg","width":954,"height":954},{"@type":"BreadcrumbList","@id":"https:\/\/staging.hostinguk.net\/blog\/what-should-my-spf-record-be\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/staging.hostinguk.net\/blog\/"},{"@type":"ListItem","position":2,"name":"What should my SPF record be?"}]},{"@type":"WebSite","@id":"https:\/\/staging.hostinguk.net\/blog\/#website","url":"https:\/\/staging.hostinguk.net\/blog\/","name":"Hosting UK","description":"Hosting UK | Domain names | Web hosting | Dedicated Servers","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/staging.hostinguk.net\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Person","@id":"https:\/\/staging.hostinguk.net\/blog\/#\/schema\/person\/e7707cd2857ef38b31f396b1bf878707","name":"Anthony Hogbin","url":"https:\/\/staging.hostinguk.net\/blog\/author\/huk-ant\/"}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/staging.hostinguk.net\/blog\/wp-content\/uploads\/2016\/09\/smtp-envelope.jpg","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p63y3g-aC","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/staging.hostinguk.net\/blog\/wp-json\/wp\/v2\/posts\/658","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/staging.hostinguk.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/staging.hostinguk.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/staging.hostinguk.net\/blog\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/staging.hostinguk.net\/blog\/wp-json\/wp\/v2\/comments?post=658"}],"version-history":[{"count":2,"href":"https:\/\/staging.hostinguk.net\/blog\/wp-json\/wp\/v2\/posts\/658\/revisions"}],"predecessor-version":[{"id":1272,"href":"https:\/\/staging.hostinguk.net\/blog\/wp-json\/wp\/v2\/posts\/658\/revisions\/1272"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/staging.hostinguk.net\/blog\/wp-json\/wp\/v2\/media\/659"}],"wp:attachment":[{"href":"https:\/\/staging.hostinguk.net\/blog\/wp-json\/wp\/v2\/media?parent=658"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/staging.hostinguk.net\/blog\/wp-json\/wp\/v2\/categories?post=658"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/staging.hostinguk.net\/blog\/wp-json\/wp\/v2\/tags?post=658"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}