Overview
This article describes the default DreamHost SPF record and how you can adjust it.
Background
DreamHost automatically adds SPF records to your site, so you only need to manually adjust an SPF record if you are also sending email through a third party, such as Google or Mailchimp.
If you are sending email from such services AND also from DreamHost, you'll need to adjust the SPF record so it contains both mail servers.
Limitations
Please be aware of the following before proceeding.
Google Workspace
-
If you're using Google Workspace, you cannot update the SPF record. The field remains uneditable.
Subdomains
-
SPF treats subdomains separately, so you may need to specify SPF records for both the primary domain (example.com) and any subdomain (such as blog.example.com).
Wildcard
-
Wildcards for TXT records are not supported by DreamHost. This is also generally discouraged, as stated in RFC 4408 §3.1.5.
Nameservers
-
These steps assume your nameservers are pointing to DreamHost. If they are not, you must update the SPF record at the company where they are currently pointing instead.
Adjusting an SPF record
You can only use a single SPF record, so you must combine the additional servers into the existing SPF record.
- Navigate to the Manage Websites page.
- Open the DNS Settings page:
- Click the Add Record button.
- Hover over the TXT Record section and click the ADD link.
- Enter the following:
- Host: This field can be anything. Very often, it’s left blank. You do not need to add the domain name in this field.
-
TXT Value *: Enter the SPF record value of this record to point to.
The following example assumes you're sending email from DreamHost and Google. The custom Google record is added towards the end.
v=spf1 mx include:netblocks.dreamhost.com include:relay.mailchannels.net include:_spf.google.com -all
- Click the Add Record button to save.
Allow up to 6 hours for the DNS record to propagate after you save the record.
Editing an SPF record
These steps can only be performed if you previously adjusted the SPF record using the instructions above. If so, a pencil icon appears next to the record.
- Navigate to the Manage Websites page.
- Open the DNS Settings page:
- If in Grid view, click the 'vertical 3 dots' button under your domain. From the popout menu, click the DNS Settings link.
- If in List view, click the 'vertical 3 dots' button to the right of your domain. From the popout menu, click the DNS Settings link.
- The domain's DNS records display.
- Scroll down to a TXT record and click the pencil icon on the right.
- Edit the TXT Value box to adjust the SPF value.
- Click the Save button when finished.
Allow up to 6 hours for the DNS record to propagate after you save the record.
Advanced options
An advanced SPF record includes more than just the default mail servers: it also has information on all other servers that send mail for the domain. For example:
v=spf1 ip4:321.321.321.321 include:_spf.google.com include:shaw.ca mx ~all
Customization options
Tag | Description |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
-
Custom symbols
The symbol before "all" indicates how strict the SPF record is enforced.
Symbol | Description | Example |
---|---|---|
? | A question mark makes the whole record inactive, as though the domain had no SPF record at all. | ?all |
- | A dash makes the record strict. Any mail from servers not listed will be marked "fail" and may be marked as spam or rejected entirely. | -all |
~ | A tilde is between the other two options in strictness. Any mail from servers not listed will be marked "softfail". While intended for testing, it is recommended to be used to avoid delivery issues, as noted in this article. | ~all |
Mail provider SPF records
The following table shows SPF information for popular mail providers.
Provider | SPF Information |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|