---
title: "Connect Cloudflare Domains to Mailforge"
description: "Connect domains that use Cloudflare to Mailforge with a Cloudflare API token, with no nameserver change."
url: https://help.salesforge.ai/en/articles/10333694-connect-cloudflare-domains-to-mailforge
collection: "Mailforge"
updated: 2026-11-19
language: en
---

# Connect Cloudflare Domains to Mailforge

Connect domains that use Cloudflare to Mailforge with a Cloudflare API token, with no nameserver change.

If your domains use Cloudflare, you can connect them to Mailforge with a Cloudflare API token. Your domains stay in your Cloudflare account and you do not change any nameservers. Connecting is free and takes about 2 minutes.

## What you need to know

-   This works for domains registered with Cloudflare and for domains registered elsewhere that use Cloudflare DNS.
    
-   Domains activate as soon as the DNS records are in place, so there is no waiting for nameserver changes.
    
-   Mailforge configures the domain automatically (SPF, DKIM, DMARC and forwarding).
    
-   Your token is stored encrypted and is only used to manage DNS for the domains you connect.
    
-   Your own Cloudflare page rules stay as they are. Mailforge only manages its own forwarding rule.
    
-   Existing mailboxes on these domains stop working. Only mailboxes created in Mailforge will work.
    
-   Keep the token active. If it is deleted or expires, Mailforge can no longer manage the DNS records of your domains.
    

## Step 1: Start the connection

1.  Log in to Mailforge and open the Domains page.
    
2.  Click **Connect domains**, next to Create domains.
    

![Connect domains button on the Mailforge Domains page](https://staticfiles.gleap.io/p677a7ec3b682e732d0e54ed0/rmx5cgz4h93NAQrs8XeUaBKIyk8nLHqIdsqwRzk0luRHFjQSWdD75R8VmxpiOXw7CtY5aKOtrOK.png)

## Step 2: Choose Cloudflare

In the Domain connect window, select **Cloudflare** (marked No nameserver change) and click Continue. Domains on any other registrar connect through nameservers instead, as described in [How to Connect a Domain You Already Own to Mailforge](https://help.salesforge.ai/en/articles/10333687-how-to-connect-a-domain-you-already-own-to-mailforge.md).

![Cloudflare selected in the Domain connect window](https://staticfiles.gleap.io/p677a7ec3b682e732d0e54ed0/fX5SqbvQc2BzmpXmq96AoKGntKbfD6m0EdtlcvkeeoP6pRaVoyFJoITaFbZuqEsOqIc3rvib9vE.png)

## Step 3: Create a Cloudflare API token

1.  Click **Open Cloudflare**, or go to My Profile, then API Tokens in Cloudflare, and click Create Token.
    
2.  Next to Custom token, click Get started.
    
3.  Add these three permissions: Zone / Zone / Read, Zone / DNS / Edit, and Zone / Page Rules / Edit.
    
4.  Under Zone Resources, include the domains you want to connect.
    
5.  Create the token and copy it.
    

![Instructions for creating a Cloudflare API token](https://staticfiles.gleap.io/p677a7ec3b682e732d0e54ed0/e2bIXHN7WgIvXNjX1VxlWP2IceS4DwnH1mEqcCUjJP16QPanrNPhNaIia0ftN0YdMsCPlWAnb5f.png)

Back in Mailforge, tick the box confirming you created a token with these permissions and click Proceed.

## Step 4: Add your domains and paste the token

1.  Enter the domains you want to connect. Use Add domain for more than one.
    
2.  Paste your Cloudflare API token.
    
3.  Confirm to connect. The domains activate once the records are in place.
    

![Domain connect setup form with domains and API token fields](https://staticfiles.gleap.io/p677a7ec3b682e732d0e54ed0/sWDcOQYYQc30Oj8HxVLRJNnAn8GtByp5OgfIwo7KfV6VxoHVcDjbO5aeshxd6dbrJNlvkCUXJJZ.png)

## After connecting

Once a domain shows as Active, you can create mailboxes on it in Mailforge.

## FAQ

**Do I need to change nameservers?**

No. With the Cloudflare token method your domains stay in Cloudflare and nameservers do not change.

**Does this work for Infraforge?**

No. This flow is for Mailforge. Primeforge also supports Cloudflare domains, see [Connecting Cloudflare domains to Primeforge](https://help.salesforge.ai/en/articles/10333619-connecting-cloudflare-domains-to-primeforge.md).

**What happens if I delete the token?**

Mailforge can no longer manage the DNS records of the connected domains. Keep the token active for as long as the domains are connected.

**How do I disconnect a domain later?**

Follow the steps in [How to Transfer Domains Out of Mailforge, Infraforge, or Primeforge](https://help.salesforge.ai/en/articles/10333642.md), including revoking the API token in Cloudflare.
