cPanel WHM icon

cPanel WHM

Full cPanel WHM API — all 622 operations across Accounts, DNS, Mail, SSL, Backups, Databases and more

Actions262

Mail → Validate domain SPF records

AI-generated

Summary

Validate the SPF (Sender Policy Framework) records of a specified domain to ensure proper mail delivery and spam prevention configuration.

Inputs

  • Domain (required) — The domain name whose SPF records you want to check.

Output shape

a JSON object containing the result of the SPF record validation from WHM API.

The output includes WHM API response details about the domain's current SPF records and their validation status. Errors from the API are surfaced if the domain is invalid or the check fails.

Examples

Example 1: Check SPF records for example.com

Set 'Domain' parameter to 'example.com' and run the operation.

Links

Discussion