Sun Protection Factor 15+ for Your Domains

Written by James McDonald

July 24, 2014

If you are using a provider like DigitalOcean or Rackspace and you are making use of their DNS management features. Then you might one day want to craft a SPF (Sender Policy Framework) TXT record.

The SPF allows email servers to check if the sending server is kosher and reject the incoming email or mark it as suspect based on the policy set in the SPF1 record.

The create the record you can use which makes it easy.

Here is an example this TXT record is for

"v=spf1 a ip4: ~all"

It basically means

allow any host with an A record in the domain ( to be able to send email.

Also set the host with ip to be allowed

and also include the SPF TXT records for google (because that’s my email servers and I don’t want to manage the SPF records for their servers myself),

finally ~all mark any record that doesn’t comply with the SPF as mentioned but still let it go which is  known as a SoftFail.




Submit a Comment

Your email address will not be published.

You May Also Like…


Zebra Printer Language The above website has a page where you can enter ZPL and it...

PHP Iterators

Just came across a Youtube talk "Iterators in PHP" by Jake Smith published in 2014 that steps through the many...

PHP array_map Multiple Arrays

array_map can take multiple arrays. I like how it starts mapping through them starting at the first element of each...