HostGator
How to set up SPF, DKIM and DMARC for HostGator
Publish SPF, DKIM and DMARC on HostGator with cPanel's Email Deliverability and Zone Editor: values by plan, the DKIM selector and the usual errors.
Check your current setup:
Before you start
HostGator's support articles cover cPanel and, for accounts that manage a whole server, WHM. These steps apply when your domain's nameservers point to HostGator. If your DNS zone lives at Cloudflare, GoDaddy or another host, create the records in that zone instead.
Also check who sends your mail. HostGator says SPF and DKIM are enabled by default on its servers, so hosted mailboxes often need no change. Google Workspace, Microsoft 365 and Titan each need their own values.
Step 1: Read the status in Email Deliverability
In cPanel, open Email Deliverability in the Email section. Each domain shows Valid or Problems Exist. Click Manage to see the suggested SPF and the DKIM Name and Value for your hosting.
Step 2: SPF
SPF is a TXT record that lists the servers allowed to send mail for your domain. A domain can have only one SPF record, so add new senders to the existing record.
For shared and reseller plans, HostGator documents this value:
v=spf1 a mx include:websitewelcome.com ~all
For VPS and dedicated servers, it documents this form. Replace the sample address with your server's IP:
v=spf1 +mx +a +ip4:203.0.113.10 ~all
For Titan, HostGator gives v=spf1 include:spf.titan.email ~all. For Google Workspace, its article gives v=spf1 include:_spf.google.com ~all.
To add or edit the record by hand, open Zone Editor, click Manage, then + Add Record. Choose TXT, set the Name to your domain without www, and use a TTL of 14400. In WHM the tool is DNS Zone Manager, and the Name needs a trailing dot, as in example.com.. HostGator warns that leaving the dot out can break your DNS.
Step 3: DKIM
DKIM signs with a private key; receivers verify using the public key in DNS. On cPanel hosting HostGator uses the selector default, so the record is at default._domainkey.example.com. The key sits under your own domain, which lets the signature pass DMARC alignment.
If the status is Valid, you can move on. With Problems Exist, click Manage and then Install The Suggested Record. If no key exists, click Repair and choose to generate a local DKIM key.
If your DNS is elsewhere, copy the Name and Value from Manage and create a TXT record at that DNS host.
Titan works differently. In HostGator Brasil's Customer Portal, open E-mails, then Gerenciar e-mails and Reputação de e-mail. The panel shows the host name and the value to publish. HostGator does not document a fixed selector for it.
Step 4: DMARC
DMARC tells receivers what to do when a message fails SPF and DKIM alignment, and where to send reports. HostGator says VPS and dedicated plans bought after 20 January 2021 already have a DMARC record, so look for it first. On shared plans you create it yourself.
Use this starter value only if no DMARC policy exists at this name. Otherwise edit the existing record, preserving its p=, alignment settings and report addresses; add your monitored rua destination there. Never create a second policy record.
In Zone Editor, click Manage, then + Add Record, and choose TXT. Enter _dmarc as the Name, and cPanel appends your domain to make _dmarc.example.com. Use a TTL of 14400 and this value:
v=DMARC1; p=none; rua=mailto:dmarc@example.com
Replace the address with your DMARC Pulse reporting address.
HostGator's own example starts at p=quarantine; sp=none. Quarantine can send legitimate mail to spam. For a first policy, use monitoring while you review reports. If a policy already exists, preserve its p=, alignment settings and report destinations when adding your reporting address.
cPanel's Zone Editor also offers a DMARC form with Percentage, Report Format and Report Interval fields. RFC 9989, the current DMARC standard, removed the matching pct, rf and ri tags, so do not rely on them.
Step 5: Check and tighten
HostGator's articles give different windows: up to 4 hours for SPF, up to 24 hours for DKIM, and 4 to 72 hours after a zone change. After that, run the SPF checker, the DKIM checker and the DMARC checker on your domain.
Preserve any existing policy and report destinations. For a first deployment, monitor at p=none. After every legitimate sender passes with alignment, assess p=quarantine. Consider p=reject separately, including mailing-list and forwarding risks; it is optional. Receivers decide how to handle individual messages.
Common problems
HostGator's include already uses the whole SPF lookup budget. SPF allows 10 DNS lookups per check, and exceeding that returns permerror. On 9 November 2026 we counted exactly 10 for v=spf1 a mx include:websitewelcome.com ~all: the a and mx terms plus eight from the include and what it nests. One more include can break SPF. See the too many lookups error. If your mail moved to Google Workspace or Titan, drop the HostGator include unless the server still sends mail.
Two TXT records starting with v=spf1. RFC 7208 makes this a permerror, so merge them into one.
Records seem to do nothing. Your nameservers probably point elsewhere. The zone in cPanel is then ignored. Create the records where the nameservers point.
The Repair button is missing. HostGator gives two reasons. The domain may already use its default SPF, or the server may not control the domain's DNS.
Repair's suggestion does not match your senders. cPanel builds its suggestion from this server. With mail at another provider, review the proposal before you confirm, so you keep the senders you need.
Two DMARC records. Check for HostGator's default record on VPS and dedicated plans before adding yours. RFC 9989 Section 4.10 says that when several records are returned, receivers discard all of them.
DKIM passes for hosting mail only. The default key signs mail that leaves your cPanel server. Google Workspace, Microsoft 365 and Titan need their own keys.
Wrong name. Use the domain without www for SPF, and _dmarc on the bare domain for DMARC.