> ## Documentation Index
> Fetch the complete documentation index at: https://docs.migma.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Add DNS Records for a Sending Domain

> Two ways to set up a sending domain in Migma: quick or custom, including the DNS records you need to add.

Both methods start at **Sending Domains → Add Domain** in the sidebar.

<Frame>
  <img src="https://mintcdn.com/migmaai/1qDyQKMgXFMsHf1A/images/dns-records/sending-domains.png?fit=max&auto=format&n=1qDyQKMgXFMsHf1A&q=85&s=f165c4443361f8583ff8d2931e6bb27c" alt="Open Sending Domains" width="624" height="705" data-path="images/dns-records/sending-domains.png" />
</Frame>

***

## 1. Quick (migma.email)

Type a name and you get `<yourname>.migma.email` instantly. No DNS, no waiting. Great for testing and quick integrations.

***

## 2. Custom domain

Send from your own address like `you@yourcompany.com`. Type your root domain, then click **Add Domain**. Migma assigns the sending region automatically.

<Steps>
  <Step title="Open Sending Domains">
    In Migma, go to **Sending Domains**.
  </Step>

  <Step title="Choose Custom Domain">
    Click **Add Domain**, choose **Custom**, then enter the domain you want to send from.

    Examples:

    * `yourcompany.com`
    * `mail.yourcompany.com`
    * `updates.yourcompany.com`
  </Step>

  <Step title="Add the domain">
    Add the domain. Migma automatically assigns the sending region.
  </Step>
</Steps>

<Frame>
  <img src="https://mintcdn.com/migmaai/1qDyQKMgXFMsHf1A/images/dns-records/custom-domain.png?fit=max&auto=format&n=1qDyQKMgXFMsHf1A&q=85&s=1e9c9efceb467fc84d0dabcf7c1e0ac2" alt="Add Domain" width="593" height="596" data-path="images/dns-records/custom-domain.png" />
</Frame>

<Tip>
  Using a sending subdomain such as `mail.yourcompany.com` is common because it keeps campaign reputation separate from your main website and day-to-day inbox domain.
</Tip>

***

## 3. Add the DNS records

After you add a custom domain, Migma shows every record you need to create. Keep this table open and copy each value directly into your DNS provider.

<Frame caption="Copy the DNS records from the domain setup table">
  <img src="https://mintcdn.com/migmaai/EPeAIqF9d83RZHA7/images/setup-domain.png?fit=max&auto=format&n=EPeAIqF9d83RZHA7&q=85&s=f954f8fdbe55bc2567a94f62ea4f41c2" alt="Migma DNS records table for a custom sending domain" width="2794" height="1620" data-path="images/setup-domain.png" />
</Frame>

Most custom domains have these records:

| Purpose                   | Type  | Where it goes                     |
| ------------------------- | ----- | --------------------------------- |
| Ownership verification    | TXT   | The sending domain                |
| DKIM authentication       | CNAME | Three `_domainkey` hostnames      |
| SPF sending authorization | TXT   | The sending domain                |
| DMARC policy              | TXT   | `_dmarc` under the sending domain |
| Custom MAIL FROM          | MX    | `send` under the sending domain   |
| MAIL FROM SPF             | TXT   | `send` under the sending domain   |

<Steps>
  <Step title="Add the ownership TXT record">
    Create a TXT record with the Migma verification value, such as `migma-verify=...`.
  </Step>

  <Step title="Add the three DKIM CNAME records">
    Create all three CNAME records. The names contain `_domainkey`, and the targets end in `dkim.amazonses.com`.

    In Cloudflare, set DKIM CNAME records to **DNS only**. Do not proxy them.
  </Step>

  <Step title="Add the SPF TXT record">
    Create or edit the SPF TXT record for the sending domain.

    If there is no SPF record yet:

    ```txt theme={null}
    v=spf1 include:spf.migma.ai ~all
    ```

    If the domain already has SPF, keep one SPF TXT record and add Migma before the final mechanism:

    ```txt theme={null}
    v=spf1 include:_spf.google.com include:spf.migma.ai ~all
    ```
  </Step>

  <Step title="Add the DMARC TXT record">
    Create the `_dmarc` TXT record exactly as Migma shows it.

    ```txt theme={null}
    v=DMARC1; p=quarantine; rua=mailto:dmarc@migma.ai
    ```
  </Step>

  <Step title="Add the MAIL FROM MX record">
    Create the MX record for the MAIL FROM hostname, usually `send` under your sending domain.

    * Priority: `10`
    * Mail server: copy the Migma value, such as `feedback-smtp.eu-west-1.amazonses.com`
  </Step>

  <Step title="Add the MAIL FROM SPF TXT record">
    Create the TXT record on the same MAIL FROM hostname.

    ```txt theme={null}
    v=spf1 include:spf.migma.ai ~all
    ```
  </Step>
</Steps>

<Tip>
  On Cloudflare? Skip the manual records and use the one-click flow in [Cloudflare DNS](/sending-domains/cloudflare).
</Tip>

***

## 4. Verify in Migma

After saving the DNS records, return to Migma and check the domain.

<Steps>
  <Step title="Wait a few minutes">
    Most DNS providers publish updates within 5-60 minutes. Some records can take longer.
  </Step>

  <Step title="Open the domain menu">
    In **Sending Domains**, open the action menu for the domain.
  </Step>

  <Step title="Click Check DNS">
    Migma checks each record and updates the status.
  </Step>
</Steps>

<Frame caption="Use Check DNS to re-check the records after they are added">
  <img src="https://mintcdn.com/migmaai/EPeAIqF9d83RZHA7/images/check-dns-domain.png?fit=max&auto=format&n=EPeAIqF9d83RZHA7&q=85&s=3285a993fefc48ef76a7a03ec8ef69c1" alt="Migma sending domain action menu with Check DNS" width="496" height="474" data-path="images/check-dns-domain.png" />
</Frame>

<Note>
  For per-provider field labels (Cloudflare, Route 53, GoDaddy, Namecheap) and troubleshooting, see the full [Add DNS Records](/sending-domains/add-dns-records) guide.
</Note>
