---
title: 'DNS and domain authentication'
url: 'https://info.srv.kowal.co/docs/mail/dns-authentication'
markdown: 'https://info.srv.kowal.co/docs/mail/dns-authentication.md'
lang: en
date: '2026-11-30'
description: 'Check inbound routing and outbound sender identity separately.'
---

# DNS and domain authentication

## Incoming mail

Inspect the domain’s MX record at its authoritative DNS provider. Its target should be the mail hostname assigned to the domain. Check the A and AAAA records for that hostname. If Cloudflare hosts DNS, use DNS only for the MX target.

## Outgoing mail

| Field | What to compare |
|---|---|
| SPF | Publish one TXT record beginning with `v=spf1` per name. Include actual sending sources, including a transactional mail provider if used by the store. |
| DKIM | Publish the public key under the selector supplied by Mailcow. Check the signature domain and selector in a delivered message. |
| DMARC | Inspect the record under `_dmarc` and alignment between the From domain and the domain authenticated by SPF or DKIM. |
| PTR | The sending address provider sets reverse DNS. The name returned by PTR should resolve back to that address via A or AAAA. |

After a test delivery, inspect Authentication-Results at the recipient. It records the evaluation of that message and its actual sending address.

---

## Navigation

- Parent: [Mail servers](https://info.srv.kowal.co/docs/mail.md)
- Previous: [Domains, mailboxes and aliases](https://info.srv.kowal.co/docs/mail/domains-mailboxes.md)
- Next: [SOGo webmail, IMAP and SMTP](https://info.srv.kowal.co/docs/mail/mail-clients.md)
