DNS Setup with Popular Providers
This guide explains Short step-by-step DNS setup guides for registrars like Cloudflare, Namecheap, and GoDaddy. so you can complete the TrekMail task with confidence.
Article details
Type, difficulty, plans, and last updated info.
▼
Article details
Type, difficulty, plans, and last updated info.
- Type
- Reference
- Difficulty
- Beginner
- Plans
- Nano · Starter · Pro · Agency
- Last updated
- Apr 29, 2026
Every DNS provider has a slightly different interface. Here are quick tips for the most common providers when adding TrekMail records.
Cloudflare
Recommended: One-Click Setup
The fastest method — no API token needed:
- Open your domain's DNS & Health tab in TrekMail.
- Click Set up DNS automatically.
- Approve the records on Cloudflare's consent screen.
- Done — all records are created instantly.
Alternative: Bulk Setup via API Token
To set up many Cloudflare domains at once:
- Go to Domains and click the Cloudflare tab in the "Add a domain" card (or go directly to
/app/domains?add=cloudflare). - Follow the 3-step wizard:
- Step 1: Create a Cloudflare API token — Permissions: Zone → DNS → Edit, Zone Resources: All zones.
- Step 2: Review your domains (all selected automatically).
- Step 3: Review and apply DNS records.
The wizard adds new domains to TrekMail and creates all required records (MX, SPF, DKIM, DMARC) plus recommended records (TLSRPT, MTA-STS) with the correct settings, including disabling the proxy for mail records.
For a detailed walkthrough, see Cloudflare Automatic DNS Setup.
Manual Setup
If you prefer to add records manually:
- Go to DNS -> Records.
- Add MX and TXT records.
- Important: Turn Proxy Status (Orange Cloud) to OFF (Grey Cloud) for all mail-related records (MX, SPF, DKIM, DMARC).
- Why? Cloudflare's proxy is for HTTP/Web traffic. It breaks email protocols if enabled on mail records.
Namecheap
- Go to Domain List -> Manage -> Advanced DNS.
- Under Mail Settings, select Custom MX.
- Add the TrekMail MX record.
- Add TXT records in the Host Records section.
- Note: For the root domain, Namecheap uses
@as the Host.
- Note: For the root domain, Namecheap uses
GoDaddy
- Go to DNS Management.
- Click Add.
- Type: Choose MX or TXT.
- Name: Enter
@for the root domain, or the specific subdomain (e.g.,_dmarc).- Note: GoDaddy automatically appends your domain name. Do not type
_dmarc.example.com. Just type_dmarc.
- Note: GoDaddy automatically appends your domain name. Do not type
- TTL: Leave as default (1 Hour).
AWS Route53
- Go to Hosted Zones and select your domain.
- Click Create record.
- Record Name: Leave blank for root (
@) records. - Value: Paste the value.
- DKIM Note: Route53 handles long keys automatically, but if you paste via the API, ensure you handle line breaks correctly. In the console, just paste the full string.
Common mistakes
- Proxying Mail Records: Never use Cloudflare's orange cloud for MX or DKIM. (TrekMail's auto-add feature handles this automatically.)
- Double Domain Names: If you type
_dmarc.example.cominto a field that expects just_dmarc, you end up with_dmarc.example.com.example.com. Use a global DNS checker to verify if this happened.
Related articles
Jump to nearby guides that continue the workflow.