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:

Gandimail

@ 10800 IN TXT "v=spf1 include:_mailcust.gandi.net ?all"

Simple Hosting

@ 10800 IN TXT "v=spf1 ip4:217.70.176.0/21 ip6:2001:4b98:c::/48 ip4:217.70.184.158 ip4:217.70.185.10 ip4:217.70.186.165 ip4:155.133.132.131 ip4:155.133.138.131 ptr ?all"

Gandimail + Simple Hosting

@ 10800 IN TXT "v=spf1 include:_mailcust.gandi.net ip4:217.70.184.158 ip4:217.70.185.10 ip4:217.70.186.165 ip4:155.133.132.131 ip4:155.133.138.131 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