How to set up DMARC/DKIM/SPF for Cloudblast
Published 12 Jul 2026
Updated 13 Nov 2026
13 min read
Summarize with

Updated on 13 Nov 2026: We clarified DNS publishing, strict domain matching, and bounce routing for Cloudblast mail servers, and corrected the guidance on DKIM failures and report-based alerts.
Cloudblast provides VPS infrastructure, so configure email authentication in the mail server or control panel running on the Cloudblast instance. Cloudblast supplies the IP address and configurable reverse DNS. The mail stack supplies the envelope sender, DKIM key, hostname, and SMTP service. SPF authorizes the server IP, DKIM signs each message, and DMARC checks whether at least one passing method matches the visible From domain.
Confirm the sending architecture
For a self-managed Cloudblast VPS, authorize the sending IP with ip4 or ip6 and use the DKIM public key generated by your installed mail stack. Do not invent a Cloudblast SPF include or copy a DKIM selector from an unrelated server.
- Cloudblast layer: VPS, public IP, firewall, and reverse DNS.
- Mail layer: SMTP hostname, return path, DKIM signing, and message submission.
Confirm the VPS can send mail
Check the Cloudblast instance before publishing authentication records. SPF, DKIM, and DMARC can pass while mail still fails at the network connection or gets filtered because of the assigned IP's history.
- Confirm IP stability: Use a stable public IP and record whether a rebuild or migration can replace it. Any IP change requires SPF, A, and PTR updates.
- Test SMTP egress: Verify that the VPS can connect outbound on TCP port 25. Check both the server firewall and Cloudblast network restrictions, and confirm account eligibility with Cloudblast if access is blocked.
- Check IP history: Check the assigned IP for blocklist (blacklist) listings and unexpected prior sending history before using it for production mail.
- Secure the mail stack: Prevent open relay, require authentication for message submission, and install a valid TLS certificate for mail.example.com.
Direct delivery to recipient mail servers uses TCP port 25. Ports 587 and 465 are for authenticated message submission; changing the application port does not bypass a blocked direct-delivery connection.
Blocklist checker
Check your domain or IP against 144 blocklists.















Send over IPv6 only after the IPv6 address has matching AAAA, PTR, and SPF coverage and follows the same DKIM-signed path. Otherwise, keep outbound mail on IPv4 so the server does not bypass the records tested below.
Publish records at your DNS provider
Publish SPF, DKIM, and DMARC TXT records at the authoritative DNS provider identified by your domain's nameservers. Hosting the mail server on Cloudblast does not move the domain's DNS there. Save a copy of existing records before editing.
The examples use example.com and the documentation IP 203.0.113.25. Replace them with your domain and sending IP. In DNS panels that append example.com automatically, use these relative host names:
|
|
|
|---|---|---|
SPF for example.com | example.com | @ |
SPF for bounce.example.com | bounce.example.com | bounce |
DKIM selector cb1 | cb1._domainkey.example.com | cb1._domainkey |
DMARC for example.com | _dmarc.example.com | _dmarc |
TXT host fields for a DNS zone named example.com
Use the full DNS name only when your provider requires it. Check the saved name to avoid duplicates such as _dmarc.example.com.example.com. DNS propagation depends on caching and TTL (time to live): verify the authoritative answer first, then public resolvers, and allow cached answers to expire before retesting.
Configure the mail hostname and rDNS
First add example.com to the mail software installed on the Cloudblast VPS, then set mail.example.com as the SMTP hostname. For a self-managed VPS, the exact domain-verification menu depends on the installed stack. The DNS plan stays the same across Postfix, a hosting control panel, or another SMTP application.
- Create the sending domain: Add example.com in the installed mail stack and select it for the visible From address.
- Choose the mail hostname: Use mail.example.com for the SMTP greeting, forward DNS, and reverse DNS.
- Set forward DNS: Publish an A record that points mail.example.com to the assigned Cloudblast IPv4 address. Add AAAA only if the server sends over IPv6.
- Set reverse DNS: Set the IP's PTR value in Cloudblast to mail.example.com and confirm that forward and reverse lookups match.
Forward and reverse DNS targetsDNS
mail.example.com. 300 IN A 203.0.113.25 25.113.0.203.in-addr.arpa. 300 IN PTR mail.example.com.
The PTR line shows the required reverse lookup result. Set it through Cloudblast's reverse DNS controls or support, rather than adding it to the example.com DNS zone; the IP provider controls the reverse zone.

