---
title: DNS Records Guide for cPanel Hosting Email
description: "## Overview To send and receive email reliably from your domain on our cPanel hosting, you need to add three DNS records: SPF, DKIM and DMARC. Without them, your messages are more likely to land in spam or be rejected.…"
url: "https://truehost.com/support/knowledge-base/dns-records-guide-for-cpanel-hosting-email/"
updated: "2026-11-18"
category: Cpanel
---

# DNS Records Guide for cPanel Hosting Email

## Overview

To send and receive email reliably from your domain on our cPanel hosting, you need to add three DNS records: SPF, DKIM and DMARC. Without them, your messages are more likely to land in spam or be rejected.

- **SPF** lists the servers allowed to send email for your domain.
- **DKIM** adds a digital signature that proves a message was not altered.
- **DMARC** tells receiving servers what to do with messages that fail SPF or DKIM, and where to send reports.

This guide is for anyone managing DNS for a domain hosted with us, whether the DNS lives in cPanel, in DNSManager in your client area, or at an outside provider.

## Records to add

Add these three TXT records to every domain that sends email through our servers. The values are identical for all domains; only the domain itself changes.

| # | Type | Host / Name | Value |
| --- | --- | --- | --- |
| 1 | TXT | `@` (the domain itself) | `v=spf1 +a +mx include:_spf.truehostcloud.com ~all` |
| 2 | TXT | `smarthost._domainkey` | `v=DKIM1; h=sha256; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAv882rEXZRMdtin+CVwig1NUSxaSkGNdHO0+xhaV82EI6MKiLrVk00OjKf/VOSRoxEl3d67TluSHBeFmKl2GSWCTr/JJgxlunYX2dXdrNIJI08Po6IJ7E5jKyNvv3Oh6i8Obu6P+BfiaKr9XztO29kwRCYLzJP3nHsmPj3AyESfEM0X7tWLA2+sOdVsHUvNlp6Kqp0dSHK4bVGOx5J2A8C//uYvYYkekqXD99LXQ/jTL9W6Rn+oyyiwPfaTRYQv2O5YDQU3+iTJDs28cXNZdrArf9yIUnJyxmTeRJw08WKyz0g9sRmGkQg8xxBz+FNxjYeATITcs/S1Af4Rtz7MU3PwIDAQAB` |
| 3 | TXT | `_dmarc` | `v=DMARC1;p=quarantine;sp=quarantine;adkim=r;aspf=s;pct=100;fo=0;rf=afrf;ri=86400;rua=mailto:dmarc-reports@truehostcloud.com;ruf=mailto:dmarc-reports@truehostcloud.com` |

Host names are relative to your domain. For `example.com`, record 2 becomes `smarthost._domainkey.example.com`. Some providers want the full name, others add the domain for you; the provider sections below say which.

The DKIM value is one long string. Copy it whole, with no spaces or line breaks added.

## Before you start

A domain can have only one SPF record and one DMARC record. Check for existing ones first, or the new record will conflict with the old one.

1. **Existing SPF record** (a TXT record starting with `v=spf1`): do not add a second one. Edit it and insert `include:_spf.truehostcloud.com` before the final `~all` or `-all`. For example, `v=spf1 include:_spf.google.com ~all` becomes `v=spf1 include:_spf.google.com include:_spf.truehostcloud.com ~all`.
2. **Existing DMARC record** (`_dmarc`): if one exists, edit it rather than adding another. Ask us before changing it if it already reports to your own address.
3. **DKIM**: `smarthost._domainkey` is unique to our service, so it will not clash with other DKIM records (such as `google._domainkey`).
4. **TTL**: leave the default (usually 14400 or 3600 seconds).
5. **Propagation**: changes usually appear within minutes, but can take up to 24 hours.

If the domain's nameservers point to us, edit DNS in cPanel or DNSManager. If they point elsewhere (for example Cloudflare), edit DNS at that provider; changes made in cPanel will have no effect.

## Method A: cPanel Zone Editor

Use this when your domain's nameservers point to our servers.

1. Log in to cPanel and open **Zone Editor** (under the Domains section).
2. Find your domain and click **Manage**.
3. Click **+ Add Record**.
4. Set **Name** to `@` or your domain (for example `example.com.`), **Type** to `TXT`, and paste the SPF value from the table into **Record**. Click **Add Record**.
5. Click **+ Add Record** again. Set **Name** to `smarthost._domainkey.example.com.` (your own domain, with the trailing dot), **Type** to `TXT`, and paste the DKIM value. Save.
6. Add a third record. Set **Name** to `_dmarc.example.com.`, **Type** to `TXT`, and paste the DMARC value. Save.

