Cloudflare

To start sending emails with Mailtrap, you need to own a domain (e.g., yourcompany.com) and then verify your ownership over it. For this, you'll need access to your domain provider account, more specifically, the DNS records management page.

In this guide, you'll learn how to add and verify a domain from Cloudflare.

This guide assumes your domain uses Cloudflare's nameservers (e.g., anna.ns.cloudflare.com or bob.ns.cloudflare.com). This applies whether you registered your domain directly with Cloudflare or just pointed your DNS to Cloudflare from another registrar. Not sure? Check your domain registrar's settings or look for where you manage your DNS records. If it's in Cloudflare's dashboard, you're in the right place.

Step-by-step guide

1

Open the Cloudflare dashboard and select the domain you've added to Mailtrap.

2

Click on the DNS button in the left navigation panel. This will open DNS records.

3

Click on the Add Record button.

4

On the Domain Verification page in Mailtrap, you'll see the DNS records you need to add to Cloudflare. These are Domain Verification, DKIM, DMARC, and Domain Tracking. You'll need the values under Type, Name, and Value.

Pay attention to the Type next to each record in Mailtrap and choose a relevant one in Cloudflare. There are four CNAME type records (Domain Verification, DKIM (2), and Custom Tracking Domain) and one TXT type record (DMARC).

DNS record type dropdown in Cloudflare
circle-info

The SPF check for your mail is covered by the domain verification record. There is no need to add a separate SPF record on your sending domain.

5

Copy the Name and Value for each record one by one. You can do this by hovering and clicking each record.

6

Paste the the values into Cloudflare. Remember that Cloudflare refers to the Value field as Target for CNAME records and Content for TXT records.

7

If you're not using a proxy, make sure you disable it. By default, it will be enabled.

8

Use the default value for TTL.

Click Save and repeat the process for all the remaining DNS records.

9

Then, return to Mailtrap. Some records may be verified immediately, while some may take more time. Mailtrap will check the DNS records automatically every hour, but you can force a check by clicking the Re-check DNS Records button.

10

If you add all the required DNS records correctly, the Status of DNS records will change from Missing to Verified, and the red dots will turn green.

circle-info

If you have additional questions, consult the official Cloudflare documentationarrow-up-right or contact us at [email protected]envelope

Last updated

Was this helpful?