Skip to content

Instantly share code, notes, and snippets.

@hxtree
Last active October 6, 2019 13:28
Show Gist options
  • Save hxtree/412254151b1e43ce4942f071b3cc6e0d to your computer and use it in GitHub Desktop.
Save hxtree/412254151b1e43ce4942f071b3cc6e0d to your computer and use it in GitHub Desktop.
DNS SPF Record Example For MailChimp, GSuite, On-Premises
; SPF (Sender Policy Framework) is an email authentication protocol
; that allows the owner of a domain to specify which mail servers they use to send mail from that domain.
;
; explanation
; https://postmarkapp.com/blog/explaining-spf
;
; mailchimp include:servers.mcsv.net https://mailchimp.com/help/set-up-custom-domain-authentication-dkim-and-spf/
; gmail include:_spf.google.com https://support.google.com/a/answer/33786?hl=en
; on-premises mail ip4:x.x.x.x/24
@ IN TXT "v=spf1 a mx ip4:x.x.x.x/24 include:servers.mcsv.net include:_spf.google.com ~all"
; A SPF record is required for each sudomains
*.example.com IN TXT "v=spf1 a mx ip4:x.x.x.x/24 include:servers.mcsv.net include:_spf.google.com ~all"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment