# Configure DKIM

{% hint style="warning" %}
**Don't skip this step!**\
It's not uncommon for mailbox providers to block or spam folder unauthenticated mail.&#x20;
{% endhint %}

{% hint style="info" %}
Before you send your first email, you need to add DKIM authentication to your DNS records&#x20;
{% endhint %}

Go to MTA -> Velocity MTA Servers -> DKIM tab in the backend site navigation

<div align="left"><figure><img src="/files/oTkTOwAKGtkByEMSXd77" alt="" width="250"><figcaption></figcaption></figure></div>

Click configure domains

<figure><img src="/files/4A7edgsqc0PgW4UFhxxX" alt=""><figcaption></figcaption></figure>

Add domains or subdomains and a DKIM selector&#x20;

<figure><img src="/files/DyvFrxEdCjq1UVV3MeIS" alt=""><figcaption></figcaption></figure>

You'll need to copy and paste the newly created TXT record entries into your DNS hosting provider&#x20;

<figure><img src="/files/Gz21j4IVZZSBAGXjXNZV" alt=""><figcaption></figcaption></figure>

In our example, we'll use Cloudflare as our DNS manager, which we strongly recommend.&#x20;

{% hint style="info" %}
**Cloudflare rocks**

Cloudflare acts as your DNS nameserver, reverse web proxy, web application firewall, SSL provider, incoming MX record mail processor, and much more
{% endhint %}

Create a new TXT record for your domain or subdomain

<figure><img src="/files/sLOFKdrbTmkN2qtS5nLL" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/yGVqmI8QwgoYxgHrmeiF" alt=""><figcaption></figcaption></figure>

Paste your selector and public key from the Velocity MTA DKIM page&#x20;

<figure><img src="/files/rAkMt01lqNCoIx0QeqkQ" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/4GgZc9vVYpusTIci8i95" alt=""><figcaption></figcaption></figure>

{% hint style="success" %}
You're done
{% endhint %}

{% hint style="warning" %}
**Trust but verify**

When you send yourself a test message to Gmail, you can verify DKIM is working by clicking the three dots then **show original**
{% endhint %}

<div align="left"><figure><img src="/files/TLm3rpuICvunmqPD2A5r" alt="" width="313"><figcaption></figcaption></figure></div>

<div align="left"><figure><img src="/files/V9N3WHMWUxBmhL8GZRvY" alt="" width="329"><figcaption></figcaption></figure></div>

<figure><img src="/files/W0Q9MmRzw9oak3pbD3QT" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: 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.emaildelivery.com/docs/velocity-mta-basics/configure-dkim.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.
