When do I use a SPF record?¶
SPF records are records which provide a way for outside email servers to check if the email being sent is truly coming from the listed sender. For a time, SPF records were given their own distinct type of DNS record, but they were not widely adopted and so today it is good practice to list the information in a TXT record type. When we refer to “SPF records” in our documentation, we are referring to SPF records listed as a TXT record, not to the deprecated DNS record type.
SPF record for Gandi Mail and Simple Hosting¶
Instead of SPF records, add the following TXT records to the DNS records for your domain.
@ 10800 IN TXT "v=spf1 include:_mailcust.gandi.net ?all"
For Simple Hosting:
@ 10800 IN TXT "v=spf1 include:_spf.gpaas.net ?all"
For GandiMail + Simple Hosting:
@ 10800 IN TXT "v=spf1 include:_mailcust.gandi.net include:_spf.gpaas.net ?all"
This Simple Hosting record is only used if you plan to send e-mails through your website (via contact form, etc.)