Skip to content
Module 2 · Lesson 5 of 26

DNS records every Mailcow host needs

Part of Mailcow: Self-Hosted Mail Server Mastery, in the Server Prerequisites & DNS module.

Author

Set these BEFORE the first install so Let's Encrypt and DKIM succeed on first run.

Record Example Purpose
A / AAAA mail.example.com → 198.51.100.10 Hostname for UI, SMTP, IMAP
PTR (rDNS) 198.51.100.10 → mail.example.com Required by Gmail/M365
MX example.com MX 10 mail.example.com Inbound routing
SPF v=spf1 mx ~all (initially) Authorize Mailcow's IP
DKIM TXT at dkim._domainkey.example.com Added after Mailcow generates the key
DMARC v=DMARC1; p=none; rua=mailto:dmarc@example.com Reports first, enforce later
MTA-STS _mta-sts.example.com TXT + policy file Modern TLS enforcement
TLS-RPT _smtp._tls.example.com TXT TLS failure reports
Autodiscover autodiscover.example.com CNAME mail.example.com Outlook auto-config
Autoconfig autoconfig.example.com CNAME mail.example.com Thunderbird auto-config

⚠️ PTR is non-negotiable. Gmail and Microsoft 365 both reject mail from IPs without matching forward+reverse DNS. Most VPS providers set this in their control panel, not your DNS host.

Sign in to keep track of what you have read.

Pulse · email sending

Sending infrastructure that is yours alone.

Every domain gets its own MX host, IP, DKIM selector and certificate. Take it managed, and we run it for you, or buy a licence and run it on your own servers.

# on a fresh Ubuntu server
$ cd pulse && sudo ./install.sh
→ docker compose up · kumomta · stalwart · caddy
→ dashboard ready on https://pulse.yourdomain.com
$

Also from us:Beat: monitoring that tells you the fixConsulting: $65/hr, no retainer