Setting up a custom sending domain takes about 30 minutes and 3 DNS records: SPF, DKIM and DMARC. Add the records your email platform gives you, wait up to 48 hours for DNS to spread, then verify each record passes before you send.

Key facts

  • A custom sending domain lets your email platform send from an address on your own domain instead of a shared domain.
  • Three DNS records do the work: SPF lists allowed senders, DKIM signs each message, and DMARC tells inboxes what to do when checks fail.
  • Gmail and Yahoo have required SPF or DKIM from every sender since 1 February 2024, and all three records from bulk senders.
  • Bulk senders are domains sending about 5,000 messages a day to Gmail; they must also offer one-click unsubscribe and keep spam complaints below 0.3%.
  • DNS changes can take up to 48 hours to spread, so verify records before sending your first campaign.

What each record does

RecordWhat it provesWhere it lives
SPFWhich servers may send for your domainTXT record on the domain itself
DKIMThe message was not changed and was signed by your domainTXT or CNAME record at selector._domainkey
DMARCWhat inboxes should do when SPF or DKIM failsTXT record at _dmarc

Bulk sender rules by provider

RequirementGmailYahooOutlook
SPF and DKIMBoth for bulk sendersBoth for bulk sendersBoth for high-volume senders
DMARC policyAt least p=noneAt least p=noneAt least p=none
Spam complaint rateBelow 0.3%, aim below 0.1%Below 0.3%No published limit
One-click unsubscribeRequired for marketing mailRequired for marketing mailEasy unsubscribe link

1. Add your domain in your sending platform

Start in your email platform, not in DNS. Open its domain authentication or sending domain page and add the domain you want to send from, such as mail.yourdomain.com. The platform will show the exact DNS records to publish.

Copy the values exactly, including every character, because one typo breaks the check. Most platforms check the records for you and show a green tick when each one is found. Do not send campaigns until every record shows as verified.

2. Publish one SPF record

SPF is a single TXT record on your domain that lists every service allowed to send email as you. Add one include for each sending service, such as your inbox provider, your email platform and your shop.

Publish exactly one SPF record, because two records starting with v=spf1 are a permanent error and SPF then fails for every message. SPF also allows at most 10 DNS lookups, and includes inside includes count toward that limit.

v=spf1 include:_spf.google.com include:amazonses.com ~all

3. Turn on DKIM signing

DKIM adds a digital signature to every message, so inboxes can check it was not changed in transit. Your platform generates a key pair and gives you a public key to publish.

Publish it as a TXT record, or as CNAME records your platform can rotate itself. The record lives at selector._domainkey on your domain, where the selector is a label your platform picks. Choose a 2048-bit key where your DNS provider supports it.

After publishing, switch signing on in your platform dashboard. It will check the record and confirm when signing is live. Do not skip this step, because publishing the key without turning signing on leaves your mail unsigned.

4. Add DMARC, starting at p=none

DMARC is a TXT record at _dmarc on your domain. It tells inboxes what to do when SPF or DKIM fails, and where to send reports about failed mail. Add it only after SPF and DKIM pass for your real senders, and confirm they have worked for at least 48 hours first.

Start with a monitoring policy of p=none and a reporting address, so you collect data without blocking mail. Read the reports for a week or two, fix any legitimate sender that fails, then move to p=quarantine and finally p=reject. Never jump straight to p=reject, or you can block your own mail.

v=DMARC1; p=none; rua=mailto:[email protected]

5. Verify and warm up

Send a test message to a Gmail and a Yahoo address, then open the message details and check that SPF, DKIM and DMARC all show as pass. Free checkers such as Google Postmaster Tools also show your spam complaint rate, which should stay below 0.1% and never reach 0.3%.

If you send from a new domain, warm it up slowly over 2 to 4 weeks, starting with your most engaged readers. Sending a large volume on day one looks like spam and can hurt your reputation for months. Keep list hygiene tight and remove addresses that never open.

For the warm-up plan in detail, see how to warm up an email domain.

FAQ

How long does it take to set up a custom sending domain?

About 30 minutes to add the records, plus up to 48 hours for DNS to spread. Verify each record passes before you send your first campaign.

What is the difference between SPF, DKIM and DMARC?

SPF lists the servers allowed to send for your domain, DKIM signs each message so inboxes can check it was not changed, and DMARC tells inboxes what to do when either check fails.

Do I need DMARC if I already have SPF and DKIM?

Yes, if you send in bulk. Gmail, Yahoo and Outlook require a DMARC record of at least p=none from bulk senders, and DMARC is what stops others spoofing your domain.

What happens if I publish two SPF records?

SPF fails for every message. A domain may have only one SPF record, so merge every sender into a single record with one include per service.

Can I use my root domain or do I need a subdomain?

Either works. Many teams send from a subdomain such as mail.yourdomain.com, which keeps marketing mail separate from employee mail and protects the root domain reputation.

Sources