Configuring Custom Domain Email Authentication (SPF & DKIM)

Configuring Custom Domain Email Authentication (SPF & DKIM)

When sending automated emails from our platform using a custom sender address (e.g., notifications@yourcompany.com). Recipient email servers must verify that our platform is authorized to send messages on your behalf.

Our platform routes all outbound automated emails through Twilio SendGrid. Configuring your domain’s SPF (Sender Policy Framework) and DKIM (Domain Keys Identified Mail) records prevents system emails from landing in spam folders or bouncing due to authentication checks.

Important: DNS Record Disambiguation

  • Email CNAME Records (DKIM): The CNAME records generated in this guide are used strictly to authenticate email senders via SendGrid.
  • Web Routing CNAME Records: If you are setting up custom domain links for Web-as-a-Service (WaaS) or Web Forms hosting, please refer to our Cloud Platform IP Addresses & DNS Configuration Guide for the correct server routing targets (*.cloudapp.azure.com).

Prerequisites: Choose Your Configuration Pathway

Requirements vary based on your platform plan:

  • Standard Enterprise Accounts: You do not need a separate SendGrid account. Domain authentication is managed via our system account.
  • WaaS & Enterprise Toolkit Accounts: You must have your own Twilio SendGrid account and generate an API Key prior to starting setup.

Step 1: Add or Update Your Domain’s SPF Record

An SPF record is a TXT record in your domain’s DNS settings that lists the mail servers allowed to send email for your domain.

  1. Log in to your domain registrar or DNS hosting provider (e.g., GoDaddy, Cloudflare, Namecheap).
  2. Locate your domain’s DNS record management page.
  3. Update your SPF record using one of the options below:

Option A: Create a New SPF Record

If your domain does not currently have an SPF record, create a new TXT record:

  • Host / Name: @ (or leave blank, depending on your registrar)
  • Type: TXT
  • Value: v=spf1 include:sendgrid.net ~all

Option B: Modify an Existing SPF Record

If an SPF record already exists (e.g., v=spf1 include:_spf.google.com ~all), insert include:sendgrid.net directly before the closing ~all mechanism:

  • Existing Record: v=spf1 a mx include:_spf.google.com ~all
  • Updated Record: v=spf1 a mx include:_spf.google.com include:sendgrid.net ~all

Filtering Inbound System Emails?

If your internal IT environment requires hardcoded IP allowlisting in addition to SPF authentication, ensure 167.89.59.142 is allowed in your email security gateway. See our Platform IP Allowlisting Guide for full details.

Step 2: Configure SendGrid Domain Authentication (DKIM)

Domain Authentication grants our platform cryptographic permission to sign emails sent on your domain’s behalf using DKIM. Follow the section below matching your account type.

Pathway A: Standard Enterprise Accounts

User Access Required: VendorAdmin or EnterpriseAdmin permissions.

  1. In the web portal, navigate to:
    Organization & Users > Organization Setup > Integrations
  2. Locate the SendGrid Email Service section and click Add Domain.
  3. Enter the custom domain you wish to authenticate (e.g., yourcompany.com) and click Save.
  4. The system will display a set of generated CNAME DNS entries required for DKIM authentication.
  5. Log in to your domain registrar’s DNS manager and add the generated CNAME records.
  6. Return to the portal integration page and click Verify.

Pathway B: WaaS & Enterprise Toolkit Accounts

User Access Required: VendorAdmin or EnterpriseAdmin permissions + Active SendGrid Account.

  1. Log in to your SendGrid account and obtain an Email Service API Key with full mail-sending permissions.
  2. In our web portal, navigate to:
    Organization & Users > Organization Setup > Integrations
  3. Locate the SendGrid Email Service section and paste your key into the EmailServiceApiKey field.
  4. Click Add Domain.
  5. Enter your domain name. If assigning this domain to a specific sub-user account, enter your SendGrid Username (found in SendGrid under Settings > Subuser Management).
  6. The system will generate your custom CNAME records. Add these records to your domain provider’s DNS settings.
  7. Return to the portal integration page and click Verify.

(Optional) Enhancing Deliverability with BIMI

When configuring domain entries in the Add Domain window, you may also specify a BIMI (Brand Indicators for Message Identification) image URL.

BIMI allows supported inbox providers (such as Gmail or Outlook) to display your official brand logo next to authenticated messages in the recipient’s inbox, boosting open rates and trust. While optional, implementing BIMI improves overall email engagement.


Verification & DNS Propagation

  • Propagation Delays: DNS changes typically take effect within a few minutes, but can take 2 to 48 hours to propagate globally across all root servers.
  • Checking Status: If verification fails initially, wait a few hours and click Verify again in the portal. Once detected, your domain status will update to Verified.