Register

How can I set up SPF & DKIM on my CloudFlare provider?

Correctly setting up SPF and DKIM is very important as it will increase the deliverability of your campaigns. If your aim is to have professional results from your email marketing efforts, then it's almost mandatory to look into what is a fairly simple procedure, which will greatly impact the success of your campaigns and allow you to hit inboxes every time!

First, you need to make sure you know where to find the required SPF & DKIM information inside your Moosend account. Then all you have to do is follow the steps described below:


A. Setting up SPF

1. Log in to the Cloudflare dashboard.

2. Click the appropriate Cloudflare account for the domain where you will add records.

3. Ensure the proper domain is selected.

4. Click the DNS app.

5. Create the record entry.

6. Enter your new DNS entry by filling up the following:

  • Type
    Select the TXT type.


  • Name
    After locating the SPF TXT records of your sender on your Moosend account, enter the provided TXT record name. You can type @ to map the record directly to your domain name.

    Example SPF TXT record name for your CloudFlare provider:
    @


  • Content 
    After locating the SPF TXT records of your sender on your Moosend account, enter the provided TXT record value.

    Example SPF TXT record value for your CloudFlare provider:
    v=spf1 include:spfa.mailendo.com ~all

  • TTL
    Use the Auto option or select for how long the server should cache the information.


Keep in mind that if you already have an SPF record, all you need to do is to edit the SPF which is already available. Make sure you avoid creating two SPF records as this will make your SPF invalid!

B. Setting up DKIM/ Domain key


1. Log in to the Cloudflare dashboard.

2. Click the appropriate Cloudflare account for the domain where you will add records.

3. Ensure the proper domain is selected.

4. Click the DNS app.

5. Create the record entry.

6. Enter your new DNS entry by filling up the following:

  • Hostname
    After locating the DKIM record of your sender on your Moosend account, enter the provided TXT record name.

    Example TXT record name for your CloudFlare provider:
    ms._domainkey.mydomain.com

 

  • Type
    Select the TXT type.


  • Value
    After locating the DKIM record of your sender on your Moosend account, enter the provided TXT record value.

    Example TXT record value for your CloudFlare provider:
    k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADvOasfEIjT4S15emucwZhxKaWgikEeyj11l3owcIz3nZWAcuEhDxSCWYeapkj4G6WuV38WhRTxD5rXA0GQysBn+1w2FiVV0KDBHb8VLB13y8jU0SX/IiM7h0ACnN6qzMvbG/6Z5x/ja/AB5Gc1vQrgF9ztt2/QAAAQAB

 

 


Usually, 30 minutes are required in order for newly created records to take effect. Also, it is highly recommended that you check that you've correctly completed the verification procedure through your Moosend account.