SPF and DKIM Setup for CloudFlare

The following guide is relevant for SMTP2GO customers, who have a domain name hosted with CloudFlare.

Step 1

Log in to CloudFlare. Select the appropriate domain name under Select Website section.


Step 2

Click the DNS button.


Step 3

To create a new SPF record, go to the DNS Records section and go to the boxes for the new record.
Note: if you already see a TXT record with a value beginning with 'v=spf1' then edit that record rather than adding a new one.

Select the TXT option from the Type drop-down menu.

Enter @ into the Name field.

Click the Click to configure and enter the SPF record that we recommend for you into the content field in the popup and then click the Save button. You can find your recommended SPF record from the Sender Domains page in your SMTP2GO App.

If you are interested, take a look at some more detailed information about SPF records here.


Click on the Add Record button.

Step 4

To create a DKIM record, Select the CNAME option from the Type drop-down menu.

Enter the Hostname we recommend into the Name field.

Enter the Value that we advise for your CNAME record.

Make sure that you select 'DNS only' for the Status of the CNAME record that you create. At the time of writing, this is currently achieved by clicking the cloud icon to change it to appear grey.


Click on the Add Record button.

You can find the "Hostname" and "Value" under the Settings >> Sender Domains section of your SMTP2GO Dashboard.

Was this article helpful?