Inbound Domains allow you to receive emails using SparkPost. When combined with Relay Webhooks, SparkPost can parse the emails sent to the inbound domain and post their contents to your server.
In order to use an inbound domain, you will need to add MX records to your DNS settings. The DNS settings required depend on whether you have a US, EU, Enterprise account.
Name | Type | Data | Priority |
---|---|---|---|
<inbound domain> | MX | rx1.sparkpostmail.com | 10 |
<inbound domain> | MX | rx2.sparkpostmail.com | 10 |
<inbound domain> | MX | rx3.sparkpostmail.com | 10 |
Name | Type | Data | Priority |
---|---|---|---|
<inbound domain> | MX | rx1.eu.sparkpostmail.com | 10 |
<inbound domain> | MX | rx2.eu.sparkpostmail.com | 10 |
<inbound domain> | MX | rx3.eu.sparkpostmail.com | 10 |
Enterprise MX records are specific to each account.
They usually follow the format of <tenant>.mx.e.sparkpost.com
, where <tenant>
is unique to your account.
Please check with your TAM if you are unsure of the setting in your own environment.
Name | Type | Data | Priority |
---|---|---|---|
<inbound domain> | MX | <tenant>.mx.e.sparkpost.com | 10 |
{
"domain": "indbound.example.com"
}
Domain (or subdomain) name for which SparkPost will receive inbound emails. Your DNS provider's MX record for this domain must point back to SparkPost.
POST /api/v1/inbound-domains
{
"domain": "indbound.example.com"
}
// Empty response body
Domain name for which SparkPost will receive inbound emails.
GET /api/v1/inbound-domains/indbound.example.com
{
"results": {
"domain": "indbound.example.com"
}
}
DELETE /api/v1/inbound-domains/indbound.example.com
// Empty response body
GET /api/v1/inbound-domains
{
"results": [
{
"domain": "indbound.example.com"
},
{
"domain": "inbounddomain2.test.com"
}
]
}
Returns an array with all your inbound domains.