# 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="https://2024949584-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHNgw7cfnOYHQr0B6GDXr%2Fuploads%2FJfXErJNooxd341yK3Bam%2FScreenshot%202023-06-09%20at%204.28.05%20AM.png?alt=media&#x26;token=3d8a4f77-1958-43c9-b43c-2cc4ddce411c" alt="" width="250"><figcaption></figcaption></figure></div>

Click configure domains

<figure><img src="https://2024949584-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHNgw7cfnOYHQr0B6GDXr%2Fuploads%2Ft2Vc4bT1fm4UO9drf7ZJ%2FScreenshot%202023-06-09%20at%204.09.57%20AM.png?alt=media&#x26;token=8b7bdb34-e570-46b1-9e1d-22a0227f9f4f" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://2024949584-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHNgw7cfnOYHQr0B6GDXr%2Fuploads%2F7ZxJIAAYpY3GfPIvmYkL%2FScreenshot%202023-06-09%20at%204.08.11%20AM.png?alt=media&#x26;token=498b5fc2-c25e-47d6-97db-a5ea8f9169a5" 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="https://2024949584-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHNgw7cfnOYHQr0B6GDXr%2Fuploads%2FWPXcO3xy1N9Xb25vtxXX%2FScreenshot%202023-06-09%20at%204.10.29%20AM.png?alt=media&#x26;token=aa7fef1f-4293-4b24-8b36-2a8a07ea1232" 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="https://2024949584-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHNgw7cfnOYHQr0B6GDXr%2Fuploads%2FWn5wj3LLDROYY6AJTAIL%2FScreenshot%202023-06-09%20at%204.10.56%20AM.png?alt=media&#x26;token=08aa158f-2fd1-4464-b882-9250455d4a4e" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2024949584-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHNgw7cfnOYHQr0B6GDXr%2Fuploads%2FrfRX9UvWE4JpeI9ekhd7%2FScreenshot%202023-06-09%20at%204.11.17%20AM.png?alt=media&#x26;token=fd0ce918-55ba-416b-95c2-01f22a2d5a9d" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://2024949584-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHNgw7cfnOYHQr0B6GDXr%2Fuploads%2FOoj7jgbL1kBmhAy2f2cd%2FScreenshot%202023-06-09%20at%204.12.15%20AM.png?alt=media&#x26;token=5fe6b198-3beb-4d95-9630-a9de7b7673af" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2024949584-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHNgw7cfnOYHQr0B6GDXr%2Fuploads%2Fg5e8ZDg5b33ZHZEqknNE%2FScreenshot%202023-06-09%20at%204.12.33%20AM.png?alt=media&#x26;token=d38c7919-8e96-4123-bde7-b60c51e38c18" 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="https://2024949584-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHNgw7cfnOYHQr0B6GDXr%2Fuploads%2F7WMKqP6CGgxufrkuc6L1%2FScreenshot%202023-06-12%20at%2012.44.29%20PM.png?alt=media&#x26;token=c08b4175-e217-4773-b6ff-8c7a00a881ac" alt="" width="313"><figcaption></figcaption></figure></div>

<div align="left"><figure><img src="https://2024949584-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHNgw7cfnOYHQr0B6GDXr%2Fuploads%2FqVYPxMRWPVoV9uyHkvNl%2FScreenshot%202023-06-12%20at%2012.44.39%20PM.png?alt=media&#x26;token=91c4a6e6-a123-43cd-bb54-c70724aa0626" alt="" width="329"><figcaption></figcaption></figure></div>

<figure><img src="https://2024949584-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHNgw7cfnOYHQr0B6GDXr%2Fuploads%2FbYdElfQweWVdXg7p18hD%2FScreenshot%202023-06-12%20at%2012.44.50%20PM.png?alt=media&#x26;token=df72a177-376a-47e1-99aa-66845084800b" alt=""><figcaption></figcaption></figure>