Cloudblast VPS IP address and reverse DNS (PTR) settings
Domain verification depends on the mail stack
If the installed application gives you a TXT verification token, publish that token exactly and wait until the application marks the domain verified. That token proves control of the domain but does not replace SPF, DKIM, or DMARC.
Set up SPF
Authorize each Cloudblast IP at the domain used in the SMTP MAIL FROM address. Use an envelope sender such as bounces@bounce.example.com or bounces@example.com so SPF's relaxed domain match can pass for a visible From address at example.com. The receiving server writes this envelope address into Return-Path; adding a Return-Path header in application code does not configure MAIL FROM.
- Inventory all senders: List every IPv4 and IPv6 address that sends with this MAIL FROM domain.
- Edit the existing record: Merge the Cloudblast IP into the current SPF record at the chosen MAIL FROM domain. Never publish a second SPF record at the same hostname.
- Set the envelope sender: Configure the mail stack to use an address at bounce.example.com for relaxed matching. If the existing DMARC policy has aspf=s, use an address at example.com for an exact match with From addresses at example.com.
- Limit the scope: End with -all only after every legitimate sender has been added. Use ~all during a controlled migration if the inventory is incomplete. A softfail from ~all is not an SPF pass and cannot satisfy DMARC.
SPF record when MAIL FROM uses example.comDNS
example.com. 300 IN TXT "v=spf1 ip4:203.0.113.25 -all"
Replace the documentation IP with the address assigned to your VPS. If MAIL FROM uses bounce.example.com, publish the policy at bounce.example.com instead because SPF does not inherit from example.com. If the same hostname already authorizes another sender, keep its mechanism in the single record. SPF evaluation allows at most ten lookup-causing terms, including nested includes and redirect; exceeding the limit returns permerror. Direct ip4 and ip6 mechanisms do not consume that budget.
Make the MAIL FROM address able to receive delivery-status notifications. For bounce.example.com, configure an MX record and the receiving mail stack to accept bounces, or retain a working inbound route. SPF does not route bounces. Keep example.com's existing MX records unless you are intentionally moving incoming mail.
SPF checker
Find SPF syntax issues, lookup limits, and weak records.
?/16tests passed
Run the check against the exact MAIL FROM domain, not only the visible From domain. A syntactically valid record still fails operationally when the message leaves through an unlisted IP.
Some external sending systems do not let you customize the MAIL FROM domain. In that case SPF can fail to match the From domain, which is acceptable when DKIM passes and its signing domain matches the visible From domain. That exception does not apply to a self-managed Cloudblast server because you control the envelope sender.
Set up DKIM
Generate the DKIM key inside the installed mail stack, publish its public half in DNS, and keep the private key on the server. Use a short selector such as cb1 and a 2048-bit RSA key with rsa-sha256 signing. The selector and public key belong to your mail stack, rather than a shared Cloudblast configuration.
- Generate the key: Create a 2048-bit key pair for example.com in the MTA, signing daemon, or hosting panel.
- Publish the public key: Add one DKIM TXT record at cb1._domainkey.example.com. In a DNS panel, paste the public-key value rather than the surrounding zone-file syntax.
- Enable signing: Sign every outbound message with d=example.com and s=cb1.
- Protect the private key: Restrict file access to the signing service and rotate the selector if the key is exposed.
DKIM public key record structureDNS
cb1._domainkey.example.com. 300 IN TXT ( "v=DKIM1; k=rsa;" "p=PASTE_PUBLIC_KEY_WITHOUT_SPACES" )
The parentheses and quoted strings above are zone-file syntax. A long TXT value can contain multiple strings of up to 255 bytes each within one record; DNS joins them without adding spaces. Use the DNS provider's supported format and do not create separate DKIM TXT records at the same selector. For routine rotation, publish a new selector before switching signing, then keep the old public key available while previously signed mail remains in transit.
Passing DKIM
- Selector lookup: The s= and d= values identify s._domainkey.d, which must contain the matching public key.
- Signature check: The body and signed headers verify without modification.
Passing DMARC with DKIM
- Signing identity: With relaxed matching, d=example.com or a subdomain matches From at example.com. If adkim=s, d= must be example.com exactly.
- Visible identity: The From header uses example.com.
A published key is not enough
A DNS lookup can confirm that the public key exists, but only a received test message proves that the server signs mail with the matching private key and an appropriate d= domain.
Set up DMARC
Start a new deployment at p=none so authentication data arrives without asking receivers to quarantine or reject failing mail. If the domain already uses p=quarantine or p=reject, keep that policy and fix Cloudblast authentication without lowering protection.
- Create the mailbox: Make dmarc@example.com able to receive aggregate XML reports, or use a reporting address that already exists.
- Generate the policy: Use the DMARC record generator if you need a valid record with additional tags.
- Publish one record: Add the TXT policy at _dmarc.example.com and remove any duplicate DMARC TXT record.
- Keep relaxed matching: The aspf=r and adkim=r defaults accept a matching organizational domain. Existing aspf=s or adkim=s settings require the corresponding authenticated domain to match the From domain exactly; preserve them and configure the sender accordingly.
Recommended monitoring policyDNS
v=DMARC1; p=none; rua=mailto:dmarc@example.com
Publish the value exactly once. DMARC passes when a passing SPF domain matches the visible From domain, a passing DKIM domain matches it, or both methods match. It fails only when neither passing method matches the visible From domain. If the rua address uses a different organizational domain, that destination must publish the required external report authorization record.
DMARC checker
Look up a domain's DMARC record and catch policy issues.
?/7tests passed
Check the exact domain in the visible From header first. If it has no DMARC record, RFC 9989 specifies a DNS Tree Walk to discover the applicable parent policy. An inherited sp policy applies to existing subdomains when present; otherwise p applies. A lookup of the SMTP hostname alone does not test the From domain's policy.
Aggregate reports normally take a day or more to arrive after mail is sent, and not every receiver sends them. They identify receiver-observed source IPs and authentication results, which helps find a missed Cloudblast IP or an unexpected sender before policy enforcement. They do not prove inbox placement.
Verify and troubleshoot email authentication
Verify DNS first, then send a real message through the same application path used in production. Testing a record in isolation misses private-key errors, an incorrect envelope sender, SMTP rewriting, and outbound traffic leaving through a different IP.
- Check DNS: Resolve the SPF TXT, DKIM selector TXT, DMARC TXT, A, and PTR records from a public resolver.
- Send through production: Trigger the same application, SMTP credentials, port, and From address used by normal mail.
- Read authentication results: Read the Authentication-Results header added by the receiving server. Confirm spf=pass, dkim=pass, and dmarc=pass, then inspect the authenticated domains.
- Match identities: Compare header.from with smtp.mailfrom for SPF and header.d for DKIM.
Illustrative receiver authentication resultstext
Authentication-Results: receiver.example.net; spf=pass smtp.mailfrom=bounce.example.com; dkim=pass header.d=example.com header.s=cb1; dmarc=pass header.from=example.com
|
|
|
|---|---|---|
SPF fail | The actual egress IP is missing from the MAIL FROM domain's policy. | Authorize the actual sending IP at the exact MAIL FROM domain. |
SPF permerror | Duplicate SPF records or too many lookup-causing terms. | Keep one SPF record at that name and reduce lookup-causing terms to ten or fewer. |
DKIM none | The production sending path does not add a DKIM signature. | Enable signing on the path the application actually uses. |
DKIM fail | A wrong key or selector, or changes to signed content after signing. | Check d= and s= against the published key and compare content before and after signing. |
DMARC fail | Neither passing method meets the policy's domain-matching rules. | Check MAIL FROM and DKIM d= against From, including aspf and adkim settings. |
Common Cloudblast mail authentication failures
A live email test checks the received message and confirms which published records the sender actually uses.
Send the test through the application on the Cloudblast VPS. A desktop client is useful only when it submits through the same Cloudblast server and signing path.
Email tester
Send a real email to this address. Suped shows a results button when the test is ready.
?/43tests passed
A clean result should show the Cloudblast IP as the connecting source, mail.example.com as the PTR and SMTP hostname, a passing SPF identity under your domain, and a passing DKIM signature under your domain.
If SPF passes but DMARC fails, inspect the MAIL FROM domain. If DKIM passes but DMARC fails, inspect the d= value. A DMARC pass needs domain matching, not only a passing authentication result.
Do not ignore rDNS and SMTP identity
PTR is not part of DMARC, but receiving systems use it during connection checks. The Cloudblast IP should resolve to mail.example.com, that hostname should resolve back to the same IP, and the server should present it in EHLO.
Monitor Cloudblast email authentication
DNS records and mail-server settings change after the initial launch. An IP replacement, stopped DKIM signer, selector rotation, overwritten TXT record, or new application path can break authentication without an obvious SMTP error.
- Monitor DMARC results: Track Cloudblast source IP volume, SPF results, DKIM results, and domain matching over time.
- Alert on regressions: Notify an owner when failure rates rise or a new unverified source starts using the domain.
- Watch DNS health: Detect missing records, multiple SPF policies, lookup-limit problems, and DMARC policy changes.
- Keep ownership clear: Route each alert to the team that controls the Cloudblast instance, mail stack, or DNS zone.
Suped is our DMARC reporting and email authentication platform for this workflow. Its DMARC monitoring groups aggregate data by source, detects authentication issues, sends alerts, and provides steps to fix them. Use it to compare reported sending IPs with your Cloudblast inventory.

