How to configure SPF for my email domain hosted by DreamHost?

My domain’s email is hosted by DreamHost and all my emails from that domain are sent using DreamHost’s SMTP. How to configure the SPF record for my email domain hosted by DreamHost?

For a domain with email and SMTP hosted by DreamHost, you can set its SPF record to

v=spf1 include:netblocks.dreamhost.com

Reference: What SPF records do I use? – DreamHost

Eric Z Ma

Eric is a father and systems guy. Eric is interested in building high-performance and scalable distributed systems and related technologies. The views or opinions expressed here are solely Eric's own and do not necessarily represent those of any third parties.

2 comments:

  1. I just got an Undeliverable Mail failure that helpfully suggested “Please add a SPF record for the domain example.com to your DNS or ask your Broadband Provider / Domain Registrar to do this.” FWIW DreamHost’s excellent customer support added a custom DNS TXT record for my domain containing

    v=spf1 include:netblocks.dreamhost.com ~all

    This matches your suggestion but for the ” ~all” on the end. From OpenSPF dot org’s SPF Record Syntax page I think it makes e-mail delivery from any other host a SoftFail.

    I also reported that your Reference link, “What SPF records do I use? – DreamHost” is a 404 and DreamHost lacks a replacement.

    1. The original links is gone. A historical piece of content I find https://raw.githubusercontent.com/dreamhost-knowledgebase/dreamhost-knowledgebase-articles/e4174f462815f429d96ea42e1961da019fb4dcab/What%20SPF%20records%20do%20I%20use%3F.html

      The `~all` seems fine. But if the email was sent from a server in DreamHost cluster is also “marked” although “accepted”. I believe it should not be “marked” for this case.

      The original one (as in the historical post) accepts all (default, Neutral), which looks more reasonable to me though.

Leave a Reply

Your email address will not be published. Required fields are marked *