Can I send from any domain?

April 28, 2017 Contributors

Domain Ownership And Control

You can send mail through SparkPost from any domain that you or your customers control. By verifying your sending domains with SparkPost, you’re letting us know that you control them and that you authorize delivery from those domains. The DKIM domain verification procedure is the best option here since it also brings deliverability best practice with it. There are instructions here how to verify your sending domains.

Why Can’t I Just Send From Any Domain?

If email services allowed their users to send from any domain or address, anyone could forge email that looked like it came from anyone else.  This opens the door for impersonation, phishing and other illicit acts that we do not wish to perpetuate. We recommend validating your sending domain using DKIM because it can help with these issues. DKIM allows receiving email services to verify that message content was created by an agent authorized by the domain owner and that it has not been altered in transit.

Sending On Behalf Of Others

You may need to send email on behalf of a 3rd party, often a customer. To achieve this, you could register their domain with SparkPost. They’ll need to be complicit since you’ll be adding records to their DNS as part of our sending domain verification procedure. If this is not feasible, you could register a subdomain of your own for each customer: e.g. "customer.yourdomain.com".  Then you can mention your customer in the From header: "From: Customer customer@customer.yourdomain.com".

Use Reply-To As Needed

You also have full control of the Reply-To header in your messages – you can use any email address, including using domains which are not valid sending domains. In this case you could set Reply-To to a customer domain to allow them to handle human replies to your messages and to offer a little more customer branding if you are sending from your own domain on their behalf.