> For the complete documentation index, see [llms.txt](https://doc.batch.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.batch.com/guides-and-best-practices/email-deliverability/email-authentication-and-sending-structure/sending-subdomain-setup-and-troubleshooting/troubleshooting-email-authentication-issues.md).

# Troubleshooting Email Authentication Issues

You will find here all the information you need to troubleshoot issues with SPF, DKIM and DMARC.

A variety of tools exist to help you check if your emails are correctly authenticated.

## Send a Test Email

Send a test email from your subdomain and then **check the email headers**.

Most mailbox providers will indicate whether your email is correctly authenticated. For example, in Gmail, open the email, click the **three dots** in the top right corner, and select "**Show Original.**"

<figure><img src="https://509463063-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfiAYaWDWqtFZeXxyg67F%2Fuploads%2F3vkWEpubmR5eR0j9xdwU%2Fdeliverability_auth-diag_300925.png?alt=media&amp;token=65bdcc88-bd63-462e-9764-b2ca20f33963" alt=""><figcaption></figcaption></figure>

## Use a DNS Debug Tool

You can also use dedicated DNS debug tools like [EmailStruff's DNS tool](https://emailstuff.org/dns).

#### → SPF:

* **Strict alignment**: Type your subdomain name in the TXT field of the tool (`subdomain.domain.com`)
* **Relaxed** **alignment**: Type your bounce subdomain name in the TXT field of the tool (`bounce.subdomain.domain.com`)

#### → DKIM

Type the selector + your subdomain name in the TXT field of the tool (`scphxxxx._domainkey.subdomain.domain.fr`).

#### → DMARC

Type `_dmarc.subdomain.domain.com` in the TXT field of the tool to check your DMARC record.

## Dig Command

Alternatively, you can use the `dig` command following the same logic:

```
dig TXT subdomain.domain.com
```

## Common Issues with Strict Alignment

When operating in strict alignment mode, the presence of **TXT entries** within the same domain **often disrupts email authentication**.

The most frequent cause is a **Google Postmaster Tools** verification code being incorrectly placed at the subdomain level. Ensure that you only verify your root domain with Google Postmaster Tools.&#x20;

Subsequent subdomains do not require individual verification to be added to the tool's monitoring.


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://doc.batch.com/guides-and-best-practices/email-deliverability/email-authentication-and-sending-structure/sending-subdomain-setup-and-troubleshooting/troubleshooting-email-authentication-issues.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