Notification settings page with DMARC alerts, weekly summary, toggles, and preview buttons
For a Cloudblast server, watch the known sending IP and investigate sources outside that inventory. Weekly summaries help review volume, while report-based alerts follow receiver reporting intervals. Check live message headers and SMTP logs for immediate failures; aggregate reports cannot guarantee warning before enforcement blocks mail.
Useful alert conditions
- Authentication drop: DMARC pass rate falls below the normal baseline.
- Unexpected source: A new IP sends mail using example.com.
- Record change: SPF, DKIM, or DMARC no longer resolves as expected.
- Reputation event: The sending IP or domain appears on a blocklist (blacklist).
Move to p=reject
Move to p=reject only after every legitimate source is identified and consistently passes DMARC. A passing Cloudblast test message does not prove that other application servers also pass. Review forwarded mail too: forwarding commonly breaks SPF, while DKIM survives only if the signed content remains intact.
- Collect a representative window: Review enough DMARC data to include routine traffic and scheduled campaigns.
- Classify every source: Mark each IP as authorized, obsolete, forwarded, or unauthorized.
- Fix legitimate failures: Correct SPF identity, DKIM signing domain, selectors, and outbound IP coverage.
- Stage enforcement: Publish p=quarantine after monitoring shows that legitimate mail passes, then review the complete domain again.
- Publish reject: Set p=reject when legitimate traffic passes and owners have approved enforcement.
- Continue monitoring: Keep alerts active after enforcement because infrastructure and sending sources still change.
Do not use pct for a partial rollout. RFC 9989 made the pct tag historic because receivers applied percentage values inconsistently. Move the whole domain between p=none, p=quarantine, and p=reject after reviewing authentication results.
DMARC enforcement gates
Use authentication evidence and source ownership to decide whether to advance the policy.
Monitor
p=none
Inventory incomplete or legitimate failures remain.
Stage
p=quarantine
Known mail passes, but rollout validation continues.
Enforce
p=reject
Authorized sources pass and unknown use should be blocked.
Full enforcement policyDNS
v=DMARC1; p=reject; rua=mailto:dmarc@example.com
Suped, our DMARC platform, keeps source classification, policy staging, and regression alerts in one workflow. Review legitimate failures before changing policy, then monitor reported results after p=reject. Suped's Hosted DMARC lets teams manage policy after an initial DNS delegation; follow the supplied CNAME instructions and do not leave a TXT policy at the same name.
Hosted DMARC configuration dialog showing policy controls, CNAME setup, and expanded advanced options
Use Hosted DMARC when policy changes require review and controlled rollout. Keep the reporting address active and retain the Cloudblast IP, return path, DKIM selector, and service owner in the sender inventory.
Cloudblast authentication FAQ
For mail sent directly by a Cloudblast VPS, authorize its actual sending IP with ip4 or ip6 in the MAIL FROM domain's single SPF record. Do not guess an include based on the hosting company's name. Retest after any IP change.
Generate DKIM in the mail server, signing daemon, or hosting control panel installed on the Cloudblast VPS. Publish the public key and selector it gives you, keep the private key on the server, and enable signing for the production sending path.
Cloudblast hosts the IP, while the VPS owner configures its PTR through Cloudblast and controls the sending software. A PTR hostname alone does not identify the application or prove authorization to use the From domain. Inspect the connecting IP and forward DNS alongside authenticated domains.
Yes. DMARC passes when DKIM passes and the DKIM d= domain matches the visible From domain, even if SPF fails or its envelope domain does not match. On a self-managed Cloudblast server, configure both methods so one can cover a temporary failure in the other.
Start a new deployment with p=none, review aggregate data, fix every legitimate source, move the whole domain to p=quarantine if a staged transition is needed, and then publish p=reject. Do not use the historic pct tag for percentage rollout. If the domain already uses quarantine or reject, keep the existing policy while fixing the Cloudblast sender.

