Halloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon US: current deals, useful picks and tech finds.Check DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PCHalloween DealsAmazon USOctober picks are moving - compare before checkoutAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk5 min

How to Set Up DNS for SaaS Email: SPF, DKIM, and DMARC

Authenticate SaaS email without breaking existing mail: publish provider-issued records, coordinate SPF, align DMARC, and verify with test messages.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To set up DNS for SaaS email, publish the exact verification and authentication records supplied by your email provider, make sure SPF accounts for every system that sends from the domain, and configure DMARC so it aligns with the visible From address. First inventory your senders and identify the DNS provider that hosts the authoritative zone; changing outbound authentication records should not disrupt existing inbound mail routing.

Before changing DNS, identify the zone and every sender

Your registrar and DNS host may be different companies. Sign in to the service that manages the domain’s authoritative DNS zone, then list every system that sends email using the domain or its subdomains. Include mailbox hosting, transactional notifications, website forms, invoices, support tools, and marketing messages. Google specifically advises including third-party services when building an SPF policy: Google Workspace: Set up SPF.

As an Amazon Associate I earn from qualifying purchases.

Record the visible From domain and any separate return-path or MAIL FROM domain used by the SaaS provider. This distinction matters for DMARC: at least one of SPF or DKIM must both pass authentication and align with the domain shown in From.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

What SPF, DKIM, and DMARC do

Record or mechanism Purpose DNS role
SPF Identifies which sending systems are authorized for a domain. A TXT policy on the domain used for the SPF check.
DKIM Lets receiving servers validate a message signature using a public key. Typically a provider-specified TXT record or provider-managed CNAME.
DMARC Connects SPF and DKIM results to the visible From domain through alignment, and sets a policy and reporting mechanism. A TXT record at _dmarc.<domain>.

These mechanisms complement one another; they are not interchangeable. For details on Google’s DKIM setup and key lengths, see Google Workspace: Set up DKIM. Amazon Web Services explains DMARC alignment and policy in its Amazon SES DMARC documentation.

Publish the SaaS provider’s exact records

There is no universal DNS record set for SaaS email. Use the record name, type, and value shown in the selected service’s current setup console; records from another provider’s instructions are not substitutes. A provider may require TXT records for verification or DKIM, CNAME records that point to provider-managed authentication infrastructure, or records for a separate sending domain.

For example, Twilio SendGrid’s domain-authentication process generates provider-specific records, including a CNAME for its branded domain setup. Its instructions are at Twilio SendGrid: Set up domain authentication. Google describes DKIM as a public/private key arrangement: the sending system signs with the private key, while the public key is published in DNS. Google recommends a 2048-bit key where supported; its guidance says personal Gmail delivery requires at least 1024 bits.

Build one coordinated SPF policy

For each domain or subdomain used to send mail, maintain one SPF TXT policy that includes all current senders according to their documentation. If you already have SPF, update that policy rather than adding a second SPF record. Multiple SPF policies for the same domain can cause SPF evaluation to fail.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Google’s example for a domain sending only through Google Workspace is v=spf1 include:_spf.google.com ~all. It is only an example for that configuration; do not copy it unchanged if a SaaS service, website, or other system also sends from the domain. Google recommends ~all in its guidance and advises removing authorizations for senders or IP addresses no longer in use.

Google’s SPF guidance allows a maximum of 10 include: tags. If many services send mail, review the complete SPF lookup behavior rather than adding authorizations indefinitely. The guidance and example are in Google’s SPF setup instructions.

Add DMARC in monitoring mode before enforcement

Create a TXT record named _dmarc at the domain you intend to monitor. DMARC evaluates whether the authenticated SPF domain or DKIM signing domain aligns with the visible From domain. A message can pass SPF or DKIM without passing DMARC if the authenticated domain does not align.

For a new setup or one with unknown senders, begin with a monitoring policy such as p=none and review aggregate reports to find legitimate services that are not yet authenticated. AWS recommends a gradual rollout before moving to enforcement. Its documentation includes an example with p=quarantine and a reporting destination, but the right policy depends on the domain’s actual traffic; do not jump to enforcement before you understand that traffic. See AWS’s DMARC guidance.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Keep inbound MX routing separate

MX records determine where incoming email for a domain is routed. Do not replace existing MX values simply because an outbound SaaS service asks you to authenticate email. Check what domain the requested record applies to and what function it serves before making a change.

Some services require an MX record for a dedicated return-path domain. For Amazon SES custom MAIL FROM, the MAIL FROM domain must be a subdomain of a verified identity’s parent domain and should not also be used for ordinary sending or receiving. SES requires an MX and SPF TXT record on that selected subdomain; this is distinct from replacing the organization’s ordinary inbound-mail MX records. See Amazon SES: Using a custom MAIL FROM domain and Amazon SES MAIL FROM MX requirements.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Verify the records and test a message

  1. Publish the records. Enter each provider-issued record at the DNS host, preserving its type, name, and value. Be alert to DNS interfaces that append the domain name automatically to a record name.
  2. Use the SaaS console’s verification controls. Wait for the provider to detect the records. Google says SPF can take up to 48 hours to start working after publication; other records and provider checks depend on DNS propagation and the provider’s verification process.
  3. Send a test message and inspect its full headers. Check that SPF and DKIM pass, then confirm that at least one passing mechanism aligns with the visible From domain for DMARC.
  4. Review DMARC reports before tightening policy. Identify legitimate senders that are missing or misconfigured, update their authentication, and only then consider a stricter policy.
  5. Document ownership and purpose. Note who owns each DNS entry, what service depends on it, and when it can be retired. Remove an old sender authorization only after confirming that service no longer sends for the domain.

Gmail sender requirements and deliverability

Google’s Gmail guidance, effective February 1, 2024, says all senders to Gmail accounts must configure SPF or DKIM and meet other requirements, including valid forward and reverse DNS for sending IPs and TLS in transit. Senders exceeding 5,000 messages per day to Gmail accounts must configure SPF, DKIM, and DMARC. For direct mail, the visible From domain must align with either the SPF domain or the DKIM domain. These are requirements for delivery to Gmail accounts, not a universal rule for every mailbox provider. Check Google’s current Email sender guidelines for current policy details.

Google’s same guidance says bulk senders should keep the spam rate reported in Postmaster Tools below 0.30%; marketing or subscribed messages must support one-click unsubscribe and include a visible unsubscribe link. Authentication improves the integrity of sender identification and is required for some Gmail senders, but it does not guarantee inbox placement or prevent spam filtering.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Outdated Drivers Are Slowing You DownFree scan - exact matches
PC Slower Than It Used to Be?Free scan - under a minute

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.