cPanel wants the full name ending in a dot. If you leave the domain off, it usually completes it for you, but check the saved list.

If an SPF record already exists, use **Edit** on it instead of adding a new one (see Before you start).

## Method B: DNSManager in the client area

Use this when your domain's DNS is managed from your client area account. Menu names can differ slightly by version; the steps are the same in principle.

1. Log in to the client area and go to **Domains** > **My Domains**.
2. Next to your domain, choose **Manage Domain** and then **DNS Management** (or open **DNSManager** from the menu).
3. Click **Add Record**.
4. Add the SPF record: **Type** `TXT`, **Name** `@` (or the domain), **Value** the SPF text. Save.
5. Add the DKIM record: **Type** `TXT`, **Name** `smarthost._domainkey`, **Value** the DKIM text. Save.
6. Add the DMARC record: **Type** `TXT`, **Name** `_dmarc`, **Value** the DMARC text. Save.
7. Confirm all three appear in the record list, then click **Save Changes** if the page shows that button.

Do not wrap the values in quote marks unless the form asks for them. If a form rejects a record as a duplicate, an older one already exists; edit it instead.

## Method C: An outside DNS provider

Use this when your nameservers point to a provider such as Cloudflare, GoDaddy, Namecheap or your registrar. The screens differ, but every provider asks for the same four things: type, name, value and TTL.

1. Log in to the provider and open the DNS settings for your domain (often called DNS, DNS Records, Advanced DNS or Zone File).
2. Add each of the three TXT records from the table above.
3. Save, then verify using the next section.

What varies by provider:

| Provider | Name field for SPF | Name field for DKIM and DMARC | Tip |
| --- | --- | --- | --- |
| Cloudflare | `@` | `smarthost._domainkey`, `_dmarc` | Leave the TXT value as plain text. Cloudflare adds the quote marks itself. |
| GoDaddy | `@` | `smarthost._domainkey`, `_dmarc` | Choose **Add New Record**, then type **TXT**. TTL of 1 hour is fine. |
| Namecheap | `@` | `smarthost._domainkey`, `_dmarc` | Use **Advanced DNS** > **Add New Record** > **TXT Record**. |
| Other / unsure | `@` or the full domain | The name without your domain; if it fails, use the full name | If the provider appends your domain automatically, do not type it again. |

A common mistake is a doubled domain, such as `_dmarc.example.com.example.com`. If your saved record shows this, remove the domain from the Name field.

On an outside provider, also keep your MX records pointing to the mail server details we gave you; only the three TXT records above are covered here.

## Verifying the records

Wait 10 to 30 minutes after saving, then check each record. Replace `example.com` with your domain.

**Command line (Linux, macOS, Windows):**

```
nslookup -type=TXT example.com
nslookup -type=TXT smarthost._domainkey.example.com
nslookup -type=TXT _dmarc.example.com
```

On Linux or macOS you can use `dig` instead:

```
dig TXT example.com +short
dig TXT smarthost._domainkey.example.com +short
dig TXT _dmarc.example.com +short
```

**Online tools:** enter your domain at MXToolbox (SPF, DKIM and DMARC lookups; for DKIM use selector `smarthost`) or Google Admin Toolbox Dig.

**Real-world test:** send an email from your domain to a Gmail address, open the message, choose **Show original**, and confirm that SPF, DKIM and DMARC all say **PASS**.

## Troubleshooting and FAQ

| Problem | Likely cause | Fix |
| --- | --- | --- |
| Lookup returns nothing | Not propagated yet, or DNS is hosted elsewhere | Wait up to 24 hours. Confirm which nameservers your domain uses. |
| Two SPF records, SPF shows PermError | A second `v=spf1` record was added | Merge both into one record (see Before you start). |
| DKIM fails | Value truncated, extra spaces, or wrong name | Re-paste the full key. The name must be exactly `smarthost._domainkey`. |
| Doubled domain in the record name | Domain typed into a field that adds it automatically | Remove the domain from the Name field. |
| Records added in cPanel but nothing changes | Nameservers point to another provider | Add the records at the provider that holds your DNS. |
| Mail still goes to spam | Records are new, or the domain or IP has a poor reputation | Re-check all three records pass, then contact support. |

**Does this change where my website points?** No. These are TXT records only. They do not affect your website or your A records.

**Do I need to repeat this for each domain?** Yes. Add the same three records to every domain that sends mail through our servers.

**What does DMARC `p=quarantine` do?** Messages that fail both SPF and DKIM alignment are sent to the recipient's spam folder. Reports go to the address in the record.

**Need help?** Contact our support team and include your domain name and a screenshot of your DNS records page. We can check and add the records for you.
