> For the complete documentation index, see [llms.txt](https://docs.giftcardfactory.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.giftcardfactory.app/misc/app-emails/sending-domain/domain-ownership-validation.md).

# Domain Ownership Validation

DNS Validation lets you send app emails from your own store domain without having to bring your own SendGrid or Postmark account. Behind the scenes, Gift Card Factory provisions a sender for you and gives you two DNS records (DKIM and Return-Path) to add to your domain.

### 1. Generate the DNS records

1. Open **Settings → App Emails Sending** in the Gift Card Factory app.
2. Select **DNS Validation**.
3. In **Custom outbound email**, enter the address you want emails to come from (for example `hello@yourstore.com`).
4. Click **Generate DNS Records**.<br>

<figure><img src="/files/v7H7Zc17yuFZkq0vmwiL" alt="" width="375"><figcaption></figcaption></figure>

The page will populate two records:

* a **DKIM** record (type `TXT`)
* a **Return-Path** record (type `CNAME`)

Each record shows the host (name) and value you'll need to copy into your DNS provider.

### 2. Add the records to your DNS provider

Log in to your DNS provider (Cloudflare, Route 53, GoDaddy, Shopify-managed DNS, etc.) and add both records exactly as shown — the host and value must match.

{% hint style="info" %}
DNS changes can take up to a few hours to propagate, although most providers update within 15–30 minutes.
{% endhint %}

### 3. Verify each record

Once the records are in place, come back to **Settings → App Emails Sending** and click the **Verify** button next to each record. A success banner appears when the record is found:

* **DKIM Verified!**
* **Return Path Verified!**

When both records are verified, all app emails will be sent from your custom outbound email.

If a record can't be found, the banner shows *"DNS Record Not Found"* — wait a little longer for propagation, double-check the host and value, and try again.

If you need help setting up the records, contact us at <support@code57.pl>.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.giftcardfactory.app/misc/app-emails/sending-domain/domain-ownership-validation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
