• Call: +1 (858) 429-9131

DKIM (Domain keys ) & SPF for domains

DKIM – the technology pioneered by Google is a major weapon against fighting spam. SPF is also another tool that helps us achieve the same goal. Here is the quick steps to enable both.


  1.  SPF aka Sender Policy Framework  uses the DNS TXT field


dig agileblaze.com txt

agileblaze.com. 300 IN TXT "v=spf1 ip4: ip4: include:_spf.google.com ~all"
agileblaze.com. 300 IN TXT "google-site-verification=C2mB_M1y9wd9wo8jMdzqSQt-nYUo_oJhlNs4H8rM5u4"


Tools to verify SPF




Checking to see if there is a valid SPF record.

Found v=spf1 record for agileblaze.com:
v=spf1 ip4: ip4: include:_spf.google.com ~all

SPF record passed validation test with pySPF (Python SPF library)!

Domain Keys – DKIM


Domain keys also can be added in the TXT field. Unlike SPF, domain keys uses cryptography infrastructure. We will have to add the txt field in the following format


In this example we are using the following,



Generation of the the keys and Verification can be done with http://dkimcore.org/tools/

Once the keys are ready, just add them to the DNS records and forget SPAM!

Associated Links

  • Internet protocols
  • Sender Policy Framework
  • DomainKeys Identified Mail
  • DomainKeys
  • TXT record

  • Leave a Reply