This guide shows a production-safe way to connect your domain to MailSlurp for sending and receiving email.

You will complete:

  • domain registration (if needed),
  • MailSlurp domain onboarding,
  • DNS verification with TXT, MX, and DKIM records,
  • inbox creation and catch-all behavior validation.

For API details, use custom domains docs.

Before you start

  • Use a root domain like (not ).
  • Confirm you can edit DNS records in your registrar.
  • If this domain already has email service, plan MX migration carefully.

If existing production mailboxes depend on current MX records, perform a controlled cutover window.

Step 1: Register or select a domain

Use any registrar that supports TXT, MX, and CNAME management.

buy email domain

Step 2: Create a MailSlurp account

Sign up at MailSlurp, then open Domains in the dashboard.

domains

Step 3: Add your domain in MailSlurp

Click New domain, enter your domain, and submit.

domains

MailSlurp will generate DNS records specific to your account.

Step 4: Copy DNS records from MailSlurp

These values are unique. Copy from your dashboard, do not reuse example values.

domains

Step 5: Add DNS records at your registrar

domains

5.1 Add verification TXT record

This proves domain ownership.

domains

5.2 Add inbound MX record

This routes inbound mail to MailSlurp.

domains

If your registrar uses separate fields:

  • If you encounter two fields enter for and for the value.
  • If only one field is given, use:

5.3 Add DKIM CNAME records

DKIM is required for sender trust and better inbox placement.

domains

Step 6: Verify DNS and domain status

Use the domain testing widget in MailSlurp:

tester

When verified, your domain card shows a verified badge.

verified

MailSlurp can also create a wildcard/catch-all inbox. See catch-all guide.

Step 7: Create custom inbox addresses

After verification, create inboxes like or .

custom create

View the inbox and confirm receive/send behavior:

custom view

Production rollout checklist

  • Verify TXT, MX, and DKIM are all green before launch.
  • Send test messages to multiple mailbox providers.
  • Validate SPF/DKIM/DMARC alignment on outbound traffic.
  • Set monitoring for bounce and complaint trends.

For deliverability controls, see: