Custom Domain Email Setup: MX, SPF, DKIM, and DMARC Without Delivery Problems
domain emailMX recordsSPFDKIMDMARC

Custom Domain Email Setup: MX, SPF, DKIM, and DMARC Without Delivery Problems

ddummies.cloud Editorial Team
2026-12-06
7 min read

Set up custom domain email safely with a practical checklist for MX, SPF, DKIM, and DMARC records, testing, forwarding, and troubleshooting.

Setting up email on a custom domain involves more than creating a mailbox: you must publish the right DNS records, verify sender authentication, and test both sending and receiving. This reusable checklist explains how to add MX records and configure SPF, DKIM, and DMARC without disrupting an existing website or email service.

Overview

A custom domain email address, such as [email protected], normally depends on an email hosting provider. The provider supplies mailbox access and tells you which DNS records to add at your domain registrar, DNS host, or DNS management service. The exact record values vary by provider, so use this article as a workflow rather than copying example values into production.

DNS records perform different jobs:

  • MX records tell other mail servers where to deliver messages for your domain.
  • SPF identifies servers that are allowed to send mail for your domain.
  • DKIM adds a provider-generated signature to outgoing messages so recipients can check that the message was authorized and not changed in transit.
  • DMARC tells receiving systems how to evaluate messages that fail SPF or DKIM checks and where to send aggregate or forensic reports, when reporting is enabled.

These records are separate from your website records. Adding MX or TXT records usually does not replace an A record, CNAME record, or SSL configuration for the site. However, careless changes can affect an existing email service, so document the current DNS zone before editing it. For a broader reference, see DNS records explained.

Checklist by scenario

Scenario 1: Setting up email on a domain with no existing email

  1. Choose and activate an email provider. Create the organization, domain, and required mailbox or user accounts with the provider. Record the provider's setup instructions in a secure project note.
  2. Confirm the DNS management location. Sign in to the service that hosts the domain's authoritative nameservers. This may be your registrar, a DNS platform, or a hosting company. Changing records in a different dashboard will not affect the live domain.
  3. Add the provider's MX records. Enter each hostname, priority, and TTL exactly as supplied. If the provider requires several MX records, add all of them. Do not add unrelated MX records simply because they appear in an old tutorial.
  4. Add SPF as a TXT record. Use the provider's exact SPF value. If the domain already has an SPF record, edit and consolidate it rather than publishing a second SPF record. SPF is intended to be represented by one policy for a domain.
  5. Generate or enable DKIM. Many providers display a selector and a TXT or CNAME target after you add the domain. Publish the requested record at the correct hostname, then use the provider's verification control.
  6. Publish DMARC cautiously. Begin with a monitoring-oriented policy if you do not yet know which services send mail for the domain. Review reports or provider diagnostics before moving to a stricter enforcement policy.
  7. Test both directions. Send messages to an external test address and reply to the new mailbox. Check headers for SPF, DKIM, and DMARC results where the receiving service exposes them.

Scenario 2: Adding a mailbox while keeping an existing provider

First determine whether the current service is handling all mail or whether the domain uses split delivery, forwarding, or a migration arrangement. MX records generally direct a domain's incoming mail to the listed service or services; they do not route mail separately based on the individual mailbox. Ask the current provider how additional users should be provisioned before changing MX records.

Keep the existing MX records unless the migration plan explicitly replaces them. Add or update DKIM only after confirming which provider sends the messages. Review SPF carefully if the new service sends mail alongside the old one. A complete SPF policy must account for every legitimate sending platform, including application alerts, newsletter tools, support systems, and website forms.

Scenario 3: Moving email to a new provider

  1. Inventory current mailboxes, aliases, forwarding rules, shared addresses, calendars, applications, and devices.
  2. Lower the DNS TTL ahead of the change only if your migration plan calls for it; TTL changes do not instantly remove cached DNS data.
  3. Create and verify users at the new provider before switching delivery.
  4. Export or migrate existing messages using the providers' supported method.
  5. Update MX, SPF, DKIM, and DMARC in the planned order, recording the previous values.
  6. Test inbound mail, outbound mail, replies, aliases, forwarding, and application-generated messages.
  7. Keep the old service available for the agreed transition period, then remove obsolete DNS records and accounts only after verification.

