/bin/spf_install script allows you to add an SPF record to all of a user's domains' zone files from the command line.
For more information about SPF records, read our Email Authentication documentation
To run the
/bin/spf_install script from the command line, use the following format:
The following table lists the options that you can pass with this script:
|The username to whose domain(s) you wish to assign an SPF record.|
|The SPF record that you wish to assign to the user's domain.|
v=spf1 +a +mx +ip4:10.1.100.35
Whether the SPF key is a complete SPF entry.
Whether to overwrite the existing SPF record with the value of the
Whether to add a new set of keys.
If the function is successful, you will not receive confirmation from the command line. Instead, navigate to the Email Authentication interface (Home >> Mail >> Email Authentication) on each domain that the user owns. The SPF status will show as Enabled.
If the function is not successful, you will receive the following error message: