Table of Contents

Sender Policy Framework (SPF) Records in DNS

This page describes setting a Sender Policy Framework (SPF) record in the DNS Zone file for the email on your domain.

SPF records have recently been depreciated, so we recommend that you use the TXT record for this purpose as described below

SPF record for Gandi Mail and Simple Hosting

If you use Gandi Mail, or send emails from your instance, this is the basic TXT record you may use, for example:


 @ 10800 IN TXT "v=spf1 ?all"

Simple Hosting

 @ 10800 IN TXT "v=spf1 ip4: ip6:2001:4b98:c::/48 ip4: ip4: ip4: ptr ?all"

This Simple Hosting records is only used if you plan to send e-mails through your website (via contact form, etc..)

After you've submitted each of these changes, be sure to activate the new version of your zone file, and keep in mind that it will take about 3 hours for it to take full effect due to the standard DNS propagation delay.

See also