SPF (Sender Policy Framework) is a DNS record that tells other mail servers which servers are allowed to send email for your domain. Without a correct SPF record, mail from your domain is more likely to be marked as spam or rejected. /go/spf sets up that record for a hosted domain on Cloudflare. It is a short command that calls cloudflare with the SPF record type, so the record is created or updated through the Cloudflare API. Every admin action in GoAdmio has a matching /go/ command, so anything you can click you can also script.
Quick start
/go/spf example.com
Arguments
| Position | Argument | Required | Notes |
|---|---|---|---|
| 1 | <domain> |
Yes | A domain that is hosted on this server and uses Cloudflare. |
The domain is handed straight to cloudflare without any check. See the cloudflare page for the values it accepts. Always pass a domain. Without one, the command does not stop on its own.
Examples
# Add or refresh the SPF record
/go/spf example.com
# Check the record that is now published
dig +short TXT example.com
# The same thing, calling cloudflare directly
/go/cloudflare --domain example.com --type spf
# Review recent calls
tail /var/log/go/spf.log
Output
spf prints nothing itself. Any messages, successes, and errors come from cloudflare. The command ends with the same exit status.
To see the result, read the record from DNS:
dig +short TXT example.com
See the full reference at /go/spf and the GoAdmio command index.
GoAdmio is free and open source, with no license fees and no account limits. Read the GoAdmio docs, or see why it is a free cPanel alternative at goadmio.com.
