Skip to content
Bots!
Bots!
  • About
    • Myself
    • আমার দোয়া
  • Bookmarks
    • Bookmarks
    • My OCI Bookmarks
    • Useful Proxmox Commands & Links
    • Learning Nano
    • Useful Sites
    • Useful Virtualbox Command
    • Useful MySQL Command
    • Useful Linux Command
    • BTT-CAS
  • Resources
    • Webinar on Cloud Adoption for Project Managers
  • Photos
  • Videos
  • Downloads
Bots!

Dissection of SPF (Sender Policy Framework)- A way to configure your DNS server SPF parameters

Rumi, September 26, 2010

Pick a default.

SPF domains have to publish at least two directives: a version identifier and a default mechanism.

 mydomain.com. TXT "v=spf1 -all"

This is the simplest possible SPF record: it means your domain mydomain.com never sends mail.

It makes sense to do this when a domain is only used for web services and doesn’t do email.

But most domains will want to designate permitted hosts using one or more mechanisms.

If your MX servers send mail, designate them.

 mydomain.com. TXT "v=spf1 mx -all"

Let’s pretend mydomain.com has two MX servers, mx01 and mx02. They would both be allowed to send mail from mydomain.com.

If other machines in the domain also send mail, designate them.

 mydomain.com. TXT "v=spf1 mx ptr -all"

This designates all the hosts whose PTR hostname match mydomain.com.

If any other machines not in the domain also send mail from that domain, designate them.

 mydomain.com. TXT "v=spf1 a:mydomain.com mx ptr -all"

mydomain.com’s IP addresses don’t show up in its list of MX servers. So we add an “a” mechanism to the directive set to match them.

 mydomain.com. TXT "v=spf1 a mx ptr -all"

This is shorthand for the same thing.

Each of your mail servers should have an SPF record also.

When your mail servers create a bounce message, they will send it using a blank envelope sender: <>. When an SPF MTA sees a blank envelope sender, it will perform the lookup using the HELO domain name instead. These records take care of that scenario.

  mx.mailix.net. TXT "v=spf1 a -all"

Consider creating an SPF record for every other machine in your domain.

Spammers can forge hostnames as well as domain names: to SMTP there is no difference between the two. If they start forging the hostnames of web servers, unix servers, even workstations, you’ll want to create SPF records for those machines also.

Notes

If you send mail through another organization’s servers, you should use an Include directive to point to their servers. If they do not have SPF records, maybe they don’t know about SPF. Tell them about it!

(optional) use Include records to share these hosts

If other domains use exactly the same set of hosts, you can set up redirects for them. “Redirect” aliases point to other domains which themselves publish SPF records. This aliasing mechanism makes it possible to easily consolidate multiple domains that share the same set of designated hosts.

That’s it. You’re done.

How to configure Sender of Policy Framework records in the Windows Server 2003 Domain Name System

To configure SPF records in the Windows Server 2003 DNS, follow these steps:

  1. Click Start, point to All Programs, point to Administrative Tools, and then click DNS.
  2. In the left pane, expand the DNS server object, and then expand Forward Lookup Zones.
  3. Right-click the domain folder to which you want to add the SPF record, and then click Other New Records.
  4. In the Select a resource record type list, click Text (TXT), and then click Create Record.
  5. If you add a record for the parent domain, leave the Record name box blank. If you do not add a record for the parent domain, type the single part name of the domain in the Record name box.
  6. In the Text box, type v=spf1 mx -all.
  7. Click OK, and then click Done.

Note This procedure is for DNS servers that host public DNS records for the domain. If the DNS records are being hosted by an Internet service provider (ISP), contact the ISP to request SPF records for the domain.

For more information about the Sender ID Framework, visit the following Microsoft Web site:

http://www.microsoft.com/mscorp/safety/technologies/senderid/default.mspx (http://www.microsoft.com/mscorp/safety/technologies/senderid/default.mspx)

For more information about the practice that is known as phishing, visit the following Microsoft Web site:

http://www.microsoft.com/athome/security/email/phishing.mspx (http://www.microsoft.com/athome/security/email/phishing.mspx)

Microsoft SPF Wizard-

http://www.microsoft.com/mscorp/safety/content/technologies/senderid/wizard/
Administrations Configurations (Windows)

Post navigation

Previous post
Next post

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Myself…

Hi, I am Hasan T. Emdad Rumi, an IT Project Manager & Consultant, Virtualization & Cloud Savvyfrom Dhaka, Bangladesh. I have prior experience in managing numerous local and international projects in the area of Telco VAS & NMC, National Data Center & PKI Naitonal Root and CA Infrastructure. Also engaged with several Offshore Software Development Team.

Worked with Orascom Telecom-Banglalink, Network Elites as VAS partner, BTRC, BTT (Turkey) , Mango Teleservices Limited and Access to Informaiton (A2I-UNDP)

Currently working at Oracle Corporation as Principal Technology Solution and Cloud Architect.

You can reach me [h.t.emdad at gmail.com] and I will be delighted to exchange my views.

Tags

Apache Bind Cacti CentOS CentOS 6 CentOS 7 Debain Debian Debian 10 Debian 11 Debian 12 DKIM Docker endian icinga iptables Jitsi LAMP Letsencrypt Linux Munin MySQL Nagios Nextcloud NFS nginx pfsense php Postfix powerdns Proxmox RDP squid SSH SSL Ubuntu Ubuntu 16 Ubuntu 18 Ubuntu 20 Varnish virtualbox vpn Webmin XCP-NG zimbra

Topics

Recent Posts

  • Install Jitsi on Ubuntu 22.04 / 22.10 April 30, 2025
  • Key Lessons in life April 26, 2025
  • Create Proxmox Backup Server (PBS) on Debian 12 April 19, 2025
  • Add Physical Drive in Proxmox VM Guest April 19, 2025
  • Mount a drive permanently with fstab in Linux April 16, 2025
  • Proxmox 1:1 NAT routing March 30, 2025
  • Installation steps of WSL – Windows Subsystem for Linux March 8, 2025
  • Enabling Nested Virtualization In Proxmox March 8, 2025
  • How to Modify/Change console/SSH login banner for Proxmox Virtual Environment (Proxmox VE / PVE) March 3, 2025
  • Install Proxmox Backup Server on Debian 12 February 12, 2025

Archives

Top Posts & Pages

  • Install Jitsi on Ubuntu 22.04 / 22.10
©2025 Bots! | WordPress Theme by SuperbThemes