Setting Up Custom Domains
Use your own registered domain with CodaMail for a fully branded email experience
Your Domain, Our Infrastructure
CodaMail lets you host your own registered domains with full feature integration. Your custom domains work exactly like our provided domains, including catch-all addressing, masked aliases, account aliases, mail filtering, blocking, and auto-encryption.
You can host unlimited domains. There is no extra charge for this feature.
Adding Your Domain
Step 1: Add the domain in CodaMail
- Log in and go to Settings → Private Domains
- Enter your domain name (e.g.,
example.com) and click Add - CodaMail will generate a unique verification code and display two DNS values you need to add to your domain
Step 2: Add the verification TXT record
At your DNS provider (Cloudflare, Namecheap, GoDaddy, etc.), add a TXT record:
Type: TXT
Host: _codamail-verify.example.com
Value: (the verification code shown in CodaMail)
TTL: 300 or higher
The host and value fields are displayed in CodaMail with copy buttons for easy clipboard access. DNS provider instructions for Cloudflare, Namecheap, GoDaddy, AWS Route 53, DigitalOcean, and BIND are shown in an expandable section on the page.
Step 3: Verify the domain
After adding the TXT record, allow a few minutes for DNS propagation, then click the Verify button in CodaMail. Once verified, the domain status changes from Pending to Verified.
Step 4: Configure email DNS records
After verification, click the "DNS Records" button on your domain to see the full email configuration. Add these records at your DNS provider:
MX Record:
example.com IN MX 10 mail.pnsh.com
SPF Record (TXT):
example.com IN TXT "v=spf1 a mx a:smtp.pnsh.com ~all"
DMARC Record (TXT):
_dmarc.example.com IN TXT "v=DMARC1; p=reject; rua=mailto:dmarc@example.com"
The MX record directs incoming mail to our servers. The SPF and DMARC records help prevent others from spoofing your domain and improve deliverability.
Subdomains
If you have already verified a parent domain (e.g., example.com), any subdomains you add (e.g., shop.example.com) are automatically verified without requiring an additional DNS check. Simply add the subdomain in Settings → Private Domains and it will be active immediately.
What Works with Your Custom Domains
Once verified, your domain is fully integrated with every CodaMail feature:
Troubleshooting
- Verification fails: DNS changes can take time to propagate. Wait 15-30 minutes and try again. Some providers may take longer.
- Not receiving mail: Verify your MX record is set correctly. You can check with an online MX lookup tool. Make sure no other MX records exist with a higher priority (lower number) than 10.
- Mail going to spam at recipients: Make sure your SPF and DMARC records are in place. These authenticate your domain and improve deliverability.
- Pending domains are automatically removed after 30 days if not verified. If yours was removed, simply add it again.
If you need further assistance, contact helpdesk@codamail.com.
