The basic information needed for your domain's SPF record to permit its mail servers should be provided to you by your mail host.
If you’re hosting your email with DreamHost, view the ‘DreamHost SPF records’ section below.
SPF records are text records. View the 'How do I add an SPF record' article for instructions on how to add a text record to your domain.
If you’re hosting your email at DreamHost, no changes need to be made to your SPF records. DreamHost’s SPF records are generated automatically and should work without any issues or additional changes.
IP's in DreamHost’s SPF records include mail servers and the relay machine IP addresses.
It’s highly recommended that any email you send from your webserver use SMTP. This ensures the email is sent from the mail server and uses the correct SPF records. View the following articles for further information:
For Google hosted mail users, the following link provides details on what to put in your domain's SPF record to permit Google’s mail servers:
For other hosts, you must contact them for details on their SPF information.
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. The following is an example of an advanced SPF record:
v=spf1 ip4:321.321.321.321 include:_spf.google.com include:shaw.ca mx ~all
Tag | Description |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
The symbol before "all" indicates how strict the SPF record is enforced.
The following table shows SPF information for various mail providers that are in popular use:
Provider | SPF Information |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
There are a few ways to test your SPF record before and after creating it:
When SPF checks are handled by the recipient host, the validation is done on the envelope sender, and not on the actual header details. Information regarding the difference between the 'envelope' sender and the actual 'from' header details is outlined here:
You may see the following error after setting up your SPF record.
550 SPF:69.163.253.135 is not allowed to send mail from $domain.tld (in reply to RCPT TO command)
This usually means that your SPF record is not configure properly. You must specify a permitted sender as shown in the section above titled 'DreamHost SPF records'. Make sure to add the netblocks address as shown:
v=spf1 include:netblocks.dreamhost.com