cPanel WHM icon

cPanel WHM

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

Actions262

Mail → Install domain SPF record

AI-generated

Summary

Install an SPF (Sender Policy Framework) record for a specified domain on the DNS server via WHM API.

Inputs

  • Domain (required) — The domain for which to install the SPF record. To install multiple SPF records, use parameter names with incremental suffixes like domain-1, domain-2, etc.
  • Record (required) — The SPF record string corresponding to the domain parameter. Must be provided for every domain parameter.

Output shape

an object containing the API response indicating success or failure of the SPF record installation

The response includes details from the WHM API on whether the SPF record was successfully installed. Multiple records can be installed by incrementing the domain and record parameter names accordingly.

Links

Discussion