Global brand launch teams often face email deliverability issues when sending from custom domains. Configuring Sender Policy Framework (SPF) records correctly is a critical step in establishing trust with receiving mail servers. This article explains the basic syntax of an SPF TXT record, where to create it, common configuration errors, and how to ensure your domain's email sources are properly authorized. We will walk through practical steps for setting up and troubleshooting SPF records to prevent spoofing and reduce bounce rates.

Understanding Why SPF Records Matter for Custom Domain Launches

Take a hypothetical launch editor at a mid-sized consumer brand who has been asked to prepare a short internal page titled “Custom Domain Email Authentication: Launch Checklist.” She keeps her working materials in a plain folder: a domain inventory spreadsheet, a blank SPF field sheet, and a one-page explainer for regional marketing leads. None of it has been reviewed by a mail provider; these are her own drafting examples.

Her checklist has four columns: domain or subdomain, sending purpose, authorized sending source, and owner. Two clearly fictional rows show how she groups them. The first reads “shop brand-example.test — transactional order mail — regional order platform’s outbound relay — Web Operations.” The second reads “news brand-example.test — monthly campaign mail — campaign tool’s sending host — Lifecycle Marketing.” She chooses the subdomain split deliberately: order mail and campaign mail have different senders and different owners, so separating them makes the authorization statement easier to read and easier to retire when a tool changes. She notes that the exact sending hosts must be confirmed on each provider’s own configuration page rather than copied from memory.

She also drafts two candidate titles for the explainer: “One Domain, One Sender List” and “Where Custom Domain Mail Is Allowed to Start.” She picks the first because it points readers toward the single authorization record per domain instead of implying a broad setup guide. Beside the title she writes a short framing line: an SPF record states which sending systems a receiving mail service may treat as authorized for that domain, and a custom-domain launch needs that statement to match the systems actually sending mail.

For a short appendix she sketches a compact record example in her notes, written as a TXT record on the bare custom domain that lists one sending source and ends with a strict qualifier, with a comment that the final policy choice belongs to the mail team. She treats this as an illustrative layout only. Her page ends with a question for each owner: which systems send mail as this domain today, and who confirms that list before launch?

Basic Syntax and Structure of an SPF TXT Record

SPF is a TXT record in DNS, and the basic syntax is written as v=spf1 followed by valid mail sources and an enforcement rule. Valid sources can be domains, IP addresses, or both: include: values name other services or domains as authorized senders, while ip4: or ip6: values identify address types and publicly resolvable IP addresses, with CIDR ranges such as 192.168.0.1/26 written in the same way.1

An example in the documentation reads v=spf1 ip4:192.168.0.10 ip4:192.168.0.12 include:spf.protection.outlook.com -all. The enforcement rule -all means sources not specified are not authorized and messages should be rejected; ~all is a soft fail, and ?all is neutral and not recommended in production.1

You can start with the blank SPF field sheet in your folder and turn it into a syntax reference before filling it in. Begin by writing one example record at the top of the sheet using ordinary text, so the shape of the record is visible without any tooling: a version tag, a mechanism for an authorized sending source, and an all qualifier at the end. Below it, add a short note that the version tag always comes first and the closing qualifier is usually placed last. This makes the ordering explicit for readers who will later compare their own entries against it.

Next to each part of the example, record a plain question the reader should be able to answer: which sending source is being authorized, and what should happen to mail that matches none of the listed sources. For the closing qualifier, add a filled example value and a one-line note on what the choice signals, so a regional lead can see that the ending is a deliberate decision rather than a leftover. Keep this note separate from the field sheet so the two can be updated independently.

For the explainer, you might draft two candidate sentences describing the record’s structure and choose the one that names the order of parts without assuming prior knowledge. If the first sentence starts with the version tag, the second can explain the mechanism and qualifier in sequence. Consider reserving a small area of the sheet for a second worked example on a subdomain, with the same fields but a different authorized source, so readers can see how one template covers both cases.

Where to Create SPF Records: Registrar vs. Admin Portal

For custom domains in Microsoft 365, Microsoft's guidance states there are no admin portals or PowerShell cmdlets for managing SPF records. The SPF TXT record is created at the domain registrar or DNS hosting service, which are often the same company.1

The same guidance notes that Microsoft provides instructions for creating the proof of domain ownership TXT record at many registrars, and these can be used as a starting point for the SPF TXT record value. Readers unfamiliar with DNS configuration are told to contact their registrar for help.1

The stated reason for this split is simply that no SPF TXT record configuration is available in Microsoft 365 itself. The record belongs in DNS alongside the domain, so the registrar or DNS host is where the work happens, not a mail admin console.1

Your SPF field sheet now has a drafted example plus short reader questions beside each part. The next choice is where that row belongs in your checklist: under “confirm the domain’s registrar access” or under “confirm admin portal access.” You can add a plain column called Access point and fill one value per row, then compare it with the domain inventory tab that lists who previously managed each domain.

For the custom domain itself, one plausible row might read: domain, launch announcement sender, one authorized sending source, regional marketing owner, access point registrar. If the same domain is also used from an admin portal the team did not set up, you might add a second row rather than overwrite the first, and note in your own words which access point you have not yet confirmed. That keeps the record tied to the person and place responsible for changes.

Before filling more rows, you can mark each as current or archived and use the same five fields for both. A current row would describe a sender now in use; an archived row could name a retired sending source and note that it stays visible for reference. This is a simple way to keep old entries from looking active without deleting your earlier work.

Resolving Conflicts: Multiple SPF Records and Lookup Limits

For the conflict scenario, Microsoft 365 guidance states that only one SPF TXT record is allowed per domain or subdomain, and that multiple records cause an SPF permerror. It also states that an SPF check returns permerror when the record exceeds the 10 DNS lookup limit or when multiple SPF records exist for the same domain.2

