Fastmail DNS Settings for Gandi.net/Bind

I am using Fastmail to host my email and Gandi.net for my Domains. I applied the following settings to send and receive emails, and to auto-configure mail, calendar and contact clients:

@ 604800 IN MX 10 in1-smtp.messagingengine.com.
@ 604800 IN MX 20 in2-smtp.messagingengine.com.
@ 604800 IN TXT "v=spf1 include:spf.messagingengine.com -all"
_caldav._tcp 604800 IN SRV 0 0 0 .
_caldavs._tcp 604800 IN SRV 0 1 443 caldav.fastmail.com.
_carddav._tcp 604800 IN SRV 0 0 0 .
_carddavs._tcp 604800 IN SRV 0 1 443 carddav.fastmail.com.
_imap._tcp 604800 IN SRV 0 0 0 .
_imaps._tcp 604800 IN SRV 0 1 993 imap.fastmail.com.
_pop3._tcp 604800 IN SRV 0 0 0 .
_pop3s._tcp 604800 IN SRV 10 1 995 pop.fastmail.com.
_submission._tcp 604800 IN SRV 0 1 587 smtp.fastmail.com.
fm1._domainkey 604800 IN CNAME fm1.example.com.dkim.fmhosted.com.
fm2._domainkey 604800 IN CNAME fm2.example.com.dkim.fmhosted.com.
fm3._domainkey 604800 IN CNAME fm3.example.com.dkim.fmhosted.com.

Replace example.com with your host name. The lines containing _domainkey are special settings to signal other mail providers that an email originating from Fastmail is was sent from you.

The settings were taken from here.