Open Webmail
Self-hosting & DNS·6 min read

Domains, DNS & deliverability

Configure MX, strict SPF (-all), 2048-bit RSA DKIM, DMARC, MTA-STS, and TLS-RPT for reliable inbox placement.

The 7 required DNS records

Adding a domain generates an RSA-2048 DKIM keypair and seven DNS records. If you connect a Cloudflare API token, Zinq syncs all records automatically.

TypeHostValuePurpose
MX@mail.example.com (priority 10)Routes incoming email to Zinq
AmailYOUR_SERVER_IPPoints mail subdomain to server IPv4
TXT@v=spf1 mx a:mail.example.com -allStrict SPF authorization
TXTzinq._domainkeyv=DKIM1; k=rsa; p=MIIBIj...2048-bit DKIM signature key
TXT_dmarcv=DMARC1; p=quarantine; rua=mailto:postmaster@example.comDMARC spoofing protection
TXT_mta-stsv=STSv1; id=2026120601MTA-STS policy advertisement
TXT_smtp._tlsv=TLSRPTv1; rua=mailto:postmaster@example.comTLS delivery reports

MTA-STS policy file

Zinq serves /.well-known/mta-sts.txt automatically. Point mta-sts.yourdomain.com to your server so external MTAs can fetch the policy over HTTPS.

GET /.well-known/mta-sts.txt
version: STSv1
mode: testing
mx: mail.example.com
max_age: 86400
Avoid double-root hostnames
Cloudflare, Namecheap, and Porkbun append your root domain automatically. Enter zinq._domainkey (not zinq._domainkey.example.com) in the Host field.