{"id":30,"date":"2015-12-12T19:19:00","date_gmt":"2015-12-12T19:19:00","guid":{"rendered":"https:\/\/www.tech-and-dev.com\/blog\/2015\/12\/12\/configuring-spf-on-virtualmin\/"},"modified":"2021-02-22T01:31:13","modified_gmt":"2021-02-22T01:31:13","slug":"configuring-spf-on-virtualmin","status":"publish","type":"post","link":"https:\/\/www.tech-and-dev.com\/blog\/2015\/12\/configuring-spf-on-virtualmin.html","title":{"rendered":"Configuring SPF on Virtualmin"},"content":{"rendered":"<div dir=\"ltr\" style=\"text-align: left;\">\n<div style=\"text-align: center;\"><img decoding=\"async\" title=\"Configuring SPF in Virtualmin\" src=\"https:\/\/www.tech-and-dev.com\/blog\/wp-content\/uploads\/2021\/02\/spf-flow-main.png\" alt=\"Configuring SPF in Virtualmin\" border=\"0\" \/><\/div>\n<h2 style=\"text-align: left;\">What is SPF?<\/h2>\n<p>Sender Policy Framework (SPF) is an anti spamming technique that detects email spoofing and verify the sender&#8217;s IP address, thus allowing only specific server(s) to send on behalf of a domain.<\/p>\n<h2 style=\"text-align: left;\">Configuring SPF:<\/h2>\n<p>1- Make sure you have a valid hostname and it&#8217;s resolving to your server&#8217;s main IP.<br \/>\n2- To check or change your hostname, go to Webmin =&gt; Networking =&gt; Network Configuration =&gt; Hostname and DNS Client.<\/p>\n<div style=\"clear: both; text-align: center;\"><img loading=\"lazy\" decoding=\"async\" title=\"Virtualmin SPF\" src=\"https:\/\/www.tech-and-dev.com\/blog\/wp-content\/uploads\/2021\/02\/virtualmin-webmin-change-hostname.png\" alt=\"Virtualmin SPF\" width=\"400\" height=\"122\" border=\"0\" \/><\/div>\n<p>3- Add the below to your domain records as a SPF or TXT record.<br \/>\nv=spf1 a mx ip4:<span style=\"color: #990000;\">xxx.xxx.xxx.xxx<\/span> ~all<br \/>\nWhere <span style=\"color: #990000;\">xxx.xxx.xxx.xxx<\/span> is your server&#8217;s main IP address.<br \/>\nDo this for every domain name you have it hosted in your virtualmin.<\/p>\n<p>The below flowchart shows how SPF works:<\/p>\n<div style=\"clear: both; text-align: center;\"><a style=\"margin-left: 1em; margin-right: 1em;\" href=\"https:\/\/www.tech-and-dev.com\/blog\/wp-content\/uploads\/2021\/02\/spf-flow-main.png\">\u00a0<\/a><\/div>\n<p>&nbsp;<\/p>\n<div style=\"clear: both; text-align: center;\"><img decoding=\"async\" title=\"SPF Flow\" src=\"https:\/\/www.tech-and-dev.com\/blog\/wp-content\/uploads\/2021\/02\/spf-flowchart.png\" alt=\"SPF Flow\" border=\"0\" \/><\/div>\n<p>&nbsp;<\/p>\n<p><b>Question? Please leave a comment below!<\/b><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>What is SPF? Sender Policy Framework (SPF) is an anti spamming technique that detects email spoofing and verify the sender&#8217;s IP address, thus allowing only specific server(s) to send on behalf of a domain. Configuring SPF: 1- Make sure you have a valid hostname and it&#8217;s resolving to your server&#8217;s main IP. 2- To check [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[13,28,42,41],"tags":[],"class_list":["post-30","post","type-post","status-publish","format-standard","hentry","category-email","category-security","category-spf","category-virtualmin"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.tech-and-dev.com\/blog\/wp-json\/wp\/v2\/posts\/30","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tech-and-dev.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tech-and-dev.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tech-and-dev.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tech-and-dev.com\/blog\/wp-json\/wp\/v2\/comments?post=30"}],"version-history":[{"count":2,"href":"https:\/\/www.tech-and-dev.com\/blog\/wp-json\/wp\/v2\/posts\/30\/revisions"}],"predecessor-version":[{"id":413,"href":"https:\/\/www.tech-and-dev.com\/blog\/wp-json\/wp\/v2\/posts\/30\/revisions\/413"}],"wp:attachment":[{"href":"https:\/\/www.tech-and-dev.com\/blog\/wp-json\/wp\/v2\/media?parent=30"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tech-and-dev.com\/blog\/wp-json\/wp\/v2\/categories?post=30"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tech-and-dev.com\/blog\/wp-json\/wp\/v2\/tags?post=30"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}