Scenario 4: Using forwarding instead of hosted mailboxes

Forwarding can be useful for receiving messages at an existing personal or business inbox, but it is not always equivalent to full email hosting. Replies may need to use a configured “send as” address, and forwarded messages can be affected by authentication checks. Confirm whether the forwarding service supports outbound sending, DKIM signing, bounce handling, and destination management before relying on it for business communication.

What to double-check

RecordCheck before publishingTypical purpose
MXHostname, priority, root-domain placement, and obsolete recordsRoutes incoming mail
SPFOne policy, correct sending services, and exact syntaxAuthorizes sending servers
DKIMSelector, record type, host/name formatting, and provider verificationSigns outgoing messages
DMARCPolicy, reporting address, alignment settings, and known sendersApplies authentication rules and reporting

Pay special attention to the DNS editor's handling of the root domain. Some dashboards expect @, while others expect the domain name or a blank host field. A provider's DKIM value may be a long TXT string or a CNAME target; use the record type specified by that provider. Avoid adding quotation marks manually unless the DNS interface requests them.

Also check for hidden senders. Website contact forms, monitoring systems, billing platforms, CRM tools, help desks, and server scripts may send using your domain. If they are omitted from SPF or do not use DKIM, DMARC reports may reveal failures after deployment.

Common mistakes

  • Replacing website records while adding email: MX and TXT changes do not require deleting the site's A, AAAA, or CNAME records.
  • Publishing two SPF records: Combine authorized services into one provider-compatible policy instead of creating separate SPF TXT records.
  • Leaving old MX records in place: An obsolete mail destination can cause inconsistent delivery or send messages to the previous provider.
  • Using sample DKIM values: DKIM keys are provider- and domain-specific. Copy the value generated for your domain.
  • Enforcing DMARC immediately: A strict policy can affect legitimate mail if all sending sources are not known and authenticated. Monitor first when appropriate, then tighten the policy based on evidence.
  • Assuming propagation is instant: DNS caches and provider verification systems may take time to observe a change. Check authoritative DNS and allow for caching before repeatedly editing records.
  • Testing only from one inbox: Test delivery to more than one destination when possible, and inspect message headers rather than relying only on whether a message appeared.
  • Using a catch-all without considering abuse: Catch-all mailboxes accept messages for unspecified addresses, which can increase unwanted mail and make address mistakes harder to notice.

If delivery fails, start with the basics: confirm the domain's nameservers, query the live MX records, check that the mailbox exists, inspect bounce text, and verify the provider's domain status. Then review SPF, DKIM, and DMARC results in the message headers. The DNS troubleshooting checklist can help separate a DNS problem from a mailbox or application problem.

When to revisit

Keep this checklist with your domain documentation and revisit it before adding a new mailbox, launching a service that sends email, changing providers, or moving DNS management. It is also worth reviewing before seasonal planning cycles when marketing, support, billing, or transaction systems may change.

Recheck the configuration whenever your provider changes its required MX, DKIM, SPF, or DMARC values, or when a new sending application is introduced. Review DMARC reports periodically if reporting is enabled, looking for unknown senders, authentication failures, and forwarding patterns. Do not remove a record solely because it is unfamiliar; identify its owner first.

For the final handoff, save a dated copy of the DNS records, provider verification status, mailbox list, forwarding rules, and test results. Restrict access to the registrar and DNS account, enable strong account protection, and make sure another responsible administrator can recover the configuration. For account and domain safeguards, use the domain security checklist. This documentation turns future troubleshooting or a provider migration into a controlled change rather than a guess-and-check exercise.

Related Topics

#domain email#MX records#SPF#DKIM#DMARC
d

dummies.cloud Editorial Team

DNS and Hosting Editors

Senior editor and content strategist. Writing about technology, design, and the future of digital media. Follow along for deep dives into the industry's moving parts.