The same guidance explains that each include, a, mx, ptr, and redirect mechanism counts as a DNS lookup, and suggests reducing lookups by flattening the SPF record or using ip4 and ip6 mechanisms. It also notes that adding a new email service requires adding that service's SPF include to the record.2

For the conflict part of your checklist, you can take the two-row example already in your audit sheet and mark whether each row sits on the same domain name or on a separate subdomain. If both land on the same name, consider rewriting them as one combined description rather than pasting two records side by side; note in the row which sending sources need to appear together and who owns the merge. A plausible current row might read: bare custom domain, launch announcements plus regional newsletters, two authorized sending sources, marketing operations owner, status current. If you keep them apart, record which subdomain each belongs to so a later reader can see why they were split.

You can then draft a short note beside the sheet explaining lookup limits in your own words, phrased as a question the page should answer rather than a technical claim: how many separate lookups does this row appear to rely on, and what would a reader do if the count grows? Leave the answer blank for review instead of filling it in from memory.

For the explainer, you might try a candidate sentence such as “Each domain name carries one list of authorized senders, and adding a second list forces the reader to guess which one counts,” then a softer alternative that says the same thing without asserting a rule. Choose whichever sentence your regional leads could read without a glossary, and keep the other in your notes as a rejected draft.

Adding Authorized Senders When Launching New Services

When a launch adds a new sending service, Microsoft 365 troubleshooting guidance describes the likely result: SPF returns softfail or fail because the sending IP address is not included in the domain's SPF record, a result it calls common after adding a new email service or non-Microsoft relay. The stated remedy is to add the new service's SPF include to the record.2

The same guidance addresses a related failure, where DMARC reports show unexpected failures because non-Microsoft services sending on behalf of the domain are not included in its SPF record or are not DKIM-signing with the domain. It also notes that only one SPF TXT record is allowed per domain or subdomain, and multiple records cause an SPF permerror.2

For marketing automation specifically, the guidance lists adding the service's SPF include to the domain's SPF record as an option that provides an aligned SPF pass.2

You can take the blank sender row in your domain inventory and decide whether the new service belongs on the bare custom domain or on a separate subdomain before you list any sending source. One choice is to keep the launch announcement sender on the bare domain because that is where your existing row already sits; another is to give the new service its own subdomain so its authorized sender list stays separate. Write the reason beside the row, even if it is only a sentence, so a later reader can see why you placed it there.

If you choose the separate subdomain, you might add one new row rather than editing the existing one: the subdomain, the sending purpose, the one source you intend to authorize, and an owner. Leaving the bare-domain row untouched gives you two rows to compare when you check for a sender that appears in more than one list. If you choose the bare domain instead, consider marking the existing row as current and adding a short note that the launch sender was added, rather than replacing the original purpose.

Before you settle on either placement, you can write the sentence a regional marketing lead would need to read: which domain name sends launch mail, and which source is named for it. If that sentence becomes confusing when you read it aloud, the placement may be the problem rather than the wording. You can revise the sentence first and then move the row, so the checklist and the explainer stay consistent.

Your next step is to open the SPF field sheet and add the chosen row with its five fields filled in, then compare it against the existing row for an overlapping source.

Validating Your Configuration and Next Steps

Validation, as described in the Alibaba Cloud email documentation, comes only after the record is saved and the change has propagated. The source says to wait patiently for the SPF value to take effect worldwide, noting a maximum of 48 hours, and only then to test, which it says can prevent rejection by Gmail.3

The same source cautions that different SPF records conflict, so only one record should remain at the host record at sign, the one whose value begins with v=spf. If other such records exist, they should be deleted; if none exist, that step can be ignored.3

For a domain with an existing SPF value, the documentation gives a specific combination: the step 2 value should incorporate the additional include mechanism alongside the newer one, and the note says to ignore this if no such existing record is present.3

Open your SPF field sheet and add the chosen sender row with all five fields filled in, then place it directly beside the existing row for an overlapping sending purpose so the comparison is visible at a glance. For each row, you can write one short sentence stating what the reader should conclude: whether the two entries share a domain name, whether they name the same sending source, and which row your page presents first.

You might then annotate the appendix example with a brief note in your own words about lookup limits, phrased as a question the explainer should answer rather than a technical claim. For instance: “If a reader adds a second authorized sender list here, what happens to the first?” Keep that question beside the example record so the page’s reader-facing sentence and your drafting note stay connected.

Before circulating the draft, you can prepare a small self-review note listing what remains unverified: the example record’s syntax, the lookup-limit wording, and whether the subdomain row belongs under current or archived. Label each item as a drafting question, not a confirmed fact. Your next step is to choose one of the two candidate titles for the explainer and match the field sheet’s row order to that title, so the checklist and the explainer tell the same story to a regional marketing lead.

Frequently asked questions

What four columns does her checklist have?

Her checklist has four columns: domain or subdomain, sending purpose, authorized sending source, and owner. Two clearly fictional rows show how she groups them.

Where can you put an example record on the blank SPF field sheet so its shape is visible without tooling?

You can start with the blank SPF field sheet in your folder and turn it into a syntax reference before filling it in. Begin by writing one example record at the top of the sheet using ordinary text, so the shape of the record is visible without any tooling: a version tag, a mechanism for an authorized sending source, and an all qualifier at the end.

How can you decide whether the new service belongs on the bare custom domain or on a separate subdomain before listing any sending source?

You can take the blank sender row in your domain inventory and decide whether the new service belongs on the bare custom domain or on a separate subdomain before you list any sending source. One choice is to keep the launch announcement sender on the bare domain because that is where your existing row already sits; another is to give the new service its own subdomain so its authorized sender list stays separate.